[CONTROLLER-536] Wrong value in OFPXMT_OFB_VLAN_VID in FLOW_MOD using new OF plugin for OF 1.3 switches. Created: 05/Jun/14 Updated: 25/Jul/23 Resolved: 23/Jun/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| 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: | 1138 |
| Description |
|
Values in OFPXMT_OFB_VLAN_VID field of FLOW_MOD messages were wrong, when VTN Manager run on MD-SAL and the new OF plugin, connected to OF 1.3 switches, and tried to install flow entries which match packets with VLAN tag for VLAN 100. [What I used] /work/integration/distributions [How to produce] 1. Start up the Virtualization edition with of13 and vtn option. $ ./run.sh -of13 -virt vtn 2. Create a virtual brige 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"}, "vlan": "100"}' curl --user "admin":"admin" -H "Accept: application/json" -H \ , "port": {"name": "s7-eth2"}, "vlan": "100"}' 3. Run Mininet and run OF1.3 switches. $ sudo mn --controller=remote,192.168.60.180 --topo tree,3 --switch=ovsk,protocols=of13 4. Configure hosts for sending packets with VLAN tag. h1 ifconfig h1-eth0 inet 0.0.0.0 h8 ifconfig h8-eth0 inet 0.0.0.0 5. Send ping packets from h1 to h8 (10.0.0.8). mininet> h1 ping 10.0.0.8 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 Prasanna Huddar [ 11/Jun/14 ] |
|
Hello Hideyuki, I tried f49 test case from test provider to verify VLAN match setting looks like it is working addMDFlow openflow:1 f49 And CPQD output shows the correct vlan-ID prasanna@ubuntu:~/mininet/ofsoftswitch13$ ./utilities/dpctl tcp:127.0.0.1:6634 stats-flow SENDING: RECEIVED: ", dur_s="48", dur_ns="802000", prio="2", idle_to="0", hard_to="0", cookie="0xa", pkt_cnt="0", byte_cnt="0", insts=[meter {meter="1"}]}]} Rgds, |
| Comment by Ed Warnicke [ 12/Jun/14 ] |
|
Prasanna, please check the adaptors as the issue may be there. |
| Comment by Michal Rehak [ 20/Jun/14 ] |
|
https://git.opendaylight.org/gerrit/#/c/8172/ set vlanIdPresent to true if assigning vlanId |
| Comment by Michal Rehak [ 20/Jun/14 ] |
|
Hideyuki, could you please retest? OVS reports this flows: |
| Comment by Hideyuki Tai [ 23/Jun/14 ] |
|
(In reply to michal rehak from comment #4) Thank you! |
| Comment by Hideyuki Tai [ 23/Jun/14 ] |
|
(In reply to michal rehak from comment #3) Hi Michal, Thank you for creating the patch. I pulled the latest code of Integration Git repository, and built the Virtualization Edition on 23rd June. After that, I retested the same scenario I written in comment #1. After the patch will be merged to the master branch of controller Git repository, I'm going to change the status of the bug report to "RESOLVED". |
| Comment by Ed Warnicke [ 23/Jun/14 ] |
|
Merged: https://git.opendaylight.org/gerrit/#/c/8172/ Hideyuki, Would you mark this as resolved? |