Thanks much Yusuke, <<We are making ofctl_rest.py patches to support 2), 3).
May I know when the patch would be available so that I can get the update? On 11/11/14, 12:19 AM, "Yusuke Iwase" <[email protected]> wrote: >Hi, > >On 2014年11月11日 15:38, Ashok Jude wrote: >> Hi All, >> >> I am testing a vendor hardware based switch which supports only >>OF1.3.1. I wanted to test /push flows based on the below match >>combination for VLAN_TAGS. >> Can you help me with following clarifications. >> >> I)I don’t understand OXM mask and use. Can you explain me with some >>examples? > >In Ryu, you can use OFPMatch. > >1) Packets with and without a VLAN tag > > - Match class > ofproto_v1_3_parser.OFPMatch() > > - Packet Matching > non-VLAN-tagged MATCH > VLAN-tagged(vlan_id=3) MATCH > VLAN-tagged(vlan_id=5) MATCH > >2) Only packets without a VLAN tag > > - Match class > ofproto_v1_3_parser.OFPMatch(vlan_vid=0x0000) > > - Packet Matching > non-VLAN-tagged MATCH > VLAN-tagged(vlan_id=3) x > VLAN-tagged(vlan_id=5) x > >3) Only packets with a VLAN tag regardless of its value > > - Match class > ofproto_v1_3_parser.OFPMatch(vlan_vid=(0x1000, 0x1000)) > > - Packet Matching > non-VLAN-tagged x > VLAN-tagged(vlan_id=3) MATCH > VLAN-tagged(vlan_id=5) MATCH > >4) Only packets with VLAN tag and VID equal > > - Match class > ofproto_v1_3_parser.OFPMatch(vlan_vid=(0x1000 | 3)) > > - Packet Matching > non-VLAN-tagged x > VLAN-tagged(vlan_id=3) MATCH > VLAN-tagged(vlan_id=5) x > > >> II) How can I push flow for 2), 3) and 4). Can you give me the curl >>command examples? > >Currently, ofctl_rest.py can push flow for 4) like as follows, >but has no implementation for 2), 3). >We are making ofctl_rest.py patches to support 2), 3). > > >curl -X POST -d '{ > "dpid": "1", > "match":{ > "in_port": 1, > "vlan_vid": 5 > } > }' http://localhost:8080/stats/flowentry/add > >For REST API command exaples, please refer to Ryu Documentation. > http://ryu.readthedocs.org/en/latest/app/ofctl_rest.html > > >If you want to push flow for 2), 3), How about making RyuApps for your >tests. >Ryu libraries support VLAN_VID match (for 2), 3) and 4)), PUSH_VLAN action >and SET_FIELD action to set vlan_vid. > http://ryu.readthedocs.org/en/latest/ > >> >> More explanation of this match combination and RYU implementation would >>be helpful. >> >> >> >> >> >> OXM field >> >> >> >> oxm value >> >> >> >> oxm mask >> >> >> >> Matching packets >> >> 1)absent >> >> >> >> - >> >> >> >> - >> >> >> >> Packets with and without a VLAN tag >> >> 2)present >> >> >> >> OFPVID_NONE >> >> >> >> absent >> >> >> >> Only packets without a VLAN tag >> >> 3)present >> >> >> >> OFPVID_PRESENT >> >> >> >> OFPVID_PRESENT >> >> >> >> Only packets with a VLAN tag regardless of its value >> >> 4)present >> >> >> >> value | OFPVID_PRESENT >> >> >> >> absent >> >> >> >> Only packets with VLAN tag and VID equal >> >> value >> >> >> >> >>------------------------------------------------------------------------- >>----- >> Comprehensive Server Monitoring with Site24x7. >> Monitor 10 servers for $9/Month. >> Get alerted through email, SMS, voice calls or mobile push >>notifications. >> Take corrective actions from your mobile device. >> >>http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clk >>trk >> >> >> >> _______________________________________________ >> Ryu-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/ryu-devel >> ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
