[[PageOutline]] = OF v3 rspecs examples = If you have written any interested OFv3 rspecs, feel free to add them at the bottom of this page and help others:-) A complete example rspec can be found here [https://openflow.stanford.edu/display/FOAM/rspec example rspec] == Rspec with one group == If you want to apply your packet filters to the same set of dpids, then you just need to create one group and use it in all your matches. In this example we only match on Ethernet addresses. {{{ #!xml }}} == Rspec with multiple groups == If you need to apply different packet filters in different datapath sets, then you can create multiple groups and use them as needed in your matches. In this example we want all ARP packets of a specific vlan. {{{ #!xml }}} == Rspec with groups and datapaths == If for only one of your matches you need a different set of datapaths, you don't need to create a group you can just add the datapaths directly in your match. In this example we match all ssh (TCP port 22) traffic. {{{ #!xml }}} == Rspec for ICMP traffic from all the datapaths == {{{ #!xml }}} == Rspec to get all traffic for an IP subnet including ARP == {{{ #!xml }}} = OFv2 to OFv3 conversion examples = == Request TCP port on a subnet == The following example requests for all traffic that is sourced and destined to IP subnet 10.42.111.0/24 and it has as src or destination transport protocol port 10001. === OF v1 === {{{ #!xml }}} === OF v3 === {{{ #!xml }}}