hi, Actually the issue is according to openflow 1.0 spec when i use *ovs-ofctl add-flows br0 "dl_type=0x0800 nw_proto=1 nw_dst=10.0.3.4 nw_src= 10.1.3.2/8 actions=1" * *ovs-dump-flows br0 should give follwing output * cookie=0x0, duration=21.265s, table=0, n_packets=0, n_bytes=0, icmp,nw_src=10.0.3.4*,nw_dst=10.1.3.0/8 *actions=output:1 * *that is the least significant 8 bits should be wildcarded.
But in openvswitch the ovs-dump-flows br0 give me following output cookie=0x0, duration=21.265s, table=0, n_packets=0, n_bytes=0, icmp,nw_src=10.0.3.4,*nw_dst=10.0.0.0/8* actions=output:1 this means least significant 24 bits are wildcarded. In openvswitch code it is shown that CIDR masks are supported for IP address, which is not openflow 1.0 compliant. I get the same result when i look at output of ovs-ofctl specking openflow. On Fri, Jan 27, 2012 at 3:21 PM, Justin Pettit <jpet...@nicira.com> wrote: > I don't think there's a problem. I'd guess if you looked at the output of > ovs-ofctl speaking OpenFlow, you'd see the mask as defined in the spec. > However, we've made the user interface more intuitive to users, so it uses > normal CIDR masks. > > --Justin > > > On Jan 27, 2012, at 1:11 AM, edward wilson wrote: > > > HI, > > I am using openvswitch 1.2.2 on my linux 2.6.38 fedora machine. > > I added following flow on switch > > > > ovs-ofctl add-flows br0 "dl_type=0x0800 nw_proto=1 nw_dst=10.0.3.4 > nw_src=10.1.3.2/8 actions=1" > > > > Now when i use ovs-ofctl dump-flows br1, it shows > > > > cookie=0x0, duration=3.855s, table=0, n_packets=0, n_bytes=0, > icmp,nw_dst=10.0.3.4,nw_src=10.0.0.0/8 actions=NORMAL > > > > > > Now openvswitch interpret this wildcard mask as CIDR suffix, and it has > wildcarded 24 least significant bits, first 8 bits are non-wildcard > > But as per openflow 1.0 spec wildcard mask is interpreted as CIDR suffix > with opposite meaning , i.e suffix of 8 should wildcard least significant 8 > bits of ip address. > > > > > > > > > > > > _______________________________________________ > > discuss mailing list > > discuss@openvswitch.org > > http://openvswitch.org/mailman/listinfo/discuss > >
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss