From 0146cf98babfe25648532ac1514e04ba5c7e755f Mon Sep 17 00:00:00 2001 From: Jian Li Date: Thu, 23 May 2019 10:52:19 +0900 Subject: [PATCH] Open openvswitch_db_server port 6640 to interact with SDN controller This change allows the openvswitch to interact with SDN controller (e.g., ONOS, ODL) through 6640 port. Story: 2005763 Task: 33473 Change-Id: Ifcbb6a157c230fa729d295ef0d3fb9a16fff60a2 --- openvswitch/templates/bin/_openvswitch-db-server.sh.tpl | 3 +++ openvswitch/values.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/openvswitch/templates/bin/_openvswitch-db-server.sh.tpl b/openvswitch/templates/bin/_openvswitch-db-server.sh.tpl index b19bb0a72..2e62116ce 100644 --- a/openvswitch/templates/bin/_openvswitch-db-server.sh.tpl +++ b/openvswitch/templates/bin/_openvswitch-db-server.sh.tpl @@ -42,6 +42,9 @@ function start () { --pidfile=${OVS_PID} \ --remote=punix:${OVS_SOCKET} \ --remote=db:Open_vSwitch,Open_vSwitch,manager_options \ +{{- if .Values.conf.openvswitch_db_server.ptcp_port }} + --remote=ptcp:{{ .Values.conf.openvswitch_db_server.ptcp_port }} \ +{{- end }} --private-key=db:Open_vSwitch,SSL,private_key \ --certificate=db:Open_vSwitch,SSL,certificate \ --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert diff --git a/openvswitch/values.yaml b/openvswitch/values.yaml index cf3e953e2..bb69740b5 100644 --- a/openvswitch/values.yaml +++ b/openvswitch/values.yaml @@ -148,3 +148,7 @@ manifests: daemonset_ovs_vswitchd: true job_image_repo_sync: true network_policy: false + +conf: + openvswitch_db_server: + ptcp_port: null