Add support for external interface bringup

This PS adds support to the vswitch to start the external interface
if needed. It defaults to not doing anything.

Change-Id: I964d29b677de7ae9274f698489a331ba514def01
This commit is contained in:
Kevin Fox 2017-04-17 11:28:54 -07:00
parent af5c0fcd26
commit d93d39fdd1
3 changed files with 7 additions and 0 deletions

View File

@ -291,6 +291,7 @@ openvswitch-vswitchd-daemonset:
setup_bridge: true
add_port: false
ext_bridge_name: br-ex
ext_bridge_up: false
ext_interface_name: eth1
rabbitmq-init-element-job:

View File

@ -77,6 +77,9 @@ spec:
{{- if $localVals.add_port }}
ovs-vsctl --no-wait --db=unix:/var/run/openvswitch/db.sock add-port {{ $extBridgeName }} {{ $extInterfaceName }};
{{- end }}
{{- if $localVals.ext_bridge_up }}
ip link set {{ $extBridgeName }} up;
{{- end }}
{{- end }}
echo $(date) >> /var/log/kolla/vswitchd-init.log;" ],
"volumeMounts": [

View File

@ -44,4 +44,7 @@ function common_workflow_config {
echo " external_vip: $IP"
echo " base_distro: $base_distro"
echo " tunnel_interface: $tunnel_interface"
echo " openvswitch:"
echo " all:"
echo " ext_bridge_up: true"
}