From 266e9a5336defeff5f10331ab8316d69e7b20cc1 Mon Sep 17 00:00:00 2001 From: bobzhou Date: Fri, 10 Mar 2017 10:09:55 +0800 Subject: add onos deployment steps opnfv-tht-pr: 128 opnfv-puppet-tripleo-pr: 23 Change-Id: Ib99f7e3968ed03bd86ca0de9c6c37c9871921486 Signed-off-by: bobzhou --- lib/installer/onos/onos_gw_mac_update.sh | 56 -------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 lib/installer/onos/onos_gw_mac_update.sh (limited to 'lib/installer') diff --git a/lib/installer/onos/onos_gw_mac_update.sh b/lib/installer/onos/onos_gw_mac_update.sh deleted file mode 100644 index 3b3b0724..00000000 --- a/lib/installer/onos/onos_gw_mac_update.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -# Update gateway mac to onos for l3 function - -# author: Bob zhou -# author: Tim Rozet - - -# Update gateway mac to onos for l3 function -# params: external CIDR, external gateway -function onos_update_gw_mac { - local CIDR - local GW_IP - - if [[ -z "$1" || -z "$2" ]]; then - return 1 - else - CIDR=$1 - GW_IP=$2 - fi - - if [ -z "$UNDERCLOUD" ]; then - #if not found then dnsmasq may be using leasefile-ro - undercloud_mac=$(virsh domiflist undercloud | grep default | \ - grep -Eo "[0-9a-f\]+:[0-9a-f\]+:[0-9a-f\]+:[0-9a-f\]+:[0-9a-f\]+:[0-9a-f\]+") - UNDERCLOUD=$(/usr/sbin/arp -e | grep ${undercloud_mac} | awk {'print $1'}) - fi - # get controller ip address - controller_ip=$(ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <