[WARNING]: Could not match supplied host pattern, ignoring: unprovisioned PLAY [Deploy initial device configuration] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [p1] ok: [p2] ok: [h1] ok: [dut] ok: [h2] ok: [h4] ok: [pe2] ok: [h3] TASK [Find device readiness script] ******************************************** ok: [p1] ok: [p2] ok: [dut] ok: [h1] ok: [h3] ok: [h2] ok: [pe2] ok: [h4] TASK [Wait for device to become ready] ***************************************** skipping: [dut] skipping: [pe2] skipping: [p1] skipping: [p2] skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, pe2, p1, p2, h1, h2, h3, h4 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [p1] ok: [p2] ok: [h1] ok: [dut] ok: [h2] ok: [pe2] ok: [h3] ok: [h4] TASK [Find configuration template for initial] ********************************* ok: [p1] ok: [p2] ok: [h1] ok: [dut] ok: [pe2] ok: [h2] ok: [h3] ok: [h4] TASK [Print deployed configuration when running in verbose mode] *************** ok: [h4] => msg: |- initial configuration for h4 ========================================= #!/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 # ip link set dev eth1 up sysctl -w net.ipv6.conf.eth1.disable_ipv6=0 set +e ip -6 addr del 2001:db8:42:3::4/64 dev eth1 2>/dev/null set -e ip -6 addr add 2001:db8:42:3::4/64 dev eth1 ip link set eth1 mtu 1500 # # Add routes to IPv4 address pools pointing to the first neighbor on the first link # # If you need anything better, use FRR instead of Linux and start routing (or use IPv6) # # # Print the final routing table ip route ok: [pe2] => msg: |- initial configuration for pe2 ========================================= hostname pe2 ! logging monitor debugging ! lldp run ip routing ipv6 unicast-routing ! vrf instance t1 rd 65000:1 ! ipv6 unicast-routing vrf t1 ! vrf instance t2 rd 65000:2 ! ipv6 unicast-routing vrf t2 ! ! ip host dut 10.0.0.5 172.16.0.5 ip host p1 10.0.0.7 172.16.0.7 172.16.1.7 ip host p2 10.0.0.8 172.16.1.8 172.16.2.8 ipv6 host dut-t1 2001:db8:42::5 ipv6 host dut-t2 2001:db8:42:2::5 ipv6 host h1 2001:db8:42::1 ipv6 host h2 2001:db8:42:1::2 ipv6 host h3 2001:db8:42:2::3 ipv6 host h4 2001:db8:42:3::4 ipv6 host pe2-t1 2001:db8:42:1::6 ipv6 host pe2-t2 2001:db8:42:3::6 ! interface Management1 no lldp transmit no lldp receive ! interface Loopback0 no shutdown ip address 10.0.0.6/32 ! interface Ethernet1 no shutdown no switchport description pe2 -> p2 ip address 172.16.2.6/24 ! mac-address 52dc.cafe.0601 ! interface Ethernet2 no shutdown no switchport vrf t1 description pe2 -> h2 [stub] ipv6 nd ra interval 5 ipv6 address 2001:db8:42:1::6/64 ! mac-address 52dc.cafe.0602 ! interface Ethernet3 no shutdown no switchport vrf t2 description pe2 -> h4 [stub] ipv6 nd ra interval 5 ipv6 address 2001:db8:42:3::6/64 ! mac-address 52dc.cafe.0603 ! ok: [dut] => msg: |- initial configuration for dut ========================================= hostname dut ! no ip domain lookup ! lldp run ! ip host dut-t1 2001:db8:42::5 ip host dut-t2 2001:db8:42:2::5 ip host h1 2001:db8:42::1 ip host h2 2001:db8:42:1::2 ip host h3 2001:db8:42:2::3 ip host h4 2001:db8:42:3::4 ip host p1 10.0.0.7 172.16.0.7 172.16.1.7 ip host p2 10.0.0.8 172.16.1.8 172.16.2.8 ip host pe2 10.0.0.6 172.16.2.6 ip host pe2-t1 2001:db8:42:1::6 ip host pe2-t2 2001:db8:42:3::6 ! ipv6 unicast-routing ! vrf definition t1 rd 65000:1 route-target import 65000:1 route-target export 65000:1 ! address-family ipv6 exit-address-family ! vrf definition t2 rd 65000:2 route-target import 65000:2 route-target export 65000:2 ! address-family ipv6 exit-address-family ! ! ! interface Loopback0 ip address 10.0.0.5 255.255.255.255 ! interface GigabitEthernet1 no lldp transmit no lldp receive ! interface GigabitEthernet2 no shutdown description dut -> p1 ip address 172.16.0.5 255.255.255.0 ! interface GigabitEthernet3 no shutdown vrf forwarding t1 description dut -> h1 [stub] ipv6 address 2001:DB8:42::5/64 ! interface GigabitEthernet4 no shutdown vrf forwarding t2 description dut -> h3 [stub] ipv6 address 2001:DB8:42:2::5/64 ! no banner exec no banner login no banner incoming ok: [h1] => msg: |- initial configuration for h1 ========================================= #!/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 # ip link set dev eth1 up sysctl -w net.ipv6.conf.eth1.disable_ipv6=0 set +e ip -6 addr del 2001:db8:42::1/64 dev eth1 2>/dev/null set -e ip -6 addr add 2001:db8:42::1/64 dev eth1 ip link set eth1 mtu 1500 # # Add routes to IPv4 address pools pointing to the first neighbor on the first link # # If you need anything better, use FRR instead of Linux and start routing (or use IPv6) # # # Print the final routing table ip route ok: [p2] => msg: |- initial configuration for p2 ========================================= #!/bin/bash # set -e set -x # # Create bash profile script # cat <