Commit 266e4003 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Merge branch 'develop' of https://labs.etsi.org/rep/tfs/controller into feat/nfvsdn22

parents ea0269ed 426d7ed8
Loading
Loading
Loading
Loading
+9 −9
Original line number Original line Diff line number Diff line
@@ -4,12 +4,12 @@ This functional test shows the P4 driver with a basic connectivity test between


## Functional test folder
## Functional test folder


This functional test can be found in folder `src/tests/netx22-p4/`. 
This functional test can be found in folder `hackfest/p4`


## P4 source and Mininet topology
## P4 source and Mininet topology


This test is designed to operate with a mininet deployment that contains 2 hosts and a BMv2 switch, such a topology can be found in the 'src/tests/netx22-p4/mininet' folder.
This test is designed to operate with a mininet deployment that contains 2 hosts and a BMv2 switch, such a topology can be found in the 'hackfest/p4/mininet' folder.
Additionally the P4 source code, along with its compiled artifacts are present in the 'src/tests/netx22-p4/mininet' folder.
Additionally the P4 source code, along with its compiled artifacts are present in the 'hackfest/p4/p4' folder.


## Deployment and Dependencies
## Deployment and Dependencies


@@ -50,7 +50,7 @@ start-simple: NGSDN_TOPO_PY := topo-simple.py
start-simple: _start
start-simple: _start
```
```


And copy the topology file from ~/tfs-ctrl/src/tests/netx22-p4/mininet/topo-simple.py to the ~/ngsdn-tutorial/mininet/ directory.
And copy the topology file from ~/tfs-ctrl/hackfest/p4/mininet/topo-simple.py to the ~/ngsdn-tutorial/mininet/ directory.


## Test Execution
## Test Execution


@@ -70,28 +70,28 @@ client ping server


In another terminal cd to the teraflow directory and run the following
In another terminal cd to the teraflow directory and run the following
```
```
src/tests/netx22-p4/setup.sh
hackfest/p4/setup.sh
```
```
This will copy the p4 artifacts to the device pod.
This will copy the p4 artifacts to the device pod.


Then you can bootstrap the device to the Teraflow Controller
Then you can bootstrap the device to the Teraflow Controller
```
```
src/tests/netx22-p4/run_test_01_bootstrap.sh
hackfest/p4/run_test_01_bootstrap.sh
```
```


Install the required rules to the p4 switch
Install the required rules to the p4 switch
```
```
src/tests/netx22-p4/run_test_02_create_service.sh
hackfest/p4/run_test_02_create_service.sh
```
```
You should now check the mininet terminal. The two hosts should be pinging each other as intended.
You should now check the mininet terminal. The two hosts should be pinging each other as intended.


You can remove the rules from the p4 switch
You can remove the rules from the p4 switch
```
```
src/tests/netx22-p4/run_test_03_delete_service.sh
hackfest/p4/run_test_03_delete_service.sh
```
```
The two hosts on the mininet terminal, should stop pinging.
The two hosts on the mininet terminal, should stop pinging.


And remove the device from the Teraflow Controller
And remove the device from the Teraflow Controller
```
```
src/tests/netx22-p4/run_test_04_cleanup.sh
hackfest/p4/run_test_04_cleanup.sh
```
```
Loading