summaryrefslogtreecommitdiffstats
path: root/scripts/remount_vpp_into_odl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/remount_vpp_into_odl.sh')
-rwxr-xr-xscripts/remount_vpp_into_odl.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/remount_vpp_into_odl.sh b/scripts/remount_vpp_into_odl.sh
index e794f23..148f1cf 100755
--- a/scripts/remount_vpp_into_odl.sh
+++ b/scripts/remount_vpp_into_odl.sh
@@ -1,11 +1,12 @@
#!/bin/bash
-script_dir=$(dirname $0)
-. $script_dir/lib.sh
+SCRIPT_DIR=$(dirname $0)
+. $SCRIPT_DIR/lib.sh
-overcloud_node_ips=$(grep -E "$NODE_PATTERN-[^-]+-[0-9]" /etc/hosts | grep -Eo '([0-9]{1,3}.){3}[0-9]{1,3}')
+overcloud_node_ips=$(grep -E "$NODE_PATTERN-[^-]+-[0-9]" /etc/hosts | grep -Eo "$IPV4_REGEX")
for overcloud_node_ip in $overcloud_node_ips
do
overcloud_node_hostname=$(ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $overcloud_node_ip hostname 2> /dev/null)
+ # TODO get node names from nova service list and neutron agent-list
echo "Mounting $overcloud_node_hostname:$overcloud_node_ip on $NODE_PATTERN-controller-0"
- $script_dir/mount_vpp_into_odl.sh $NODE_PATTERN-controller-0 $overcloud_node_hostname $overcloud_node_ip
+ $SCRIPT_DIR/mount_vpp_into_odl.sh $NODE_PATTERN-controller-0 $overcloud_node_hostname $overcloud_node_ip
done