[OPNFLWPLUG-592] tunnel-ipv4-source maps to nw_src instead of tun_src while writing flow onto OVS Created: 12/Jan/16 Updated: 27/Sep/21 Resolved: 12/Dec/17 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Savan Doshi | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| Attachments: |
|
| External issue ID: | 4937 |
| Description |
|
While trying to write a flow on OVS from ODL with the body shown below. The flow is added successfully but the field "tunnel-ipv4-source" got mapped to "nw_src" in OVS instead of "tun_src". <?xml version="1.0" encoding="UTF-8" standalone="no"?> Response from OVS dump-flows for the above flow is shown below : cookie=0x0, duration=3.237s, table=0, n_packets=0, n_bytes=0, idle_age=3, priority=150, ip,tun_id=0x15b3,nw_src=10.2.1.1 actions=output:1 Why tun_src does not appear on OVS flow, instead it gets mapped to nw_src? Whereas when the flow is added using ovs-ofctl add flows cmd, the parameter tun_src getting correctly mapped. cookie=0x0, duration=3.237s, table=0, n_packets=0, n_bytes=0, idle_age=3, priority=150, tun_id=0x15b3, tun_src=10.2.1.1 actions=output:1 |
| Comments |
| Comment by Savan Doshi [ 13/Jan/16 ] |
|
Attached screenshot of possible bug. |
| Comment by Savan Doshi [ 13/Jan/16 ] |
|
Attachment tunnel_ipv4_bug.png has been added with description: Attached source code of bug |
| Comment by Suvitha Balu [ 13/May/16 ] |
|
The tunnel source/destination IP fields are introduced in Open vSwitch 2.5. tun_src=ip[/netmask] So the corresponding changes needs to be done on Yang model. |
| Comment by Suvitha Balu [ 13/May/16 ] |
|
This bug need fix from openflowJava and openflowplugin module. |
| Comment by Suvitha Balu [ 17/May/16 ] |
|
Following are my fix proposal and looking for input if any issue. 1. The Field tun-src is not in the yang model which is defined for openflow base class. So i have updated the “ opendaylight-match-types.yang “ model. After building the yang file, the required builder class are also generated. Review on yang and corresponding file in openflowjava module: 2. On the actula fix, we need to change the field from Ipv4Src to TunSrc and Ipv4Dst to TunDst in MatchConvertorImpl .java. Review on MatchConvertorImpl.java in openflowplugin module: |
| Comment by Suvitha Balu [ 19/May/16 ] |
|
As per Michal Polkorab comments, this fix on hold. Review comments: |
| Comment by Anil Vishnoi [ 12/Dec/17 ] |
|
No activity on the bug for a while. Please re-open the bug if you hit this issue with carbon/nitrogen/oxygen branch. |