[INFO] Executing initial configuration for node h1 (namespace clab- ml_17-h1) [INFO] Executing routing configuration for node h1 (namespace clab- ml_17-h1) [INFO] Executing initial configuration for node h2 (namespace clab- ml_17-h2) [INFO] Executing routing configuration for node h2 (namespace clab- ml_17-h2) [INFO] Executing initial configuration for node h3 (namespace clab- ml_17-h3) [INFO] Executing routing configuration for node h3 (namespace clab- ml_17-h3) [INFO] Executing initial configuration for node h4 (namespace clab- ml_17-h4) [INFO] Executing routing configuration for node h4 (namespace clab- ml_17-h4) [INFO] Starting Ansible playbook to deploy the rest of the configurations /home/pipi/.local/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 48.0.0. "cipher": algorithms.TripleDES, /home/pipi/.local/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 48.0.0. "class": algorithms.TripleDES, [WARNING]: Could not match supplied host pattern, ignoring: unprovisioned [WARNING]: Found variable using reserved name: hosts PLAY [Deploy initial device configuration] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [x1] ok: [dut] TASK [Generic readiness tests] ************************************************* skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] 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: [x1] skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] included: /home/pipi/netlab_gh/netsim/ansible/tasks/readiness-check/cumulus_nvue.yml for dut TASK [Wait for nvued to start] ************************************************* ok: [dut] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for x1, h1, h2, h3, h4, dut TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] ok: [x1] TASK [Find configuration template for normalize] ******************************* ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] ok: [x1] TASK [fail] ******************************************************************** skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] ok: [x1] => msg: |- normalize configuration for x1 ========================================= ! interface Ethernet1 shutdown TASK [Deploy normalize configuration] ****************************************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1 TASK [eos_config: deploying normalize from /home/pipi/netlab_gh/netsim/ansible/templates/normalize/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] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for x1, h1, h2, h3, h4, dut 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] ********************************* skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] ok: [dut] ok: [x1] TASK [fail] ******************************************************************** skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] TASK [Find configuration deployment deploy_script for initial] ***************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] ok: [dut] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] ok: [dut] => msg: |- initial configuration for dut ========================================= - set: system: hostname: dut global: system-mac: ca:fe:00:06:00:00 config: snippet: system-mtu: file: /etc/network/ifupdown2/policy.d/mtu.json content: | { "address": { "defaults": { "mtu": "1500" } } } interface: eth0: ip: vrf: mgmt address: dhcp: {} type: eth swp1: type: swp link: state: up : {} description: "dut -> x1" ip: ipv6: enable: off swp2: type: swp link: state: up : {} description: "[Access VLAN red] dut -> h1" ip: ipv6: enable: off swp3: type: swp link: state: up : {} description: "[Access VLAN red] dut -> h2" ip: ipv6: enable: off swp4: type: swp link: state: up : {} description: "[Access VLAN red] dut -> h3" ip: ipv6: enable: off swp5: type: swp link: state: up : {} description: "[Access VLAN green] dut -> h4" ip: ipv6: enable: off vlan1000: type: svi link: state: up : {} description: "VLAN red (1000) -> [x1,h1,h2,h3]" ip: ipv6: enable: off vlan1002: type: svi link: state: up : {} description: "VLAN green (1002) -> [h4] [stub]" ip: ipv6: enable: off vlan1001: type: svi link: state: up : {} description: "VLAN blue (1001) -> [x1]" ip: ipv6: enable: off - set: interface: lo: type: loopback ip: address: 10.0.0.6/32: {} ipv6: enable: off ok: [x1] => msg: |- initial configuration for x1 ========================================= hostname x1 ! logging monitor debugging aaa authorization exec default local ! lldp run ip routing no ipv6 unicast-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 dut 10.0.0.6 ! interface Management1 no lldp transmit no lldp receive ! interface Loopback0 ip address 10.0.0.1/32 ! interface Ethernet1 no switchport description x1 -> dut mac-address caf0.0001.0001 ! no shutdown ! interface Vlan1001 description VLAN blue (1001) -> [dut] ! interface Vlan1000 description VLAN red (1000) -> [h1,h2,h3,dut] ! TASK [Deploy initial configuration] ******************************************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1 included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/cumulus_nvue.yml for dut TASK [eos_config: deploying initial from /home/pipi/netlab_gh/netsim/ansible/templates/initial/eos.j2] *** changed: [x1] TASK [set_fact] **************************************************************** ok: [dut] TASK [copy the cumulus nvue YAML initial config file to switch (generated from /home/pipi/netlab_gh/netsim/ansible/templates/initial/cumulus_nvue.j2)] *** changed: [dut] TASK [execute on cumulus: 'nv config patch' for initial config] **************** changed: [dut] TASK [execute on cumulus: 'nv config apply -y' for initial config] ************* changed: [dut] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] ok: [x1] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for x1, h1, h2, h3, h4, dut => (item=vlan) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for x1, h1, h2, h3, h4, dut => (item=stp) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for x1, h1, h2, h3, h4, dut => (item=routing) TASK [Figure out whether to deploy the module vlan on current device] ********** ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] ok: [x1] TASK [Find configuration template for vlan] ************************************ skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] ok: [x1] ok: [dut] TASK [fail] ******************************************************************** skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] TASK [Find configuration deployment deploy_script for vlan] ******************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] ok: [dut] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] 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 switchport trunk native vlan tag ! interface Vlan1001 ! interface Vlan1000 ok: [dut] => msg: |- vlan configuration for dut ========================================= - set: bridge: domain: br_default: type: vlan-aware vlan: '1000': {} '1002': {} '1001': {} - set: interface: swp1: bridge: domain: br_default: untagged: none - set: interface: swp2: bridge: domain: br_default: access: 1000 - set: interface: swp3: bridge: domain: br_default: access: 1000 - set: interface: swp4: bridge: domain: br_default: access: 1000 - set: interface: swp5: bridge: domain: br_default: access: 1002 - set: interface: swp1: bridge: domain: br_default: vlan: '1001': {} - set: interface: swp1: bridge: domain: br_default: vlan: '1000': {} TASK [Deploy vlan configuration] *********************************************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1 included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/cumulus_nvue.yml for dut TASK [eos_config: deploying vlan from /home/pipi/netlab_gh/netsim/ansible/templates/vlan/eos.j2] *** changed: [x1] TASK [set_fact] **************************************************************** ok: [dut] TASK [copy the cumulus nvue YAML vlan config file to switch (generated from /home/pipi/netlab_gh/netsim/ansible/templates/vlan/cumulus_nvue.j2)] *** changed: [dut] TASK [execute on cumulus: 'nv config patch' for vlan config] ******************* changed: [dut] TASK [execute on cumulus: 'nv config apply -y' for vlan config] **************** changed: [dut] TASK [Figure out whether to deploy the module stp on current device] *********** ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] ok: [x1] TASK [Find configuration template for stp] ************************************* skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] ok: [dut] ok: [x1] TASK [fail] ******************************************************************** skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] TASK [Find configuration deployment deploy_script for stp] ********************* skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] ok: [dut] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] ok: [x1] => msg: |- stp configuration for x1 ========================================= spanning-tree mode rstp interface Ethernet1 spanning-tree portfast network ok: [dut] => msg: |- stp configuration for dut ========================================= - set: bridge: domain: br_default: stp: mode: rstp state: up: {} interface: swp1: bridge: domain: br_default: stp: admin-edge: off auto-edge: off swp2: bridge: domain: br_default: stp: admin-edge: on auto-edge: off swp3: bridge: domain: br_default: stp: admin-edge: on auto-edge: off swp4: bridge: domain: br_default: stp: admin-edge: off auto-edge: on swp5: bridge: domain: br_default: stp: admin-edge: off auto-edge: on TASK [Deploy stp configuration] ************************************************ skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1 included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/cumulus_nvue.yml for dut TASK [eos_config: deploying stp from /home/pipi/netlab_gh/netsim/ansible/templates/stp/eos.j2] *** changed: [x1] TASK [set_fact] **************************************************************** ok: [dut] TASK [copy the cumulus nvue YAML stp config file to switch (generated from /home/pipi/netlab_gh/netsim/ansible/templates/stp/cumulus_nvue.j2)] *** changed: [dut] TASK [execute on cumulus: 'nv config patch' for stp config] ******************** changed: [dut] TASK [execute on cumulus: 'nv config apply -y' for stp config] ***************** changed: [dut] TASK [Figure out whether to deploy the module routing on current device] ******* ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] ok: [x1] TASK [Find configuration template for routing] ********************************* skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] TASK [fail] ******************************************************************** skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] TASK [Find configuration deployment deploy_script for routing] ***************** skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] TASK [Deploy routing configuration] ******************************************** skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut : ok=41 changed=9 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 h1 : ok=15 changed=0 unreachable=0 failed=0 skipped=25 rescued=0 ignored=0 h2 : ok=15 changed=0 unreachable=0 failed=0 skipped=25 rescued=0 ignored=0 h3 : ok=15 changed=0 unreachable=0 failed=0 skipped=25 rescued=0 ignored=0 h4 : ok=15 changed=0 unreachable=0 failed=0 skipped=25 rescued=0 ignored=0 x1 : ok=33 changed=4 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ h1 OK=2 h2 OK=2 h3 OK=2 h4 OK=2 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.