From 7997a9ec25b2feb49b24a879b5c36e36a4839754 Mon Sep 17 00:00:00 2001 From: Neelima Mukiri Date: Fri, 14 Apr 2017 02:41:24 -0700 Subject: [PATCH] Adding default params for infra vars --- install/k8s/install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install/k8s/install.sh b/install/k8s/install.sh index 5fc9f46..b6e560a 100755 --- a/install/k8s/install.sh +++ b/install/k8s/install.sh @@ -35,7 +35,7 @@ contiv_config="" # Specify TLS certs to be used for API server tls_cert="" tls_key="" -fwd_mode="bridge" +fwd_mode="routing" # ACI parameters apic_url="" apic_username="" @@ -47,6 +47,9 @@ apic_contracts_unrestricted_mode="no" aci_key="" apic_cert_dn="" +infra_gateway="132.1.1.1" +infra_subnet="132.1.1.0/24" + usage() { echo "Usage:" cat </dev/null 2>&1 if [ "$?" -eq "0" ]; then @@ -266,9 +270,10 @@ for i in {0..30}; do fi sleep 10 done +set -e +netctl global set --fwd-mode $fwd_mode netctl net create -n infra -s $infra_subnet -g $infra_gateway contivh1 -netctl --netmaster http://$netmaster:9999 global set --fwd-mode routing echo "Installation is complete" echo "========================================================="