[INFO] Creating configuration snippets [WARNING]: Found variable using reserved name: hosts PLAY [Deploy initial device configuration] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut_a] ok: [dut_b] ok: [x1] TASK [Generic readiness tests] ************************************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/readiness-check/ssh.yml for dut_a, dut_b, x1 => (item=ssh) TASK [Check if 'sshpass' is installed] ***************************************** ok: [dut_a -> localhost] TASK [Check for 'timeout' command] ********************************************* ok: [dut_b -> localhost] ok: [dut_a -> localhost] ok: [x1 -> localhost] TASK [Execute local ssh command to check ssh readiness] ************************ FAILED - RETRYING: [dut_a -> localhost]: Execute local ssh command to check ssh readiness (20 retries left). FAILED - RETRYING: [dut_b -> localhost]: Execute local ssh command to check ssh readiness (20 retries left). FAILED - RETRYING: [x1 -> localhost]: Execute local ssh command to check ssh readiness (20 retries left). ok: [x1 -> localhost] ok: [dut_a -> localhost] ok: [dut_b -> localhost] TASK [Confirm dut_a SSH server works] ****************************************** ok: [dut_a] => { "msg": "Node dut_a is ready." } ok: [dut_b] => { "msg": "Node dut_b is ready." } ok: [x1] => { "msg": "Node x1 is ready." } TASK [Find device readiness script] ******************************************** ok: [dut_a] ok: [dut_b] ok: [x1] TASK [Wait for device to become ready] ***************************************** skipping: [dut_a] skipping: [dut_b] skipping: [x1] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_a, dut_b, x1 TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [dut_a] ok: [dut_b] ok: [x1] TASK [Find configuration template for normalize] ******************************* ok: [dut_a] ok: [dut_b] ok: [x1] TASK [fail] ******************************************************************** skipping: [dut_a] skipping: [dut_b] skipping: [x1] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [dut_a] ok: [dut_b] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_a] => { "msg": "normalize configuration for dut_a\n=========================================\n!\ninterface Ethernet1\n shutdown\n!\ninterface Ethernet2\n shutdown\n" } ok: [dut_b] => { "msg": "normalize configuration for dut_b\n=========================================\n!\ninterface Ethernet1\n shutdown\n!\ninterface Ethernet2\n shutdown\n" } ok: [x1] => { "msg": "normalize configuration for x1\n=========================================\n!\ninterface Ethernet1\n shutdown\n!\ninterface Ethernet2\n shutdown\n" } TASK [Deploy normalize configuration] ****************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for dut_a, dut_b, x1 TASK [eos_config: deploying normalize from /work/netlab_cicd/node_files/dut_a/normalize] *** [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: [dut_a] changed: [x1] changed: [dut_b] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_a, dut_b, x1 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [dut_a] ok: [dut_b] ok: [x1] TASK [Find configuration template for initial] ********************************* ok: [dut_a] ok: [dut_b] ok: [x1] TASK [fail] ******************************************************************** skipping: [dut_a] skipping: [dut_b] skipping: [x1] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [dut_a] ok: [dut_b] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_a] => { "msg": "initial configuration for dut_a\n=========================================\nhostname dut-a\n!\nlogging monitor debugging\naaa authorization exec default local\n!\nlldp run\nip routing\nno ipv6 unicast-routing\n!\n!\nip host dutb 10.0.0.2\nip host x1 10.0.0.3\n!\ninterface Management0\n no lldp transmit\n no lldp receive\n!\ninterface Loopback0\n ip address 10.0.0.1/32\n!\ninterface Ethernet1\n no switchport\n description dut_a -> x1\n mac-address caf0.0001.0001\n!\n no shutdown\n!\ninterface Ethernet2\n no switchport\n description dut_a -> dut_b\n mac-address caf0.0001.0002\n!\n no shutdown\n!\ninterface Vlan76\n description VLAN blue (76) -> [dut_b,x1]\n!\ninterface Vlan42\n description VLAN red (42) -> [dut_b,x1]\n!\n" } ok: [dut_b] => { "msg": "initial configuration for dut_b\n=========================================\nhostname dut-b\n!\nlogging monitor debugging\naaa authorization exec default local\n!\nlldp run\nip routing\nno ipv6 unicast-routing\n!\n!\nip host duta 10.0.0.1\nip host x1 10.0.0.3\n!\ninterface Management0\n no lldp transmit\n no lldp receive\n!\ninterface Loopback0\n ip address 10.0.0.2/32\n!\ninterface Ethernet1\n no switchport\n description dut_b -> x1\n mac-address caf0.0002.0001\n!\n no shutdown\n!\ninterface Ethernet2\n no switchport\n description dut_b -> dut_a\n mac-address caf0.0002.0002\n!\n no shutdown\n!\ninterface Vlan76\n description VLAN blue (76) -> [dut_a,x1]\n!\ninterface Vlan42\n description VLAN red (42) -> [dut_a,x1]\n!\n" } ok: [x1] => { "msg": "initial configuration for x1\n=========================================\nhostname x1\n!\nlogging monitor debugging\naaa authorization exec default local\n!\nlldp run\nip routing\nno ipv6 unicast-routing\n!\n!\nip host duta 10.0.0.1\nip host dutb 10.0.0.2\n!\ninterface Management0\n no lldp transmit\n no lldp receive\n!\ninterface Loopback0\n ip address 10.0.0.3/32\n!\ninterface Ethernet1\n no switchport\n description x1 -> dut_a\n mac-address caf0.0003.0001\n!\n no shutdown\n!\ninterface Ethernet2\n no switchport\n description x1 -> dut_b\n mac-address caf0.0003.0002\n!\n no shutdown\n!\ninterface Vlan76\n description VLAN blue (76) -> [dut_a,dut_b]\n!\ninterface Vlan42\n description VLAN red (42) -> [dut_a,dut_b]\n!\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for dut_a, dut_b, x1 TASK [eos_config: deploying initial from /work/netlab_cicd/node_files/dut_a/initial] *** changed: [x1] changed: [dut_b] changed: [dut_a] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut_a] ok: [dut_b] ok: [x1] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_a, dut_b, x1 => (item=vlan) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_a, dut_b, x1 => (item=stp) TASK [Figure out whether to deploy the module vlan on current device] ********** ok: [dut_a] ok: [dut_b] ok: [x1] TASK [Find configuration template for vlan] ************************************ ok: [dut_a] ok: [dut_b] ok: [x1] TASK [fail] ******************************************************************** skipping: [dut_a] skipping: [dut_b] skipping: [x1] TASK [Find configuration deployment deploy_script for vlan] ******************** ok: [dut_a] ok: [dut_b] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_a] => { "msg": "vlan configuration for dut_a\n=========================================\nvlan 42\n name red\n!\nvlan 76\n name blue\n!\n\n!\ninterface Ethernet1\n switchport\n switchport mode trunk\n switchport trunk allowed vlan 42,76\n switchport trunk native vlan tag\n!\ninterface Ethernet2\n switchport\n switchport mode trunk\n switchport trunk allowed vlan 42,76\n switchport trunk native vlan tag\n!\ninterface Vlan76\n!\ninterface Vlan42\n" } ok: [dut_b] => { "msg": "vlan configuration for dut_b\n=========================================\nvlan 76\n name blue\n!\nvlan 42\n name red\n!\n\n!\ninterface Ethernet1\n switchport\n switchport mode trunk\n switchport trunk allowed vlan 42,76\n switchport trunk native vlan tag\n!\ninterface Ethernet2\n switchport\n switchport mode trunk\n switchport trunk allowed vlan 42,76\n switchport trunk native vlan tag\n!\ninterface Vlan76\n!\ninterface Vlan42\n" } ok: [x1] => { "msg": "vlan configuration for x1\n=========================================\nvlan 76\n name blue\n!\nvlan 42\n name red\n!\n\n!\ninterface Ethernet1\n switchport\n switchport mode trunk\n switchport trunk allowed vlan 42,76\n switchport trunk native vlan tag\n!\ninterface Ethernet2\n switchport\n switchport mode trunk\n switchport trunk allowed vlan 42,76\n switchport trunk native vlan tag\n!\ninterface Vlan76\n!\ninterface Vlan42\n" } TASK [Deploy vlan configuration] *********************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for dut_a, dut_b, x1 TASK [eos_config: deploying vlan from /work/netlab_cicd/node_files/dut_a/vlan] *** changed: [dut_b] changed: [dut_a] changed: [x1] TASK [Figure out whether to deploy the module stp on current device] *********** ok: [dut_a] ok: [dut_b] ok: [x1] TASK [Find configuration template for stp] ************************************* ok: [dut_a] ok: [dut_b] ok: [x1] TASK [fail] ******************************************************************** skipping: [dut_a] skipping: [dut_b] skipping: [x1] TASK [Find configuration deployment deploy_script for stp] ********************* ok: [dut_a] ok: [dut_b] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_a] => { "msg": "stp configuration for dut_a\n=========================================\nspanning-tree mode rapid-pvst \n\n\nspanning-tree vlan-id 42 priority 4096\nspanning-tree vlan-id 76 priority 32768\n\n\n" } ok: [dut_b] => { "msg": "stp configuration for dut_b\n=========================================\nspanning-tree mode rapid-pvst \n\nspanning-tree priority 12288\n\nspanning-tree vlan-id 76 priority 12288\nspanning-tree vlan-id 42 priority 12288\n\n\n" } ok: [x1] => { "msg": "stp configuration for x1\n=========================================\nspanning-tree mode rapid-pvst \n\nspanning-tree priority 16384\n\nspanning-tree vlan-id 76 priority 16384\nspanning-tree vlan-id 42 priority 16384\n\n\n" } TASK [Deploy stp configuration] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for dut_a, dut_b, x1 TASK [eos_config: deploying stp from /work/netlab_cicd/node_files/dut_a/stp] *** changed: [x1] changed: [dut_a] changed: [dut_b] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut_a : ok=36 changed=4 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0 dut_b : ok=35 changed=4 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0 x1 : ok=35 changed=4 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0 [CREATED] dut_a: normalize,initial,vlan,stp [CREATED] dut_b: normalize,initial,vlan,stp [CREATED] x1: normalize,initial,vlan,stp The devices under test form a layer-2 triangle of VLAN trunks. The devices are running PVRST and have different per-VLAN root priorities. If DUT_A and DUT_B run PVRST and has correct per-VLAN root priorities, DUT_A becomes the root bridge for red VLAN and DUT_B becomes the root bridge for the blue VLAN.