[one-users] VNET_HOOK script?

Dmitri Chebotarov dchebota at gmu.edu
Wed Sep 4 09:03:29 PDT 2013


Hi

Does anyone have an example script on how to use VNET_HOOK?

I need to make custom changes for a OVS's flows when a VM started or migrated to other host.
In particular I would like to undo MAC_spoofing rule for a VM (based on VM's custom attribute/tag):

sudo /usr/bin/ovs-ofctl add-flow br0 in_port=207,dl_src=00:50:56:00:10:5d,priority=40000,actions=normal
sudo /usr/bin/ovs-ofctl add-flow br0 in_port=207,priority=39000,actions=drop

I think the script associated with VNET_HOOK needs to access VM's attributes and in_port value...

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130904/f3b34619/attachment-0001.htm>


More information about the Users mailing list