Ask Your Question
0

How to write rules in neutron (openvswitch) bridges?

asked 2013-09-25 10:46:54 -0500

asad gravatar image

Hey guys, I have successfully installed openstack + openvswitch plugin (using devstack). I have assigned my VM floating IP and can ping my VM from outside world and vice versa.

Now I want to write flows (rules using ovs-ofctl) on the openvswitch bridges i.e., br-ex (or br-int). But the problem is that I don't see the ping (from outside world) on my br-ex bridge. (ping is successful)

I have added my physical interface into the br-ex bridge (as a port) and I can see the ping packets being recieved on the physical interface but I don't see the same packets on my br-ex interface (which is weird!).

PS: The br-ex interface does show other traffic such as rip,ARP,SSH etc packets but just not the ping I send.

I'll appreciate any kind of help

Cheers :)

edit retag flag offensive close merge delete

Comments

you should never need to that directly. But if you are developing and what to experiment, then it's all here http://openvswitch.org/cgi-bin/ovsman.cgi?page=utilities%2Fovs-ofctl.8 .

darragh-oreilly gravatar imagedarragh-oreilly ( 2013-09-26 07:52:57 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-09-26 03:12:54 -0500

asad gravatar image

Problem Solved (br-ex is the bridge to write rules on using simple ovs-ofctl):

Even though br-ex does not show the ping traffic, I can still write rules on it and they will be effective. For example:

In my scenario I was sending a ping from source=192.168.1.1 to VM (floating IP)=192.168.1.99. br-ex does not show this traffic but if I write a rule:

ovs-ofctl add-flow br-ex "dl_type=0x0800,nw_src=192.168.1.1,nw_dst=192.168.1.99,actions=drop"

Then the packets are dropped and the flow's packet count also increases.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-09-25 10:46:54 -0500

Seen: 726 times

Last updated: Sep 26 '13