[WARNING]: Could not match supplied host pattern, ignoring: unprovisioned PLAY [Deploy initial device configuration] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] ok: [xr] TASK [Find device readiness script] ******************************************** ok: [dut] ok: [xr] TASK [Wait for device to become ready] ***************************************** skipping: [dut] skipping: [xr] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, xr TASK [Figure out whether to deploy the module initial on current device] ******* ok: [dut] ok: [xr] TASK [Find configuration template for initial] ********************************* ok: [dut] ok: [xr] TASK [fail] ******************************************************************** skipping: [dut] skipping: [xr] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => msg: |- initial configuration for dut ========================================= #!/bin/bash # # This script contains the 'ip' commands needed to set up container # interfaces and route table. It's executed within the container # network namespace on the container host. # # /etc/hosts file is generated as a clab bind. # set -e ### One-Shot configuration (non-Ubuntu VM or container) # # Disable IPv4 and IPv6 forwarding # sysctl -w net.ipv4.ip_forward=0 sysctl -w net.ipv6.conf.all.forwarding=0 # # Interface addressing, create any bond devices # if [ ! -e /sys/class/net/bond1 ]; then ip link add dev bond1 type bond mode 802.3ad lacp_rate fast lacp_active on fi ip link set dev bond1 up set +e ip addr del 172.16.0.1/24 dev bond1 2>/dev/null set -e ip addr add 172.16.0.1/24 dev bond1 ip link set dev eth1 up ip link set eth1 mtu 1500 ip link set dev eth2 up ip link set eth2 mtu 1500 # # Add static routes (usually IPv4 routes pointing to the first usable gateway) # echo Removing existing IPv4 routes while ip route del 172.16.0.0/16 2>/dev/null; do : ; done while ip route del 10.0.0.0/24 2>/dev/null; do : ; done while ip route del 10.1.0.0/16 2>/dev/null; do : ; done while ip route del 10.2.0.0/24 2>/dev/null; do : ; done # # echo Adding direct static routes ip route add 172.16.0.0/16 via 172.16.0.2 dev bond1 protocol static ip route add 10.0.0.0/24 via 172.16.0.2 dev bond1 protocol static ip route add 10.1.0.0/16 via 172.16.0.2 dev bond1 protocol static ip route add 10.2.0.0/24 via 172.16.0.2 dev bond1 protocol static # # Print the final routing table ip route # set -e ip addr add fe80::1/64 dev lo scope link ok: [xr] => msg: |- initial configuration for xr ========================================= #!/bin/bash # set -e set -x # # Create bash profile script # cat <