Hi,
The following document is helpful for you?
http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPMatch

For example, to match the destination IPv4 network "192.168.122.0/24":
    match = parser.OFPMatch(
        eth_type=0x0800,
        ipv4_dst=("192.168.122.0", "255.255.255.0"))

Thanks,
Iwase


On 2018年02月02日 11:14, knet solutions wrote:
Hi

I require support for adding the network(with subnetmask) in the flow table. I find the example of specific destination_ip match only.

My requirement is something like,

match: destination,network 192.168.122.0/24 <http://192.168.122.0/24> --- 
outport:2

openflow1.3 specification says, this can be achieved via wildcard fields.

Any example programs available ?

--
*/Regards,
/*
*/Suresh Kumar
/*
*/Knet solutions./*

https://github.com/knetsolutions/KNet
http://knet-topology-builder.readthedocs.io/
http://knetsolutions.in/


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to