digitalocean / go-openvswitch

Go packages which enable interacting with Open vSwitch and related tools. Apache 2.0 Licensed.
Other
295 stars 95 forks source link

support set Interface w/ external-ids #82

Open h-w-chen opened 5 years ago

h-w-chen commented 5 years ago

This is a Feature Request

ovs-vsctl is able to set external-ids properties to records in ovsdb

ovs-vsctl set Interface foo external-ids:iface-id=bar external-ids:iface-status=active external-ids:attached-mac=<mac> external-ids:vm-uuid:<uuid>

This is actually used by OpenStack Nova agent to pass information for Neutron agent to populate proper overflow rules.

go-openvswicth has (v *VSwitchSetService) Interface(ifi string, options InterfaceOptions) method able to set Interface properties, however, not external-ids ones.

go-openvswitch should extend the Interface method to make it possible to set external-ids key-value pairs.