From 5fffc517bdbe0e26aa396e6b7e152b5d0174a0d5 Mon Sep 17 00:00:00 2001 From: Alan Meadows Date: Thu, 13 Apr 2017 13:08:07 -0700 Subject: [PATCH] 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 --- neutron/templates/bin/_openvswitch-ensure-configured.sh.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neutron/templates/bin/_openvswitch-ensure-configured.sh.tpl b/neutron/templates/bin/_openvswitch-ensure-configured.sh.tpl index 4fee97c704..48671c4ba1 100644 --- a/neutron/templates/bin/_openvswitch-ensure-configured.sh.tpl +++ b/neutron/templates/bin/_openvswitch-ensure-configured.sh.tpl @@ -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}}