Ensure ports we add to bridges are up

The ports we add to the external network bridge or standard physical
network bridges may be in a down state after they are added. This
ensures we bring them up after adding them to the bridge

Change-Id: I34b1c2fa17bdfd4941c09de8162418ee3d36eaba
This commit is contained in:
Alan Meadows 2017-04-13 13:08:07 -07:00
parent 91a966206f
commit 5fffc517bd

View File

@ -24,9 +24,11 @@ port=$2
# by the agent
ovs-vsctl --no-wait --may-exist add-br $bridge
ovs-vsctl --no-wait --may-exist add-port $bridge $port
ip link set dev $port up
# handle any bridge mappings
{{- range $bridge, $port := .Values.ml2.ovs.auto_bridge_add }}
ovs-vsctl --no-wait --may-exist add-br {{ $bridge }}
ovs-vsctl --no-wait --may-exist add-port {{ $bridge }} {{ $port }}
ip link set dev {{ $port }} up
{{- end}}