On Mon, 7 Apr 2014 17:25:49 -0400
Chen Chen <[email protected]> wrote:

> I'm wondering is it ever possible to install a flow entry with bitmask over
> MAC address?
> For example, whether there is an instruction able to install the following
> rule:
> "eth_dst=01:ff:*, actions=drop"

Yeah,

actions = [dp.ofproto_parser.OFPActionOutput(2)]
match = dp.ofproto_parser.OFPMatch(eth_dst=('01:ff:00:00:00:00',
                                            'ff:ff:00:00:00:00'))

The above installs the following flow into OVS:
fujita@ubuntu:~$ sudo ovs-ofctl dump-flows br0 --protocols=OpenFlow13
OFPST_FLOW reply (OF1.3) (xid=0x2):
 cookie=0x0, duration=6.304s, table=0, n_packets=0, n_bytes=0,
 priority=1,dl_dst=01:ff:00:00:00:00/ff:ff:00:00:00:00
 actions=output:2


------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to