@@ -691,7 +690,7 @@ In the root directory of the existing Java components you will find an executabl
...
@@ -691,7 +690,7 @@ In the root directory of the existing Java components you will find an executabl
<p></u>
<p></u>
In case you are using <ahref="https://code.visualstudio.com/">VS Code</a> for development, we suggest to install the <ahref="https://marketplace.visualstudio.com/items?itemName=redhat.vscode-quarkus">official Quarkus extension</a>.
In case you are using <ahref="https://code.visualstudio.com/">VS Code</a> for development, we suggest to install the <ahref="https://marketplace.visualstudio.com/items?itemName=redhat.vscode-quarkus">official Quarkus extension</a>.
The extension should be able to automatically find the current open project and integrate with the above <code>mvnw</code> maven wrapper, making it easier to control the <ahref="https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html">maven lifecycle</a>.
The extension should be able to automatically find the current open project and integrate with the above <code>mvnw</code> maven wrapper, making it easier to control the <ahref="https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html">maven lifecycle</a>.
Make sure that you open the specific component directory (i.e., <code>src/ztp</code> or <code>src/policy</code>) and not the general controller one (i.e., <code>src</code>.</p>
Make sure that you open the specific component directory (i.e., <code>src/ztp</code> or <code>src/policy</code>) and not the general controller one (i.e., <code>src</code>.)</p>
<h3><u>New Java TFS component</h3>
<h3><u>New Java TFS component</h3>
<p></u></p>
<p></u></p>
<p><strong>Sample Project</strong></p>
<p><strong>Sample Project</strong></p>
...
@@ -719,64 +718,70 @@ develop code for the ETSI TeraFlowSDN controller.</p>
...
@@ -719,64 +718,70 @@ develop code for the ETSI TeraFlowSDN controller.</p>
using <ahref="https://asdf-vm.com/">ASDF</a>, a tool that allows the installation of multiple
using <ahref="https://asdf-vm.com/">ASDF</a>, a tool that allows the installation of multiple
version of Erlang at the same time, and switch from one version to the other at will.</p>
version of Erlang at the same time, and switch from one version to the other at will.</p>
<p>This section describes the steps needed to establish a development environment for TFS (TeraFlowSDN) components implemented in Kotlin. Currently, the <code>Gateway</code> component stands as the sole component developed in Kotlin.</p>
<p>This section describes the steps needed to establish a development environment for TFS (TeraFlowSDN) components implemented in Kotlin. Currently, the <code>Gateway</code> component stands as the sole component developed in Kotlin.</p>
...
@@ -890,10 +895,12 @@ machine, not in the VM.</p>
...
@@ -890,10 +895,12 @@ machine, not in the VM.</p>
<ul>
<ul>
<li>Right-click on "TFS-VM"</li>
<li>Right-click on "TFS-VM"</li>
<li>Select "Connect to Host in Current Window"</li>
<li>Select "Connect to Host in Current Window"</li>
<li>Reply to the questions asked</li>
<li>Reply to the questions asked<ul>
<li>Platform of the remote host "TFS-VM": Linux</li>
<li>Platform of the remote host "TFS-VM": Linux</li>
<li>"TFS-VM" has fingerprint "<fingerprint>". Do you want to continue?: Continue</li>
<li>"TFS-VM" has fingerprint "<fingerprint>". Do you want to continue?: Continue</li>
<li>Type tfs user's password: tfs123</li>
<li>Type tfs user's password: tfs123</li>
</ul>
</li>
<li>You should be now connected to the TFS-VM.</li>
<li>You should be now connected to the TFS-VM.</li>
</ul>
</ul>
<p><strong>Note</strong>: if you get a connection error message, the reason might be due to wrong SSH server fingerprint. Edit file
<p><strong>Note</strong>: if you get a connection error message, the reason might be due to wrong SSH server fingerprint. Edit file
...
@@ -901,50 +908,55 @@ machine, not in the VM.</p>
...
@@ -901,50 +908,55 @@ machine, not in the VM.</p>
"[127.0.0.1]:2200" (assuming previous port forwarding configuration), remove the entire line, save the file,
"[127.0.0.1]:2200" (assuming previous port forwarding configuration), remove the entire line, save the file,
and retry connection.</p>
and retry connection.</p>
<h3><u>Add SSH key to prevent typing the password every time</h3>
<h3><u>Add SSH key to prevent typing the password every time</h3>
<p></u>
<p></u></p>
This step creates an SSH key in the VM and installs it on the VSCode to prevent having to type the password every time.</p>
<p>This step creates an SSH key in the VM and installs it on the VSCode to prevent having to type the password every time.</p>
<ul>
<ul>
<li>In VSCode (connected to the VM), click menu "Terminal > New Terminal"</li>
<li>In VSCode (connected to the VM), click menu "Terminal > New Terminal"</li>
<li>Run the following commands on the VM's terminal through VSCode</li>
<li>
</ul>
<p>Run the following commands on the VM's terminal through VSCode