[OPNFLWPLUG-181] Wrong value in DL_VLAN in FLOW_MOD using new OF plugin for OF 1.0 switches. Created: 05/Jun/14 Updated: 27/Sep/21 Resolved: 11/Jun/14 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Hideyuki Tai | Assignee: | Hideyuki Tai |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| External issue ID: | 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 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] $ pwd odc180 $ git log -3 --oneline [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 \ ' curl --user "admin":"admin" -H "Accept: application/json" -H \ curl --user "admin":"admin" -H "Accept: application/json" -H \ curl --user "admin":"admin" -H "Accept: application/json" -H \ curl --user "admin":"admin" -H "Accept: application/json" -H \ , "port": {"name": "s3-eth1"}}' curl --user "admin":"admin" -H "Accept: application/json" -H \ , "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). |
| Comments |
| Comment by Hideyuki Tai [ 05/Jun/14 ] |
|
[Additional information] When VTN Manager wants to install a flow entry to match packets without VLAN tag, VTN Manager sets 0 (DL_VLAN_NONE defined in MatchType class) into DL_VLAN filed of an instance of Match class (org.opendaylight.controller.sal.match.Match). |
| Comment by Kamal Rameshan [ 07/Jun/14 ] |
|
Yangtools: https://git.opendaylight.org/gerrit/#/c/7793/ OFPlugin: https://git.opendaylight.org/gerrit/#/c/7794/ 7794 is dependent on 7793. |
| Comment by Kamal Rameshan [ 10/Jun/14 ] |
|
Merged https://git.opendaylight.org/gerrit/#/c/7844/ This change would avoid the range change in yangtools. Hideyuki, can you please test and see if these changes fixed this issue? |
| Comment by Hideyuki Tai [ 11/Jun/14 ] |
|
(In reply to Kamal Rameshan from comment #3) Sure! |
| Comment by Hideyuki Tai [ 11/Jun/14 ] |
|
(In reply to Hideyuki Tai from comment #4) Hi Kamal, Thank you for fixing it. For the test, I used the latest version of the Virtualization Edition on 11th June which includes the following patch. $ git log -3 --oneline |