[WARNING]: Could not match supplied host pattern, ignoring: unprovisioned PLAY [Deploy initial device configuration] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] ok: [x1] TASK [Find device readiness script] ******************************************** ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] ok: [x1] TASK [Wait for device to become ready] ***************************************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] included: /home/pipi/net101/tools/netsim/ansible/tasks/readiness-check/eos-clab.yml for dut, x1 TASK [Wait for cEOS SSH daemon to start] *************************************** ok: [dut] ok: [x1] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, x1, h1, h2, h3, h4 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] ok: [x1] TASK [Find configuration template for initial] ********************************* ok: [h1] ok: [h2] ok: [h4] ok: [h3] ok: [dut] ok: [x1] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] TASK [Print deployed configuration when running in verbose mode] *************** 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, create any bond devices # ip link set dev eth1 up set +e ip addr del 172.16.0.2/24 dev eth1 2>/dev/null set -e ip addr add 172.16.0.2/24 dev eth1 ip link set eth1 mtu 1500 # # Add static routes (usually IPv4 routes pointing to the first usable gateway) # # # # # Print the final routing table ip route 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, create any bond devices # ip link set dev eth1 up set +e ip addr del 172.16.2.5/24 dev eth1 2>/dev/null set -e ip addr add 172.16.2.5/24 dev eth1 ip link set eth1 mtu 1500 # # Add static routes (usually IPv4 routes pointing to the first usable gateway) # # # # # Print the final routing table ip route ok: [h2] => msg: |- initial configuration for h2 ========================================= #!/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 # ip link set dev eth1 up set +e ip addr del 172.16.0.3/24 dev eth1 2>/dev/null set -e ip addr add 172.16.0.3/24 dev eth1 ip link set eth1 mtu 1500 # # Add static routes (usually IPv4 routes pointing to the first usable gateway) # # # # # Print the final routing table ip route ok: [h3] => msg: |- initial configuration for h3 ========================================= #!/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 # ip link set dev eth1 up set +e ip addr del 172.16.0.4/24 dev eth1 2>/dev/null set -e ip addr add 172.16.0.4/24 dev eth1 ip link set eth1 mtu 1500 # # Add static routes (usually IPv4 routes pointing to the first usable gateway) # # # # # Print the final routing table ip route ok: [dut] => msg: |- initial configuration for dut ========================================= hostname dut ! logging monitor debugging aaa authorization exec default local ! lldp run ip routing ! ! ip host h1 172.16.0.2 ip host h2 172.16.0.3 ip host h3 172.16.0.4 ip host h4 172.16.2.5 ip host x1 10.0.0.1 ! interface Management0 no lldp transmit no lldp receive ! interface Loopback0 no shutdown ip address 10.0.0.6/32 ! interface Ethernet1 no shutdown no switchport description dut -> x1 ! mac-address 52dc.cafe.0601 ! interface Ethernet2 no shutdown no switchport description [Access VLAN red] dut -> h1 ! mac-address 52dc.cafe.0602 ! interface Ethernet3 no shutdown no switchport description [Access VLAN red] dut -> h2 ! mac-address 52dc.cafe.0603 ! interface Ethernet4 no shutdown no switchport description [Access VLAN red] dut -> h3 ! mac-address 52dc.cafe.0604 ! interface Ethernet5 no shutdown no switchport description [Access VLAN green] dut -> h4 ! mac-address 52dc.cafe.0605 ! interface Vlan1000 no shutdown description VLAN red (1000) -> [x1,h1,h2,h3] ! interface Vlan1002 no shutdown description VLAN green (1002) -> [h4] [stub] ! interface Vlan1001 no shutdown description VLAN blue (1001) -> [x1] ! ok: [x1] => msg: |- initial configuration for x1 ========================================= hostname x1 ! logging monitor debugging aaa authorization exec default local ! lldp run ip routing ! ! ip host dut 10.0.0.6 ip host h1 172.16.0.2 ip host h2 172.16.0.3 ip host h3 172.16.0.4 ip host h4 172.16.2.5 ! interface Management0 no lldp transmit no lldp receive ! interface Loopback0 no shutdown ip address 10.0.0.1/32 ! interface Ethernet1 no shutdown no switchport description x1 -> dut ! mac-address 52dc.cafe.0101 ! interface Vlan1001 no shutdown description VLAN blue (1001) -> [dut] ! interface Vlan1000 no shutdown description VLAN red (1000) -> [dut,h1,h2,h3] ! TASK [Find configuration deployment deploy_script for initial] ***************** ok: [h2] ok: [h1] ok: [h4] ok: [dut] ok: [h3] ok: [x1] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/eos.yml for dut, x1 included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/linux-clab.yml for h1, h2, h3, h4 TASK [eos_config: deploying initial from /home/pipi/net101/tools/netsim/ansible/templates/initial/eos.j2] *** [WARNING]: To ensure idempotency and correct diff the input configuration lines should be similar to how they appear if present in the running configuration on device including the indentation changed: [x1] changed: [dut] TASK [Define script filename and determine whether to execute in netns] ******** ok: [h1] ok: [h2] ok: [h3] ok: [h4] TASK [Create a temporary file for the rendered script] ************************* changed: [h1 -> localhost] changed: [h4 -> localhost] changed: [h2 -> localhost] changed: [h3 -> localhost] TASK [Create container setup script from /home/pipi/net101/tools/netsim/ansible/templates/initial/linux-clab.j2] *** changed: [h2 -> localhost] changed: [h1 -> localhost] changed: [h3 -> localhost] changed: [h4 -> localhost] TASK [Copy script into running container at /tmp/config-h1_initial.sh] ********* skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] TASK [Execute /tmp/config-h1_initial.sh to deploy initial config based on /home/pipi/net101/tools/netsim/ansible/templates/initial/linux-clab.j2] *** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] TASK [Container configuration for initial based on /home/pipi/net101/tools/netsim/ansible/templates/initial/linux-clab.j2 executed in netns] *** changed: [h3 -> localhost] changed: [h2 -> localhost] changed: [h1 -> localhost] changed: [h4 -> localhost] TASK [Remove temporary file /tmp/h1_initial-pemw4zyp.sh] *********************** changed: [h1 -> localhost] changed: [h4 -> localhost] changed: [h3 -> localhost] changed: [h2 -> localhost] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] ok: [x1] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, x1 => (item=vlan) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, x1 => (item=stp) TASK [Figure out whether to deploy the module vlan on current device] ********** ok: [dut] ok: [x1] TASK [Find configuration template for vlan] ************************************ ok: [dut] ok: [x1] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => msg: |- vlan configuration for dut ========================================= vlan 1001 name blue ! vlan 1002 name green ! vlan 1000 name red ! ! interface Ethernet1 switchport switchport mode trunk switchport trunk allowed vlan 1000,1001 ! interface Ethernet2 switchport switchport access vlan 1000 ! interface Ethernet3 switchport switchport access vlan 1000 ! interface Ethernet4 switchport switchport access vlan 1000 ! interface Ethernet5 switchport switchport access vlan 1002 ! interface Vlan1000 ! interface Vlan1002 ! interface Vlan1001 ok: [x1] => msg: |- vlan configuration for x1 ========================================= vlan 1001 name blue ! vlan 1000 name red ! ! interface Ethernet1 switchport switchport mode trunk switchport trunk allowed vlan 1000,1001 ! interface Vlan1001 ! interface Vlan1000 TASK [Find configuration deployment deploy_script for vlan] ******************** ok: [dut] ok: [x1] TASK [Deploy vlan configuration] *********************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/eos.yml for dut, x1 TASK [eos_config: deploying vlan from /home/pipi/net101/tools/netsim/ansible/templates/vlan/eos.j2] *** changed: [x1] changed: [dut] TASK [Figure out whether to deploy the module stp on current device] *********** ok: [dut] ok: [x1] TASK [Find configuration template for stp] ************************************* ok: [dut] ok: [x1] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => msg: |- stp configuration for dut ========================================= spanning-tree mode rstp interface Ethernet1 spanning-tree portfast network interface Ethernet2 spanning-tree portfast edge interface Ethernet3 spanning-tree portfast edge interface Ethernet4 spanning-tree portfast auto interface Ethernet5 spanning-tree portfast normal ok: [x1] => msg: |- stp configuration for x1 ========================================= spanning-tree mode rstp interface Ethernet1 spanning-tree portfast network TASK [Find configuration deployment deploy_script for stp] ********************* ok: [dut] ok: [x1] TASK [Deploy stp configuration] ************************************************ included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/eos.yml for dut, x1 TASK [eos_config: deploying stp from /home/pipi/net101/tools/netsim/ansible/templates/stp/eos.j2] *** changed: [x1] changed: [dut] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut : ok=26 changed=3 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 h1 : ok=13 changed=4 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 h2 : ok=13 changed=4 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 h3 : ok=13 changed=4 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 h4 : ok=13 changed=4 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 x1 : ok=26 changed=3 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 This is a config-only test that uses all possible STP port types. It's a bit hard to validate whether a particular port type is configured ;), the only check we can do is for edge ports.