X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ffoundation%2Fscripts%2Fsetup-cni.sh;h=b383b97cc47243eefed42f002b71dd345d343fc6;hb=37289e2600c2c312113b20b6afcd69221703bc50;hp=30bc841dd46bc94bf42b61799461307896b90ccd;hpb=446674dca6bd24d1b41bfad046788db20e43c937;p=iec.git diff --git a/src/foundation/scripts/setup-cni.sh b/src/foundation/scripts/setup-cni.sh index 30bc841..b383b97 100755 --- a/src/foundation/scripts/setup-cni.sh +++ b/src/foundation/scripts/setup-cni.sh @@ -16,11 +16,7 @@ SCRIPTS_DIR=$(dirname "${BASH_SOURCE[0]}") install_calico(){ # Install the Etcd Database - if [ "$(uname -m)" == 'aarch64' ]; then - ETCD_YAML=etcd-arm64.yaml - else - ETCD_YAML=etcd-amd64.yaml - fi + ETCD_YAML=etcd.yaml sed -i "s/10.96.232.136/${CLUSTER_IP}/" "${SCRIPTS_DIR}/cni/calico/${ETCD_YAML}" kubectl apply -f "${SCRIPTS_DIR}/cni/calico/${ETCD_YAML}" @@ -40,6 +36,10 @@ install_flannel(){ kubectl apply -f "${SCRIPTS_DIR}/cni/flannel/kube-flannel.yml" } +install_contiv(){ + # Install the Contiv-vpp + echo "World peach!!!!!!!!!!!!!!" +} case ${CNI_TYPE} in 'calico') @@ -50,6 +50,10 @@ case ${CNI_TYPE} in echo "Install flannel ..." install_flannel ;; + 'contivvpp') + echo "Install Contiv-vpp ..." + install_contiv + ;; *) echo "${CNI_TYPE} does not supportted" exit 1