Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
Operating System: Linux
Platform: PC
-
1137
Description
Values in DL_VLAN match field of FLOW_MOD messages were wrong, when VTN Manager run on MD-SAL and the new OF plugin, connected to OF 1.0 switches, and tried to install flow entries which match packets without VLAN tag.
In this situation, the controller must set 0xffff (OFP_VLAN_NONE) into the DL_VLAN match field of FLOW_MOD.
However, it set 0x0000, so packets without VLAN tag didn't match the flow entries.
In the same situation, when VTN Manager runs on AD-SAL and the old OF plugin, the value of DL_VLAN is 0xffff (OFP_VLAN_NONE).
[What I used]
The latest version of the Virtualization Edition on 5th June.
$ pwd
/home/odp/work/integration
odc180 $ git log -3 --oneline
90e2f0c INTEGRAT-4: Remove toaster from virt edition
64e608a Adding extra TCs for RESTCONF
3516960 Uploaded working AD-SAL cluster testcases
[How to produce]
1. Start up the Virtualization edition with of13 and vtn option.
$ ./run.sh -of13 -virt vtn
2. Create a virtual bridge using REST API exposed by VTN Manager.
curl --user "admin":"admin" -H "Accept: application/json" -H \
"Content-type: application/json" -X POST \
http://192.168.60.180:8080/controller/nb/v2/vtn/default/vtns/vtn1 \
-d '
'
curl --user "admin":"admin" -H "Accept: application/json" -H \
"Content-type: application/json" -X POST \
http://192.168.60.180:8080/controller/nb/v2/vtn/default/vtns/vtn1/vbridges/vbr1 \
-d '{}'
curl --user "admin":"admin" -H "Accept: application/json" -H \
"Content-type: application/json" -X POST \
http://192.168.60.180:8080/controller/nb/v2/vtn/default/vtns/vtn1/vbridges/vbr1/interfaces/if1 \
-d '{}'
curl --user "admin":"admin" -H "Accept: application/json" -H \
"Content-type: application/json" -X POST \
http://192.168.60.180:8080/controller/nb/v2/vtn/default/vtns/vtn1/vbridges/vbr1/interfaces/if2 \
-d '{}'
curl --user "admin":"admin" -H "Accept: application/json" -H \
"Content-type: application/json" -X PUT \
http://192.168.60.180:8080/controller/nb/v2/vtn/default/vtns/vtn1/vbridges/vbr1/interfaces/if1/portmap \
-d '{"node":
, "port": {"name": "s3-eth1"}}'
curl --user "admin":"admin" -H "Accept: application/json" -H \
"Content-type: application/json" -X PUT \
http://192.168.60.180:8080/controller/nb/v2/vtn/default/vtns/vtn1/vbridges/vbr1/interfaces/if2/portmap \
-d '{"node":
, "port": {"name": "s7-eth2"}}'
3. Run Mininet and run OF1.0 switches.
$ sudo mn --controller=remote,192.168.60.180 --topo tree,3
4. Send ping packets from h1 to h8.
mininet> h1 ping h8
At this time, VTN Manager tries to install flow entries to forward packets between h1 and h8 based on the vtn configuration (See step 2).