Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

unable to add flows in ODL lithium

asked 2016-01-06 04:04:03 -0800

aljoby gravatar image

When I Send the above PUT http request, the Status is 200 OK. But I am unable to see the flows installed to Mininet (switches)!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-01-06 06:18:27 -0800

runamuck gravatar image

Ensure your flow includes the following two Stanzas:

<match>
 <ethernet-match>
    <ethernet-type>
      <type>2048</type>
    </ethernet-type>
 </ethernet-match>

and

 <ip-match>
  <ip-protocol>6</ip-protocol>
 </ip-match>
</match>
edit flag offensive delete publish link more

Comments

using ip-protocol 6 will make it match on TCP, it's not for the ip version, which I can see how you might think ipv6. I think it should still be ok without, but if you want to limit to just TCP that's how: https://en.wikipedia.org/wiki/List_of_IP_protocol_numbers

jamoluhrsen ( 2016-01-06 09:54:29 -0800 )edit
0

answered 2016-01-06 09:40:14 -0800

aljoby gravatar image

updated 2016-01-06 09:45:52 -0800

Many thanks runamuck. BTW, I was reading your previous posts and answers for such question. :)

So I understand that Ethetype should be written to indicate which protocol is encapsulated in the payload of an Ethernet Frame. So the number indicates 2048 indicates that protocol used is IP v4. But I got confused what does it mean by <ip-protocol>6</ip-protocol>?

Could I find the documentation for the details of these XML tags?

Thanks again

edit flag offensive delete publish link more

Comments

As Jamo wrote, proto 6 means TCP. In terms of documentation, it's pretty sparse. What I like to do is use ovs-vsctl to create flows and then reverse-engineer in ODL to get the XML.

runamuck ( 2016-01-06 09:59:22 -0800 )edit

Please runamuck, see my question in https://ask.opendaylight.org/question/10703/rest-troubleshooting/ thanks Walid

aljoby ( 2016-01-06 11:47:12 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-01-06 04:04:03 -0800

Seen: 88 times

Last updated: Jan 06 '16