From: Ben Pfaff Date: Wed, 1 Sep 2010 23:49:19 +0000 (-0700) Subject: Rename "xs-vif-mac" external_ids key to "attached-mac", for generality. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e61070c32030d6d00e2eeae213d219320a7cbd10;p=openvswitch Rename "xs-vif-mac" external_ids key to "attached-mac", for generality. This can be useful on systems other than XenServer so there is no reason to make it looks XenServer-specific. CC: Jeremy Stribling Signed-off-by: Ben Pfaff --- diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index 38dc6a1a..979fd5df 100644 --- a/vswitchd/vswitch.xml +++ b/vswitchd/vswitch.xml @@ -665,8 +665,15 @@ integrators should either use the Open vSwitch development mailing list to coordinate on common key-value definitions, or choose key names that are likely to be unique. The currently - defined common key-value pair is: + defined common key-value pairs are:
+
attached-mac
+
+ The MAC address programmed into the ``virtual hardware'' for this + interface, in the form + xx:xx:xx:xx:xx:xx. + For Citrix XenServer, this is the value of the MAC + field in the VIF record for this interface.
iface-id
A system-unique identifier for the interface. On XenServer, this will commonly be the same as xs-vif-uuid.
@@ -689,12 +696,6 @@
The virtual network to which this interface is attached.
xs-vm-uuid
The VM to which this interface belongs.
-
xs-vif-mac
-
The MAC address programmed into the "virtual hardware" for this - interface, in the - form xx:xx:xx:xx:xx:xx. - For Citrix XenServer, this is the value of the MAC - field in the VIF record for this interface.
diff --git a/xenserver/etc_xensource_scripts_vif b/xenserver/etc_xensource_scripts_vif index 91b75c12..f27ff5b4 100755 --- a/xenserver/etc_xensource_scripts_vif +++ b/xenserver/etc_xensource_scripts_vif @@ -114,7 +114,7 @@ handle_vswitch_vif_details() local address=$(xenstore-read "/local/domain/$DOMID/device/vif/$DEVID/mac" 2>/dev/null) if [ -n "${address}" ] ; then - set_vif_external_id "xs-vif-mac" "${address}" + set_vif_external_id "attached-mac" "${address}" fi if $xs550; then