From 6b8de2955ff67674ce0f087373e8c6c38720422c Mon Sep 17 00:00:00 2001 From: Chris Wedgwood Date: Mon, 10 Sep 2018 02:27:12 +0000 Subject: [PATCH] [Open vSwitch] Remove auto_bridge_add support We have two functionally identical places where we add bridges, one in the neutron chart and one in the openvswitch chart. It makes more sense to do it only in the neutron chart as that aligns with the linux_bridge configuration and also is where the bridge_mappings are specified. Change-Id: I655380b021b89c3d93475febf7daca8f9d88cc54 --- .../templates/bin/_openvswitch-vswitchd.sh.tpl | 12 ------------ openvswitch/values.yaml | 13 ------------- 2 files changed, 25 deletions(-) diff --git a/openvswitch/templates/bin/_openvswitch-vswitchd.sh.tpl b/openvswitch/templates/bin/_openvswitch-vswitchd.sh.tpl index 94d937ce1..373e0162e 100644 --- a/openvswitch/templates/bin/_openvswitch-vswitchd.sh.tpl +++ b/openvswitch/templates/bin/_openvswitch-vswitchd.sh.tpl @@ -36,18 +36,6 @@ function start () { ovs-vsctl --no-wait show - # handle any bridge mappings - {{- range $br, $phys := .Values.network.auto_bridge_add }} - if [ -n "{{- $br -}}" ] ; then - # create {{ $br }}{{ if $phys }} and add port {{ $phys }}{{ end }} - ovs-vsctl --no-wait --may-exist add-br "{{ $br }}" - if [ -n "{{- $phys -}}" ] ; then - ovs-vsctl --no-wait --may-exist add-port "{{ $br }}" "{{ $phys }}" - ip link set dev "{{ $phys }}" up - fi - fi - {{- end }} - exec /usr/sbin/ovs-vswitchd unix:${OVS_SOCKET} \ -vconsole:emer \ -vconsole:err \ diff --git a/openvswitch/values.yaml b/openvswitch/values.yaml index 9d27558c8..abc971a59 100644 --- a/openvswitch/values.yaml +++ b/openvswitch/values.yaml @@ -37,19 +37,6 @@ labels: node_selector_key: openvswitch node_selector_value: enabled -network: - # auto_bridge_add is a table of "bridge: interface" pairs, by - # default empty - # To automatically add a physical interfaces to a specific bridges, - # for example eth3 to bridge br-physnet1, if0 to br0 and iface_two - # to br1 do something like: - # - # auto_bridge_add: - # br-physnet1: eth3 - # br0: if0 - # br1: iface_two - auto_bridge_add: {} - pod: lifecycle: upgrades: