Re: [ovs-discuss] Modifying IP address bits

2014-01-07 Thread Ben Pfaff
On Tue, Jan 07, 2014 at 10:22:54PM -0500, Jason Thorpe wrote: > > ovs-ofctl add-flow br0 > > 'ip,nw_src=0.128.0.0/0.128.0.0,actions=load:0->NXM_OF_IP_SRC[23]' > > ovs-ofctl add-flow br0 > > 'ip,nw_src=0.0.0.0/0.128.0.0,actions=load:1->NXM_OF_IP_SRC[23]' > > Is it possible to wildcard this? This

Re: [ovs-discuss] Modifying IP address bits

2014-01-07 Thread Jason Thorpe
Hi Ben thanks for the tip. > ovs-ofctl add-flow br0 > 'ip,nw_src=0.128.0.0/0.128.0.0,actions=load:0->NXM_OF_IP_SRC[23]' > ovs-ofctl add-flow br0 > 'ip,nw_src=0.0.0.0/0.128.0.0,actions=load:1->NXM_OF_IP_SRC[23]' Is it possible to wildcard this? This is what I did: sudo ovs-ofctl add-flow br0 'ip

Re: [ovs-discuss] Modifying IP address bits

2014-01-07 Thread Ben Pfaff
On Mon, Jan 06, 2014 at 11:11:11PM -0500, Jason Thorpe wrote: > > mailto:jasonthor...@outlook.com>> wrote: > > is it possible to modify specific bits of an IP address when setting > > flow rules for a switch? (using add-flow and > > actions=mod_nw_{src,dst} ). > > > > That won't work, since th

Re: [ovs-discuss] Modifying IP address bits

2014-01-06 Thread Justin Pettit
On Mon, Jan 6, 2014 at 8:11 PM, Jason Thorpe wrote: > > I need to do this for many IP addresses. What I am trying to do here is to > replicate the Modelnet bitflip behaviour where the 23rd bit of the source > and destination addresses are flipped [10.128.0.1 -> 10.0.0.1]. So out of > the options I

Re: [ovs-discuss] Modifying IP address bits

2014-01-06 Thread Jason Thorpe
Hi Justin Thanks for replying > mailto:jasonthor...@outlook.com>> wrote: > is it possible to modify specific bits of an IP address when setting > flow rules for a switch? (using add-flow and > actions=mod_nw_{src,dst} ). > > That won't work, since that action is expecting a specific IP addre

Re: [ovs-discuss] Modifying IP address bits

2014-01-06 Thread Justin Pettit
On Sat, Jan 4, 2014 at 3:32 PM, Jason Thorpe wrote: > is it possible to modify specific bits of an IP address when setting flow > rules for a switch? (using add-flow and actions=mod_nw_{src,dst} ). > That won't work, since that action is expecting a specific IP address. > basically, I am lookin

[ovs-discuss] Modifying IP address bits

2014-01-04 Thread Jason Thorpe
hi is it possible to modify specific bits of an IP address when setting flow rules for a switch? (using add-flow and actions=mod_nw_{src,dst} ). basically, I am looking for setting actions on the IP address to change some source/destination. like modifying all IPs from 192.168.0.* to 192.168.1.*