[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] 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: [s1] ok: [s2] ok: [h1] ok: [h2] ok: [h3] ok: [x1] TASK [Generic readiness tests] ************************************************* skipping: [s1] skipping: [s2] skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] TASK [Find device readiness script] ******************************************** ok: [s1] ok: [s2] ok: [h1] ok: [h3] ok: [h2] ok: [x1] TASK [Wait for device to become ready] ***************************************** skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] included: /home/pipi/netlab_gh/netsim/ansible/tasks/readiness-check/cumulus_nvue.yml for s1, s2 TASK [Wait for nvued to start] ************************************************* ok: [s1] ok: [s2] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for s1, s2, x1, h1, h2, h3 TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [s1] ok: [s2] ok: [h1] ok: [h2] ok: [h3] ok: [x1] TASK [Find configuration template for normalize] ******************************* ok: [s1] ok: [s2] ok: [h1] ok: [h2] ok: [h3] ok: [x1] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [s1] ok: [s2] ok: [h1] ok: [h2] ok: [h3] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [s1] skipping: [s2] skipping: [h1] skipping: [h2] skipping: [h3] 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] ****************************************** skipping: [s1] skipping: [s2] skipping: [h1] skipping: [h2] skipping: [h3] 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 s1, s2, x1, h1, h2, h3 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [s1] ok: [s2] ok: [h1] ok: [h2] ok: [h3] ok: [x1] TASK [Find configuration template for initial] ********************************* ok: [s1] skipping: [h1] ok: [s2] skipping: [h2] skipping: [h3] ok: [x1] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] TASK [Find configuration deployment deploy_script for initial] ***************** skipping: [h1] ok: [s1] skipping: [h2] ok: [s2] skipping: [h3] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [h1] skipping: [h2] skipping: [h3] ok: [s1] => { "msg": "initial configuration for s1\n=========================================\n\n- set:\n system:\n hostname: s1\n global:\n system-mac: ca:fe:00:01:00:00\n config:\n snippet:\n system-mtu:\n file: /etc/network/ifupdown2/policy.d/mtu.json\n content: |\n { \"address\": { \"defaults\": { \"mtu\": \"1500\" } } }\n\n interface:\n eth0:\n ip:\n vrf: mgmt\n address:\n dhcp: {}\n type: eth\n swp1:\n type: swp\n link:\n state:\n up : {}\n description: \"s1 -> s2\"\n ip:\n ipv6:\n enable: off\n\n bond1:\n type: bond\n link:\n state:\n up : {}\n description: \"[Access VLAN red] s1 -> [x1,s2]\"\n ip:\n ipv6:\n enable: off\n\n swp2:\n type: swp\n link:\n state:\n down : {}\n description: \"s1 -> x1\"\n ip:\n ipv6:\n enable: off\n\n swp3:\n type: swp\n link:\n state:\n up : {}\n description: \"[Access VLAN red] s1 -> h2\"\n ip:\n ipv6:\n enable: off\n\n vlan1000:\n type: svi\n link:\n state:\n up : {}\n description: \"VLAN red (1000) -> [h2,h3,s2,h1,x1]\"\n ip:\n address:\n 172.16.0.1/24: {}\n ipv6:\n enable: off\n\n\n- set:\n interface:\n lo:\n type: loopback\n ip:\n address:\n 10.0.0.1/32: {}\n ipv6:\n enable: off\n" } ok: [s2] => { "msg": "initial configuration for s2\n=========================================\n\n- set:\n system:\n hostname: s2\n global:\n system-mac: ca:fe:00:02:00:00\n config:\n snippet:\n system-mtu:\n file: /etc/network/ifupdown2/policy.d/mtu.json\n content: |\n { \"address\": { \"defaults\": { \"mtu\": \"1500\" } } }\n\n interface:\n eth0:\n ip:\n vrf: mgmt\n address:\n dhcp: {}\n type: eth\n swp1:\n type: swp\n link:\n state:\n up : {}\n description: \"s2 -> s1\"\n ip:\n ipv6:\n enable: off\n\n bond1:\n type: bond\n link:\n state:\n up : {}\n description: \"[Access VLAN red] s2 -> [x1,s1]\"\n ip:\n ipv6:\n enable: off\n\n swp2:\n type: swp\n link:\n state:\n down : {}\n description: \"s2 -> x1\"\n ip:\n ipv6:\n enable: off\n\n swp3:\n type: swp\n link:\n state:\n up : {}\n description: \"[Access VLAN red] s2 -> h3\"\n ip:\n ipv6:\n enable: off\n\n vlan1000:\n type: svi\n link:\n state:\n up : {}\n description: \"VLAN red (1000) -> [h2,s1,h3,h1,x1]\"\n ip:\n address:\n 172.16.0.2/24: {}\n ipv6:\n enable: off\n\n\n- set:\n interface:\n lo:\n type: loopback\n ip:\n address:\n 10.0.0.2/32: {}\n ipv6:\n enable: off\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] ******************************************** skipping: [h1] skipping: [h2] skipping: [h3] included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/cumulus_nvue.yml for s1, s2 included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1 TASK [set_fact] **************************************************************** ok: [s1] ok: [s2] 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: [s1] changed: [s2] TASK [execute on cumulus: 'nv config patch' for initial config] **************** changed: [s2] changed: [s1] TASK [execute on cumulus: 'nv config apply -y' for initial config] ************* changed: [s1] changed: [s2] TASK [eos_config: deploying initial from /home/pipi/netlab_gh/netsim/ansible/templates/initial/eos.j2] *** changed: [x1] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [s1] ok: [s2] ok: [h1] ok: [h2] ok: [h3] ok: [x1] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for s1, s2, x1, h1, h2, h3 => (item=lag) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for s1, s2, x1, h1, h2, h3 => (item=vlan) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for s1, s2, x1, h1, h2, h3 => (item=routing) TASK [Figure out whether to deploy the module lag on current device] *********** ok: [s1] ok: [s2] ok: [h1] ok: [h2] ok: [h3] ok: [x1] TASK [Find configuration template for lag] ************************************* ok: [s1] skipping: [h1] ok: [s2] skipping: [h2] skipping: [h3] ok: [x1] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] TASK [Find configuration deployment deploy_script for lag] ********************* ok: [s1] skipping: [h1] skipping: [h2] ok: [s2] skipping: [h3] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [h1] skipping: [h2] skipping: [h3] ok: [s1] => { "msg": "lag configuration for s1\n=========================================\n- set:\n interface:\n peerlink:\n bridge:\n domain:\n br_default:\n learning: off # As recommended by NVidia\n bond:\n member:\n swp1: {}\n type: peerlink\n peerlink.4094:\n base-interface: peerlink\n type: sub\n vlan: 4094\n mlag:\n init-delay: 10\n backup:\n 10.0.0.2: {}\n enable: on\n mac-address: 44:38:39:ff:00:01\n peer-ip: linklocal\n\n- set:\n system:\n global:\n anycast-id: 257\n\n- set:\n interface:\n swp2:\n link:\n state:\n up: {}\n bond1:\n bridge:\n domain:\n br_default: {}\n bond:\n mlag:\n enable: on\n id: 1\n member:\n swp2: {}\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- set:\n interface:\n peerlink:\n bridge:\n domain:\n br_default:\n learning: off # As recommended by NVidia\n bond:\n member:\n swp1: {}\n type: peerlink\n peerlink.4094:\n base-interface: peerlink\n type: sub\n vlan: 4094\n mlag:\n init-delay: 10\n backup:\n 10.0.0.1: {}\n enable: on\n mac-address: 44:38:39:ff:00:01\n peer-ip: linklocal\n\n- set:\n system:\n global:\n anycast-id: 257\n\n- set:\n interface:\n swp2:\n link:\n state:\n up: {}\n bond1:\n bridge:\n domain:\n br_default: {}\n bond:\n mlag:\n enable: on\n id: 1\n member:\n swp2: {}\n" } TASK [Deploy lag configuration] ************************************************ skipping: [h1] skipping: [h2] skipping: [h3] included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/cumulus_nvue.yml for s1, s2 included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1 TASK [set_fact] **************************************************************** ok: [s1] ok: [s2] TASK [copy the cumulus nvue YAML lag config file to switch (generated from /home/pipi/netlab_gh/netsim/ansible/templates/lag/cumulus_nvue.j2)] *** changed: [s2] changed: [s1] TASK [execute on cumulus: 'nv config patch' for lag config] ******************** changed: [s1] changed: [s2] TASK [execute on cumulus: 'nv config apply -y' for lag config] ***************** changed: [s2] changed: [s1] TASK [eos_config: deploying lag from /home/pipi/netlab_gh/netsim/ansible/templates/lag/eos.j2] *** changed: [x1] TASK [Figure out whether to deploy the module vlan on current device] ********** ok: [s1] ok: [s2] ok: [h1] ok: [h2] ok: [h3] ok: [x1] TASK [Find configuration template for vlan] ************************************ ok: [s1] skipping: [h1] ok: [s2] skipping: [h2] skipping: [h3] ok: [x1] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] TASK [Find configuration deployment deploy_script for vlan] ******************** ok: [s1] skipping: [h1] skipping: [h2] ok: [s2] skipping: [h3] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [h1] skipping: [h2] skipping: [h3] ok: [s1] => { "msg": "vlan configuration for s1\n=========================================\n- set:\n bridge:\n domain:\n br_default:\n type: vlan-aware\n vlan:\n '1000': {}\n\n\n- set:\n interface:\n bond1:\n bridge:\n domain:\n br_default:\n access: 1000\n- set:\n interface:\n swp3:\n bridge:\n domain:\n br_default:\n access: 1000\n" } ok: [s2] => { "msg": "vlan configuration for s2\n=========================================\n- set:\n bridge:\n domain:\n br_default:\n type: vlan-aware\n vlan:\n '1000': {}\n\n\n- set:\n interface:\n bond1:\n bridge:\n domain:\n br_default:\n access: 1000\n- set:\n interface:\n swp3:\n bridge:\n domain:\n br_default:\n access: 1000\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] *********************************************** skipping: [h1] skipping: [h2] skipping: [h3] included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/cumulus_nvue.yml for s1, s2 included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1 TASK [set_fact] **************************************************************** ok: [s1] ok: [s2] 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: [s1] changed: [s2] TASK [execute on cumulus: 'nv config patch' for vlan config] ******************* changed: [s1] changed: [s2] TASK [execute on cumulus: 'nv config apply -y' for vlan config] **************** changed: [s1] changed: [s2] TASK [eos_config: deploying vlan from /home/pipi/netlab_gh/netsim/ansible/templates/vlan/eos.j2] *** changed: [x1] TASK [Figure out whether to deploy the module routing on current device] ******* ok: [s1] ok: [s2] ok: [h1] ok: [h2] ok: [h3] ok: [x1] TASK [Find configuration template for routing] ********************************* skipping: [s1] skipping: [s2] skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] TASK [Find configuration deployment deploy_script for routing] ***************** skipping: [s1] skipping: [s2] skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [s1] skipping: [s2] skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] TASK [Deploy routing configuration] ******************************************** skipping: [s1] skipping: [s2] skipping: [x1] skipping: [h1] skipping: [h2] skipping: [h3] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* 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 s1 : ok=41 changed=9 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 s2 : ok=41 changed=9 unreachable=0 failed=0 skipped=12 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 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.