-
- if $xs550; then
- # vNetManager needs to know the network UUID(s) associated with each
- # datapath. Normally interface-reconfigure adds them, but XAPI does
- # not use interface-reconfigure for internal networks. Instead, XAPI
- # calls the addbr ioctl internally, so we have to do it here instead
- # for internal networks. This is only acceptable because xapi is lazy
- # about creating internal networks: it only creates one just before it
- # adds the first vif to it. There may still be a brief delay between
- # the initial ovs-vswitchd connection to vNetManager and setting this
- # configuration variable, but vNetManager can tolerate that.
- local bridge=$1
- if [ -n "${net_uuid}" ] ; then
- logger -t scripts-vif "${bridge} xs-network-uuids ${net_uuid}"
- echo "-- br-set-external-id $bridge xs-network-uuids ${net_uuid}"
- fi
- fi