X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=xenserver%2Fetc_init.d_vswitch;h=304eabb1cf962b5fd0da18aee5eedeae5dd0aa23;hb=daf03c53ee14a0227b43330be2e638b9ad9ce022;hp=480f9a9c42f84d8b1dda96e3d2f6a5707e380707;hpb=23817ac722022c48b40140c1da617388293185e4;p=openvswitch diff --git a/xenserver/etc_init.d_vswitch b/xenserver/etc_init.d_vswitch index 480f9a9c..304eabb1 100755 --- a/xenserver/etc_init.d_vswitch +++ b/xenserver/etc_init.d_vswitch @@ -318,6 +318,16 @@ EOF esac } +function set_system_uuid { + system_uuid=$(. /etc/xensource-inventory && echo $INSTALLATION_UUID) + if test -n "$system_uuid"; then + action "Configuring Open vSwitch system UUID" true + $vsctl --no-wait set Open_vSwitch . external-ids:system-uuid="$system_uuid" + else + action "Configuring Open vSwitch system UUID" false + fi +} + function start { if [ "$FORCE_COREFILES" = "y" ]; then turn_on_corefiles @@ -351,6 +361,8 @@ function start { done fi + set_system_uuid + start_vswitchd start_brcompatd touch /var/lock/subsys/vswitch