From 5ea1a96bdf5832b7af2ba7ed817fba6b9b7dabbc Mon Sep 17 00:00:00 2001 From: Le Yao Date: Wed, 16 Feb 2022 23:35:38 -0500 Subject: [PATCH] Helm Chart and example updates Signed-off-by: Le Yao Change-Id: I1b1ab2fbf11d12d1c784fa74d504e1b7d8da29cd --- .../src/scc/pkg/manager/overlay_objectmanager.go | 2 +- .../crd-ctrlr/examples/attach-network-ovn.yaml | 4 +- platform/crd-ctrlr/examples/cnf-deployment.yaml | 107 +++++++++++++++------ platform/crd-ctrlr/examples/ovn-net1.yaml | 8 +- platform/crd-ctrlr/examples/ovn-provnet.yaml | 8 +- platform/deployment/README.md | 8 +- platform/deployment/helm/sdewan_cnf/values.yaml | 2 +- 7 files changed, 92 insertions(+), 47 deletions(-) diff --git a/central-controller/src/scc/pkg/manager/overlay_objectmanager.go b/central-controller/src/scc/pkg/manager/overlay_objectmanager.go index 41b1073..e259025 100644 --- a/central-controller/src/scc/pkg/manager/overlay_objectmanager.go +++ b/central-controller/src/scc/pkg/manager/overlay_objectmanager.go @@ -633,7 +633,7 @@ func (c *OverlayObjectManager) DeleteConnection(m map[string]string, conn module } func (c *OverlayObjectManager) DeleteConnections(m map[string]string, m1 module.ControllerObject) error { - //Get all connections related to the ControllerObject and do deletion^M + //Get all connections related to the ControllerObject and do deletion conn_manager := GetConnectionManager() overlay_name := m[OverlayResource] conns, err := conn_manager.GetObjects(overlay_name, module.CreateEndName(m1.GetType(), m1.GetMetadata().Name)) diff --git a/platform/crd-ctrlr/examples/attach-network-ovn.yaml b/platform/crd-ctrlr/examples/attach-network-ovn.yaml index f0753d2..ac80c3c 100644 --- a/platform/crd-ctrlr/examples/attach-network-ovn.yaml +++ b/platform/crd-ctrlr/examples/attach-network-ovn.yaml @@ -1,10 +1,10 @@ -# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2021 Intel Corporation --- apiVersion: k8s.cni.cncf.io/v1 kind: NetworkAttachmentDefinition metadata: - name: ovn-networkobj + name: ovn4nfv-k8s-plugin spec: config: '{ "cniVersion": "0.3.1", diff --git a/platform/crd-ctrlr/examples/cnf-deployment.yaml b/platform/crd-ctrlr/examples/cnf-deployment.yaml index 8b72fb5..6d4d0dd 100644 --- a/platform/crd-ctrlr/examples/cnf-deployment.yaml +++ b/platform/crd-ctrlr/examples/cnf-deployment.yaml @@ -1,5 +1,16 @@ -# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2021 Intel Corporation +--- +apiVersion: v1 +kind: Secret +metadata: + name: sdewan-safe-pass + namespace: default +type: Opaque +stringData: + password: root1 +... + --- apiVersion: v1 data: @@ -7,12 +18,18 @@ data: #!/bin/bash # Always exit on errors. set -ex + sysctl -w net.ipv4.ip_forward=1 echo "" > /etc/config/network cat > /etc/config/mwan3 <> /etc/config/mwan3 <