[INFO] Creating configuration snippets [CREATED] dut: initial,vlan,stp [CREATED] x1: normalize,initial,vlan,stp [INFO] Executing initial configuration for node dut [INFO] Executing vlan configuration for node dut [INFO] Executing stp configuration for node dut [INFO] Starting Ansible playbook to deploy the rest of the configurations [WARNING]: Found variable using reserved name: hosts PLAY [Deploy initial device configuration] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [x1] TASK [Generic readiness tests] ************************************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/readiness-check/ssh.yml for x1 => (item=ssh) TASK [Check if 'sshpass' is installed] ***************************************** ok: [x1 -> localhost] TASK [Check for 'timeout' command] ********************************************* ok: [x1 -> localhost] TASK [Execute local ssh command to check ssh readiness] ************************ FAILED - RETRYING: [x1 -> localhost]: Execute local ssh command to check ssh readiness (20 retries left). FAILED - RETRYING: [x1 -> localhost]: Execute local ssh command to check ssh readiness (19 retries left). ok: [x1 -> localhost] TASK [Confirm x1 SSH server works] ********************************************* ok: [x1] => { "msg": "Node x1 is ready." } TASK [Find device readiness script] ******************************************** ok: [x1] TASK [Wait for device to become ready] ***************************************** skipping: [x1] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for x1 TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [x1] TASK [Find configuration template for normalize] ******************************* ok: [x1] TASK [fail] ******************************************************************** skipping: [x1] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** ok: [x1] => { "msg": "normalize configuration for x1\n=========================================\n!\ninterface Ethernet1\n shutdown\n!\ninterface Ethernet2\n shutdown\n!\ninterface Ethernet3\n shutdown\n" } TASK [Deploy normalize configuration] ****************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1 TASK [eos_config: deploying normalize from /work/netlab_cicd/node_files/x1/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: [x1] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for x1 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [x1] TASK [Find configuration template for initial] ********************************* ok: [x1] TASK [fail] ******************************************************************** skipping: [x1] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** 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 dut 10.0.0.1\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 [Access VLAN red] x1 -> dut\n!\n no shutdown\n!\ninterface Ethernet2\n no switchport\n description [Access VLAN red] x1 -> dut\n!\n no shutdown\n!\ninterface Ethernet3\n no switchport\n description [Access VLAN red] x1 -> dut\n!\n no shutdown\n!\ninterface Vlan42\n description VLAN red (42) -> [dut]\n!\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1 TASK [eos_config: deploying initial from /work/netlab_cicd/node_files/x1/initial] *** changed: [x1] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [x1] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for x1 => (item=vlan) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for x1 => (item=stp) TASK [Figure out whether to deploy the module vlan on current device] ********** ok: [x1] TASK [Find configuration template for vlan] ************************************ ok: [x1] TASK [fail] ******************************************************************** skipping: [x1] TASK [Find configuration deployment deploy_script for vlan] ******************** ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** ok: [x1] => { "msg": "vlan configuration for x1\n=========================================\nvlan 42\n name red\n!\n\n!\ninterface Ethernet1\n switchport\n switchport access vlan 42\n!\ninterface Ethernet2\n switchport\n switchport access vlan 42\n!\ninterface Ethernet3\n switchport\n switchport access vlan 42\n!\ninterface Vlan42\n" } TASK [Deploy vlan configuration] *********************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1 TASK [eos_config: deploying vlan from /work/netlab_cicd/node_files/x1/vlan] **** changed: [x1] TASK [Figure out whether to deploy the module stp on current device] *********** ok: [x1] TASK [Find configuration template for stp] ************************************* ok: [x1] TASK [fail] ******************************************************************** skipping: [x1] TASK [Find configuration deployment deploy_script for stp] ********************* ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** ok: [x1] => { "msg": "stp configuration for x1\n=========================================\nspanning-tree mode rstp \n\n\n\n\n" } TASK [Deploy stp configuration] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1 TASK [eos_config: deploying stp from /work/netlab_cicd/node_files/x1/stp] ****** changed: [x1] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* x1 : ok=36 changed=4 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ dut OK: 3 The devices under test form a loop in the red VLAN. The link with the lowest port_priority should be forwarding, all other links should be blocked.