From e61070c32030d6d00e2eeae213d219320a7cbd10 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 1 Sep 2010 16:49:19 -0700 Subject: [PATCH] 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 --- vswitchd/vswitch.xml | 15 ++++++++------- xenserver/etc_xensource_scripts_vif | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index 38dc6a1aa..979fd5dfe 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 91b75c123..f27ff5b40 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 -- 2.43.0