From d9af660c057e5f272e4ea94659554ade733b3dad Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Tue, 3 Aug 2010 23:00:04 -0700 Subject: [PATCH] vswitch: Break out XenServer-specific external ids As we move to new platforms, not all external identifiers will be universally unique, but the "-uuid" suffix seemingly prevents their use. Create new identifiers without the "-uuid" suffix. Change the existing XenServer-specific external identifiers to contain a "xs-" prefix. This also allows a XenServer integrator to define identifiers different from the XenServer UUIDs, but still leave them in the config database to be used by other programs. --- vswitchd/vswitch.xml | 61 +++++++++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 23 deletions(-) diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index 5789964a8..7d61aac71 100644 --- a/vswitchd/vswitch.xml +++ b/vswitchd/vswitch.xml @@ -32,11 +32,20 @@ choose key names that are likely to be unique. The currently defined common key-value pairs are:
-
system-uuid
-
A universally unique identifier for the Open vSwitch's - physical host. The form of the identifier depends on the - type of the host. On a Citrix XenServer, this is the host - UUID displayed by, e.g., xe host-list.
+
system-type
+
An identifier for the switch type, such as + XenServer or KVM.
+
system-version
+
The version of the switch software, such as + 5.6.0 on XenServer.
+
system-id
+
A unique identifier for the Open vSwitch's physical host. + The form of the identifier depends on the type of the host. + On a Citrix XenServer, this will likely be the same as + xs-system-uuid.
+
xs-system-uuid
+
The Citrix XenServer universally unique identifier for the + physical host as displayed by xe host-list.
@@ -187,13 +196,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 pairs are: + defined key-value pairs are:
-
network-uuids
+
bridge-id
+
A unique identifier of the bridge. On Citrix XenServer this + will commonly be the same as xs-network-uuids.
+
xs-network-uuids
Semicolon-delimited set of universally unique identifier(s) for - the network with which this bridge is associated. The form of the - identifier(s) depends on the type of the host. On a Citrix - XenServer host, the network identifiers are RFC 4122 UUIDs as + the network with which this bridge is associated on a Citrix + XenServer host. The network identifiers are RFC 4122 UUIDs as displayed by, e.g., xe network-list.
@@ -649,15 +660,19 @@ + Key-value pairs for use by external frameworks that integrate + with Open vSwitch, rather than by Open vSwitch itself. System + 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: +
+
iface-id
+
A system-unique identifier for the interface. On XenServer, + this will commonly be the same as xs-vif-uuid.
+

- Key-value pairs for use by external frameworks that integrate - with Open vSwitch, rather than by Open vSwitch itself. System - 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. -

-

- All of the currently defined key-value pairs specifically + Additionally the following key-value pairs specifically apply to an interface that represents a virtual Ethernet interface connected to a virtual machine. These key-value pairs should not be present for other types of interfaces. Keys whose names end @@ -666,15 +681,15 @@ UUIDs in RFC 4122 format. Other hypervisors may use other formats.

-

The currently defined key-value pairs are:

+

The currently defined key-value pairs for XenServer are:

-
vif-uuid
+
xs-vif-uuid
The virtual interface associated with this interface.
-
network-uuid
+
xs-network-uuid
The virtual network to which this interface is attached.
-
vm-uuid
+
xs-vm-uuid
The VM to which this interface belongs.
-
vif-mac
+
xs-vif-mac
The MAC address programmed into the "virtual hardware" for this interface, in the form xx:xx:xx:xx:xx:xx. -- 2.43.0