Creating Device configuration snippets [CREATED] s1: initial,lag,vlan [CREATED] s2: initial,lag,vlan [CREATED] x1: normalize,initial,lag,vlan [CREATED] h1: initial,routing [CREATED] h2: initial,routing [CREATED] h3: initial,routing Config Deploying device configurations [INFO] Executing initial configuration for node h1 (namespace clab- ml-85-h1) [INFO] Executing initial configuration for node h2 (namespace clab- ml-85-h2) [INFO] Executing initial configuration for node h3 (namespace clab- ml-85-h3) [INFO] Executing routing configuration for node h1 (namespace clab- ml-85-h1) [INFO] Executing routing configuration for node h2 (namespace clab- ml-85-h2) [INFO] Executing routing configuration for node h3 (namespace clab- ml-85-h3) [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: [s1] ok: [s2] ok: [x1] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for s1, s2, x1 TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [s1] ok: [s2] ok: [x1] TASK [Find configuration template for normalize] ******************************* ok: [s1] ok: [s2] ok: [x1] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] skipping: [x1] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [s1] ok: [s2] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [s1] skipping: [s2] ok: [x1] => { "msg": "normalize configuration for x1\n=========================================\n!\ninterface Ethernet1\n shutdown\n mac-address caf0.0003.0001\n!\ninterface Ethernet2\n shutdown\n mac-address caf0.0003.0002\n!\ninterface Ethernet3\n shutdown\n" } TASK [Deploy normalize configuration] ****************************************** skipping: [s1] skipping: [s2] included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/eos.yml for x1 TASK [eos_config: deploying normalize from /work/netlab_cicd/other_vm/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/net101/tools/netsim/ansible/tasks/deploy-module.yml for s1, s2, x1 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [s2] ok: [s1] ok: [x1] TASK [Find configuration template for initial] ********************************* ok: [s1] ok: [x1] ok: [s2] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] skipping: [x1] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [s1] ok: [s2] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** ok: [s1] => { "msg": "initial configuration for s1\n=========================================\nhostname s1\n!\nlldp\n!\n\n\n!\nvlan 1000\n name red\n!\n\n!\n\n!\ninterface mgmt\n no lldp transmit\n no lldp receive\n!\n\n\ninterface loopback 0\n ip address 10.0.0.1/32\n no shutdown\n!\n\ninterface 1/1/1\n shutdown\n mtu 9198\n description s1 -> s2\n no shutdown\n!\n\ninterface lag 1 multi-chassis\n description [Access VLAN red] s1 -> [x1,s2]\n no shutdown\n!\n\ninterface 1/1/2\n shutdown\n mtu 9198\n description s1 -> x1\n no shutdown\n!\n\ninterface 1/1/3\n shutdown\n mtu 9198\n description [Access VLAN red] s1 -> h2\n no shutdown\n!\n\ninterface vlan1000\n description VLAN red (1000) -> [h2,h3,s2,h1,x1]\n ip address 172.16.0.1/24\n no shutdown\n!\n!\n" } ok: [s2] => { "msg": "initial configuration for s2\n=========================================\nhostname s2\n!\nlldp\n!\n\n\n!\nvlan 1000\n name red\n!\n\n!\n\n!\ninterface mgmt\n no lldp transmit\n no lldp receive\n!\n\n\ninterface loopback 0\n ip address 10.0.0.2/32\n no shutdown\n!\n\ninterface 1/1/1\n shutdown\n mtu 9198\n description s2 -> s1\n no shutdown\n!\n\ninterface lag 1 multi-chassis\n description [Access VLAN red] s2 -> [x1,s1]\n no shutdown\n!\n\ninterface 1/1/2\n shutdown\n mtu 9198\n description s2 -> x1\n no shutdown\n!\n\ninterface 1/1/3\n shutdown\n mtu 9198\n description [Access VLAN red] s2 -> h3\n no shutdown\n!\n\ninterface vlan1000\n description VLAN red (1000) -> [h2,s1,h3,h1,x1]\n ip address 172.16.0.2/24\n no shutdown\n!\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 h1 172.16.0.4\nip host h2 172.16.0.5\nip host h3 172.16.0.6\nip host s1 10.0.0.1 172.16.0.1\nip host s2 10.0.0.2 172.16.0.2\n!\ninterface Management1\n no lldp transmit\n no lldp receive\n!\ninterface Loopback0\n ip address 10.0.0.3/32\n!\ninterface port-channel1\n no switchport\n description [Access VLAN red] x1 -> [s1,s2]\n!\ninterface Ethernet1\n no switchport\n description x1 -> s1\n mac-address caf0.0003.0001\n!\n no shutdown\n!\ninterface Ethernet2\n no switchport\n description x1 -> s2\n mac-address caf0.0003.0002\n!\n no shutdown\n!\ninterface Ethernet3\n no switchport\n description [Access VLAN red] x1 -> h1\n!\n no shutdown\n!\ninterface Vlan1000\n description VLAN red (1000) -> [h2,s1,h3,s2,h1]\n ip address 172.16.0.3/24\n!\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/arubacx.yml for s1, s2 included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/eos.yml for x1 TASK [tempfile] **************************************************************** changed: [s2 -> localhost] changed: [s1 -> localhost] TASK [template] **************************************************************** changed: [s1 -> localhost] changed: [s2 -> localhost] TASK [aoscx_config: deploying initial from /work/netlab_cicd/other_vm/node_files/s1/initial] *** changed: [s2] changed: [s1] TASK [file] ******************************************************************** changed: [s1 -> localhost] changed: [s2 -> localhost] TASK [eos_config: deploying initial from /work/netlab_cicd/other_vm/node_files/x1/initial] *** changed: [x1] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [s1] ok: [s2] ok: [x1] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for s1, s2, x1 => (item=lag) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for s1, s2, x1 => (item=vlan) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for s1, s2, x1 => (item=routing) TASK [Figure out whether to deploy the module lag on current device] *********** ok: [s1] ok: [s2] ok: [x1] TASK [Find configuration template for lag] ************************************* ok: [s2] ok: [s1] ok: [x1] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] skipping: [x1] TASK [Find configuration deployment deploy_script for lag] ********************* ok: [s1] ok: [x1] ok: [s2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [s1] => { "msg": "lag configuration for s1\n=========================================\n\ninterface lag 255\n no shutdown\n no routing\n vlan trunk native 1\n vlan trunk allowed all\n lacp mode active\n description VSX ISL\n\n!\ninterface 1/1/1\n no shutdown\n description s1 -> s2 (ISL in lag 255)\n lag 255\n!\ninterface 1/1/1\n no shutdown\n description s1 -> s2 (ISL in lag 255)\n lag 255\n!\n\n!\n! VSX Config\n!\nvsx\n system-mac 06:00:00:00:00:01\n inter-switch-link lag 255\n role primary\n!\n\ninterface lag 1 multi-chassis\n description [Access VLAN red] s1 -> [x1,s2] (VSX LAG 1)\n lacp mode active\n lacp rate fast\n no shutdown\n\n!\n!\ninterface 1/1/2\n description s1 -> x1 in lag 1\n lag 1\n!\n!\n" } ok: [x1] => { "msg": "lag configuration for x1\n=========================================\n\ninterface port-channel1\n description [Access VLAN red] x1 -> [s1,s2]\n!\n!\n!\ninterface Ethernet1\n description x1 -> s1 in channel-group 1\n channel-group 1 mode active\n lacp timer fast\n!\ninterface Ethernet2\n description x1 -> s2 in channel-group 1\n channel-group 1 mode active\n lacp timer fast\n" } ok: [s2] => { "msg": "lag configuration for s2\n=========================================\n\ninterface lag 255\n no shutdown\n no routing\n vlan trunk native 1\n vlan trunk allowed all\n lacp mode active\n description VSX ISL\n\n!\ninterface 1/1/1\n no shutdown\n description s2 -> s1 (ISL in lag 255)\n lag 255\n!\ninterface 1/1/1\n no shutdown\n description s2 -> s1 (ISL in lag 255)\n lag 255\n!\n\n!\n! VSX Config\n!\nvsx\n system-mac 06:00:00:00:00:01\n inter-switch-link lag 255\n role secondary\n!\n\ninterface lag 1 multi-chassis\n description [Access VLAN red] s2 -> [x1,s1] (VSX LAG 1)\n lacp mode active\n lacp rate fast\n no shutdown\n\n!\n!\ninterface 1/1/2\n description s2 -> x1 in lag 1\n lag 1\n!\n!\n" } TASK [Deploy lag configuration] ************************************************ included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/arubacx.yml for s1, s2 included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/eos.yml for x1 TASK [tempfile] **************************************************************** changed: [s1 -> localhost] changed: [s2 -> localhost] TASK [template] **************************************************************** changed: [s1 -> localhost] changed: [s2 -> localhost] TASK [aoscx_config: deploying lag from /work/netlab_cicd/other_vm/node_files/s1/lag] *** changed: [s1] changed: [s2] TASK [file] ******************************************************************** changed: [s1 -> localhost] changed: [s2 -> localhost] TASK [eos_config: deploying lag from /work/netlab_cicd/other_vm/node_files/x1/lag] *** changed: [x1] TASK [Figure out whether to deploy the module vlan on current device] ********** ok: [s1] ok: [s2] ok: [x1] TASK [Find configuration template for vlan] ************************************ ok: [s1] ok: [s2] ok: [x1] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] skipping: [x1] TASK [Find configuration deployment deploy_script for vlan] ******************** ok: [s1] ok: [s2] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** ok: [s1] => { "msg": "vlan configuration for s1\n=========================================\n!\n!\ninterface lag 1\n no routing\n vlan access 1000\n!\ninterface 1/1/3\n no routing\n vlan access 1000\n!\ninterface vlan1000\n" } ok: [s2] => { "msg": "vlan configuration for s2\n=========================================\n!\n!\ninterface lag 1\n no routing\n vlan access 1000\n!\ninterface 1/1/3\n no routing\n vlan access 1000\n!\ninterface vlan1000\n" } ok: [x1] => { "msg": "vlan configuration for x1\n=========================================\nvlan 1000\n name red\n!\n\n!\ninterface port-channel1\n switchport\n switchport access vlan 1000\n!\ninterface Ethernet3\n switchport\n switchport access vlan 1000\n!\ninterface Vlan1000\n" } TASK [Deploy vlan configuration] *********************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/arubacx.yml for s1, s2 included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/eos.yml for x1 TASK [tempfile] **************************************************************** changed: [s1 -> localhost] changed: [s2 -> localhost] TASK [template] **************************************************************** changed: [s2 -> localhost] changed: [s1 -> localhost] TASK [aoscx_config: deploying vlan from /work/netlab_cicd/other_vm/node_files/s1/vlan] *** changed: [s1] changed: [s2] TASK [file] ******************************************************************** changed: [s1 -> localhost] changed: [s2 -> localhost] TASK [eos_config: deploying vlan from /work/netlab_cicd/other_vm/node_files/x1/vlan] *** changed: [x1] TASK [Figure out whether to deploy the module routing on current device] ******* ok: [s1] ok: [s2] ok: [x1] TASK [Find configuration template for routing] ********************************* skipping: [s1] skipping: [s2] skipping: [x1] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] skipping: [x1] TASK [Find configuration deployment deploy_script for routing] ***************** skipping: [s1] skipping: [s2] skipping: [x1] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [s1] skipping: [s2] skipping: [x1] TASK [Deploy routing configuration] ******************************************** skipping: [s1] skipping: [s2] skipping: [x1] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* s1 : ok=38 changed=12 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 s2 : ok=38 changed=12 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 x1 : ok=32 changed=4 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ h1 Script: initial,routing h2 Script: initial,routing h3 Script: initial,routing The devices under test are an MLAG pair connected to an Arista EOS switch. The Arista EOS switch should have a working LAG, and the attached hosts should be able to ping each other.