From 2a937932642f3e8288d338c6fa4a2b6a7a5defc2 Mon Sep 17 00:00:00 2001 From: bob Date: Thu, 14 Jan 2016 17:42:49 +0800 Subject: add step to execute gw_mac_update.sh after apex deployed Change-Id: I47c316e26ff8e597c781562645397335e8c5bd70 Signed-off-by: bob zhou Signed-off-by: Tim Rozet --- lib/common-functions.sh | 20 ++++++++++++ lib/installer/onos/onos_gw_mac_update.sh | 56 ++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 lib/installer/onos/onos_gw_mac_update.sh (limited to 'lib') diff --git a/lib/common-functions.sh b/lib/common-functions.sh index edf06cff..1e55aa18 100644 --- a/lib/common-functions.sh +++ b/lib/common-functions.sh @@ -504,3 +504,23 @@ PEERDNS=no" > ${net_path}/ifcfg-${line} sudo systemctl restart network } + +# Update iptables rule for external network reach internet +# for virtual deployments +# params: external_cidr +function configure_undercloud_nat { + local external_cidr + if [[ -z "$1" ]]; then + return 1 + else + external_cidr=$1 + fi + + ssh -T ${SSH_OPTIONS[@]} "root@$UNDERCLOUD" <