diff options
Diffstat (limited to 'resources/tools/testbed-setup/playbooks/files/virl')
-rwxr-xr-x | resources/tools/testbed-setup/playbooks/files/virl/ifup | 25 | ||||
-rw-r--r-- | resources/tools/testbed-setup/playbooks/files/virl/virl-bootstrap-wrapper | 1 |
2 files changed, 25 insertions, 1 deletions
diff --git a/resources/tools/testbed-setup/playbooks/files/virl/ifup b/resources/tools/testbed-setup/playbooks/files/virl/ifup new file mode 100755 index 0000000000..a4a743ac63 --- /dev/null +++ b/resources/tools/testbed-setup/playbooks/files/virl/ifup @@ -0,0 +1,25 @@ +#! /bin/sh +# Reload the OpenSSH server when an interface comes up, to allow it to start +# listening on new addresses. + +set -e + +# Don't bother to restart sshd when lo is configured. +if [ "$IFACE" = lo ]; then + exit 0 +fi + +# Only run from ifup. +if [ "$MODE" != start ]; then + exit 0 +fi + +if [ "$IFACE" = br1 ]; then + /sbin/ip route delete default + /sbin/ip route add default via 10.30.51.1 + /sbin/ifconfig br1:0 {{ virl_l2_ip }} netmask 255.255.255.0 + exit 0 +fi + + +exit 0 diff --git a/resources/tools/testbed-setup/playbooks/files/virl/virl-bootstrap-wrapper b/resources/tools/testbed-setup/playbooks/files/virl/virl-bootstrap-wrapper index ccb326942c..dc7ead804d 100644 --- a/resources/tools/testbed-setup/playbooks/files/virl/virl-bootstrap-wrapper +++ b/resources/tools/testbed-setup/playbooks/files/virl/virl-bootstrap-wrapper @@ -43,7 +43,6 @@ puts "*******************STEP 8************************************************* expect "Which step are you on" send "8\r" -expect "Determining pillar cache" expect "True" puts "*******************STEP 9*************************************************************************************************************************************************" |