Creating Device configuration snippets [CREATED] s1: initial,vlan,ospf,bgp,vrf,vxlan,evpn [CREATED] s2: initial,vlan,ospf,bgp,vrf,vxlan,evpn [CREATED] h1: initial,routing [CREATED] h2: initial,routing [CREATED] h3: initial,routing [CREATED] h4: initial,routing Checking Are lab devices ready to be configured? [INFO] Checking SSH server(s) on s1,s2 [SSH] SSH server on node s2 (device iol) is ready after 25.3 seconds [SSH] SSH server on node s1 (device iol) is ready after 27.3 seconds Config Deploying device configurations [INFO] Executing initial configuration for node h1 (namespace clab- ml-17-h1) [INFO] Executing initial configuration for node h2 (namespace clab- ml-17-h2) [INFO] Executing initial 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 h1 (namespace clab- ml-17-h1) [INFO] Executing routing configuration for node h3 (namespace clab- ml-17-h3) [INFO] Executing routing configuration for node h4 (namespace clab- ml-17-h4) [INFO] Executing routing configuration for node h2 (namespace clab- ml-17-h2) [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] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for s1, s2 TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [s1] ok: [s2] TASK [Find configuration template for normalize] ******************************* ok: [s1] ok: [s2] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [s1] ok: [s2] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [s1] skipping: [s2] TASK [Deploy normalize configuration] ****************************************** skipping: [s1] skipping: [s2] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for s1, s2 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [s1] ok: [s2] TASK [Find configuration template for initial] ********************************* ok: [s1] ok: [s2] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [s1] ok: [s2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [s1] => { "msg": "initial configuration for s1\n=========================================\nhostname s1\n!\nno ip domain lookup\nlogging buffered 256000\n\n!\nlldp run\n!\nip host h1 172.16.0.3\nip host h2 172.16.1.4\nip host h3 172.16.2.5\nip host h4 172.16.3.6\nip host s1-tenant 172.16.0.1 172.16.2.1 172.16.1.1\nip host s2 10.0.0.2 10.1.0.2\nip host s2-tenant 172.16.1.2 172.16.3.2 172.16.0.2\n!\nip routing\n!\nno ipv6 unicast-routing\n!\nvrf definition tenant\n rd 65000:1\n route-target import 65000:1\n route-target export 65000:1\n!\n address-family ipv4\n exit-address-family\n!\n\n!\n!\nbridge irb\n!\nbridge 1 protocol vlan-bridge\nbridge 1 route ip\n!\nbridge 3 protocol vlan-bridge\nbridge 3 route ip\n!\nbridge 2 protocol vlan-bridge\nbridge 2 route ip\n!\n\n!\n!\ninterface Loopback0\n ip address 10.0.0.1 255.255.255.255\n!\ninterface Ethernet0/0\n no lldp transmit\n no lldp receive\n!\ninterface Ethernet0/1\n description s1 -> s2\n ip mtu 1500\n ip address 10.1.0.1 255.255.255.252\n no shutdown\n!\ninterface Ethernet0/2\n description [Access VLAN red] s1 -> h1\n no shutdown\n!\ninterface Ethernet0/3\n description [Access VLAN green] s1 -> h3\n no shutdown\n!\ninterface BDI1000\n vrf forwarding tenant\n description VLAN red (1000) -> [h1,s2]\n ip address 172.16.0.1 255.255.255.0\n no shutdown\n!\ninterface BDI1002\n vrf forwarding tenant\n description VLAN green (1002) -> [h3] [stub]\n ip address 172.16.2.1 255.255.255.0\n no shutdown\n!\ninterface BDI1001\n vrf forwarding tenant\n description VLAN blue (1001) -> [h2,s2]\n ip address 172.16.1.1 255.255.255.0\n no shutdown\n!\n!\nline vty 0 4\n exec-timeout 0 0 \n!\nno banner exec\nno banner login\nno banner incoming\n" } ok: [s2] => { "msg": "initial configuration for s2\n=========================================\nhostname s2\n!\nno ip domain lookup\nlogging buffered 256000\n\n!\nlldp run\n!\nip host h1 172.16.0.3\nip host h2 172.16.1.4\nip host h3 172.16.2.5\nip host h4 172.16.3.6\nip host s1 10.0.0.1 10.1.0.1\nip host s1-tenant 172.16.0.1 172.16.2.1 172.16.1.1\nip host s2-tenant 172.16.1.2 172.16.3.2 172.16.0.2\n!\nip routing\n!\nno ipv6 unicast-routing\n!\nvrf definition tenant\n rd 65000:1\n route-target import 65000:1\n route-target export 65000:1\n!\n address-family ipv4\n exit-address-family\n!\n\n!\n!\nbridge irb\n!\nbridge 3 protocol vlan-bridge\nbridge 3 route ip\n!\nbridge 1 protocol vlan-bridge\nbridge 1 route ip\n!\nbridge 2 protocol vlan-bridge\nbridge 2 route ip\n!\n\n!\n!\ninterface Loopback0\n ip address 10.0.0.2 255.255.255.255\n!\ninterface Ethernet0/0\n no lldp transmit\n no lldp receive\n!\ninterface Ethernet0/1\n description s2 -> s1\n ip mtu 1500\n ip address 10.1.0.2 255.255.255.252\n no shutdown\n!\ninterface Ethernet0/2\n description [Access VLAN blue] s2 -> h2\n no shutdown\n!\ninterface Ethernet0/3\n description [Access VLAN purple] s2 -> h4\n no shutdown\n!\ninterface BDI1001\n vrf forwarding tenant\n description VLAN blue (1001) -> [s1,h2]\n ip address 172.16.1.2 255.255.255.0\n no shutdown\n!\ninterface BDI1003\n vrf forwarding tenant\n description VLAN purple (1003) -> [h4] [stub]\n ip address 172.16.3.2 255.255.255.0\n no shutdown\n!\ninterface BDI1000\n vrf forwarding tenant\n description VLAN red (1000) -> [h1,s1]\n ip address 172.16.0.2 255.255.255.0\n no shutdown\n!\n!\nline vty 0 4\n exec-timeout 0 0 \n!\nno banner exec\nno banner login\nno banner incoming\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for s1, s2 TASK [ios_config: deploying initial from /work/netlab_cicd/node_files/s1/initial] *** [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: [s2] changed: [s1] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [s1] ok: [s2] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for s1, s2 => (item=vlan) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for s1, s2 => (item=routing) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for s1, s2 => (item=ospf) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for s1, s2 => (item=bgp) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for s1, s2 => (item=vrf) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for s1, s2 => (item=vxlan) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for s1, s2 => (item=evpn) TASK [Figure out whether to deploy the module vlan on current device] ********** ok: [s1] ok: [s2] TASK [Find configuration template for vlan] ************************************ ok: [s1] ok: [s2] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] TASK [Find configuration deployment deploy_script for vlan] ******************** ok: [s1] ok: [s2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [s1] => { "msg": "vlan configuration for s1\n=========================================\n!\nbridge-domain 1000\n member Ethernet0/2 service-instance 1000\n!\nbridge-domain 1001\n!\nbridge-domain 1002\n member Ethernet0/3 service-instance 1002\n!\ninterface Ethernet0/2\n service instance 1000 ethernet\n encapsulation untagged\n!\ninterface Ethernet0/3\n service instance 1002 ethernet\n encapsulation untagged\n" } ok: [s2] => { "msg": "vlan configuration for s2\n=========================================\n!\nbridge-domain 1000\n!\nbridge-domain 1001\n member Ethernet0/2 service-instance 1001\n!\nbridge-domain 1003\n member Ethernet0/3 service-instance 1003\n!\ninterface Ethernet0/2\n service instance 1001 ethernet\n encapsulation untagged\n!\ninterface Ethernet0/3\n service instance 1003 ethernet\n encapsulation untagged\n" } TASK [Deploy vlan configuration] *********************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for s1, s2 TASK [ios_config: deploying vlan from /work/netlab_cicd/node_files/s1/vlan] **** changed: [s2] changed: [s1] TASK [Figure out whether to deploy the module routing on current device] ******* ok: [s1] ok: [s2] TASK [Find configuration template for routing] ********************************* skipping: [s1] skipping: [s2] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] TASK [Find configuration deployment deploy_script for routing] ***************** skipping: [s1] skipping: [s2] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [s1] skipping: [s2] TASK [Deploy routing configuration] ******************************************** skipping: [s1] skipping: [s2] TASK [Figure out whether to deploy the module ospf on current device] ********** ok: [s1] ok: [s2] TASK [Find configuration template for ospf] ************************************ ok: [s1] ok: [s2] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] TASK [Find configuration deployment deploy_script for ospf] ******************** ok: [s1] ok: [s2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [s1] => { "msg": "ospf configuration for s1\n=========================================\nrouter ospf 1\n router-id 10.0.0.1\n\n!\ninterface Loopback0\n! \n ip ospf 1 area 0.0.0.0\n!\ninterface Ethernet0/1\n! s1 -> s2\n ip ospf 1 area 0.0.0.0\n ip ospf network point-to-point\n!\n\n" } ok: [s2] => { "msg": "ospf configuration for s2\n=========================================\nrouter ospf 1\n router-id 10.0.0.2\n\n!\ninterface Loopback0\n! \n ip ospf 1 area 0.0.0.0\n!\ninterface Ethernet0/1\n! s2 -> s1\n ip ospf 1 area 0.0.0.0\n ip ospf network point-to-point\n!\n\n" } TASK [Deploy ospf configuration] *********************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for s1, s2 TASK [ios_config: deploying ospf from /work/netlab_cicd/node_files/s1/ospf] **** changed: [s1] changed: [s2] TASK [Figure out whether to deploy the module bgp on current device] *********** ok: [s1] ok: [s2] TASK [Find configuration template for bgp] ************************************* ok: [s1] ok: [s2] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] TASK [Find configuration deployment deploy_script for bgp] ********************* ok: [s1] ok: [s2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [s1] => { "msg": "bgp configuration for s1\n=========================================\n!\nip bgp-community new-format\n!\nrouter bgp 65000\n no bgp default ipv4-unicast\n bgp update-delay 5\n bgp nopeerup-delay cold-boot 1\n bgp nopeerup-delay user-initiated 1\n bgp router-id 10.0.0.1\n neighbor 10.0.0.2 remote-as 65000\n neighbor 10.0.0.2 description s2\n neighbor 10.0.0.2 update-source Loopback0\n\n!\n address-family ipv4\n bgp scan-time 5\n!\n!\n! Originate networks from connected subnets\n!\n network 10.0.0.1 mask 255.255.255.255\n\n!\n neighbor 10.0.0.2 activate\n neighbor 10.0.0.2 advertisement-interval 0\n neighbor 10.0.0.2 next-hop-self\n neighbor 10.0.0.2 send-community both\n\n!\n" } ok: [s2] => { "msg": "bgp configuration for s2\n=========================================\n!\nip bgp-community new-format\n!\nrouter bgp 65000\n no bgp default ipv4-unicast\n bgp update-delay 5\n bgp nopeerup-delay cold-boot 1\n bgp nopeerup-delay user-initiated 1\n bgp router-id 10.0.0.2\n neighbor 10.0.0.1 remote-as 65000\n neighbor 10.0.0.1 description s1\n neighbor 10.0.0.1 update-source Loopback0\n\n!\n address-family ipv4\n bgp scan-time 5\n!\n!\n! Originate networks from connected subnets\n!\n network 10.0.0.2 mask 255.255.255.255\n\n!\n neighbor 10.0.0.1 activate\n neighbor 10.0.0.1 advertisement-interval 0\n neighbor 10.0.0.1 next-hop-self\n neighbor 10.0.0.1 send-community both\n\n!\n" } TASK [Deploy bgp configuration] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for s2, s1 TASK [ios_config: deploying bgp from /work/netlab_cicd/node_files/s1/bgp] ****** changed: [s2] changed: [s1] TASK [Figure out whether to deploy the module vrf on current device] *********** ok: [s1] ok: [s2] TASK [Find configuration template for vrf] ************************************* ok: [s1] ok: [s2] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] TASK [Find configuration deployment deploy_script for vrf] ********************* ok: [s1] ok: [s2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [s2] => { "msg": "vrf configuration for s2\n=========================================\n!\nrouter bgp 65000\n!\n address-family ipv4 vrf tenant\n bgp router-id 10.0.0.2\n redistribute connected\n redistribute ospf 100 match internal external\n\n!\n!\n exit-address-family\n!\nexit\n!\n!\nrouter ospf 100 vrf tenant\n router-id 10.0.0.2\n passive-interface BDI1003\n\n redistribute bgp 65000\n redistribute connected\n\n!\ninterface BDI1001\n! VLAN blue (1001) -> [s1,h2]\n ip ospf 100 area 0.0.0.0\n!\ninterface BDI1003\n! VLAN purple (1003) -> [h4]\n ip ospf 100 area 0.0.0.0\n ip ospf network point-to-point\n!\ninterface BDI1000\n! VLAN red (1000) -> [h1,s1]\n ip ospf 100 area 0.0.0.0\n!\n\n!\n" } ok: [s1] => { "msg": "vrf configuration for s1\n=========================================\n!\nrouter bgp 65000\n!\n address-family ipv4 vrf tenant\n bgp router-id 10.0.0.1\n redistribute connected\n redistribute ospf 100 match internal external\n\n!\n!\n exit-address-family\n!\nexit\n!\n!\nrouter ospf 100 vrf tenant\n router-id 10.0.0.1\n passive-interface BDI1002\n\n redistribute bgp 65000\n redistribute connected\n\n!\ninterface BDI1000\n! VLAN red (1000) -> [h1,s2]\n ip ospf 100 area 0.0.0.0\n!\ninterface BDI1002\n! VLAN green (1002) -> [h3]\n ip ospf 100 area 0.0.0.0\n ip ospf network point-to-point\n!\ninterface BDI1001\n! VLAN blue (1001) -> [h2,s2]\n ip ospf 100 area 0.0.0.0\n!\n\n!\n" } TASK [Deploy vrf configuration] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for s1, s2 TASK [ios_config: deploying vrf from /work/netlab_cicd/node_files/s1/vrf] ****** changed: [s2] changed: [s1] TASK [Figure out whether to deploy the module vxlan on current device] ********* ok: [s1] ok: [s2] TASK [Find configuration template for vxlan] *********************************** ok: [s1] ok: [s2] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] TASK [Find configuration deployment deploy_script for vxlan] ******************* ok: [s1] ok: [s2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [s1] => { "msg": "vxlan configuration for s1\n=========================================\ninterface nve1\n no shutdown\n source-interface Loopback0\n host-reachability protocol bgp\n member vni 6000 ingress-replication\n member vni 6001 ingress-replication\n" } ok: [s2] => { "msg": "vxlan configuration for s2\n=========================================\ninterface nve1\n no shutdown\n source-interface Loopback0\n host-reachability protocol bgp\n member vni 6000 ingress-replication\n member vni 6001 ingress-replication\n" } TASK [Deploy vxlan configuration] ********************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for s1, s2 TASK [ios_config: deploying vxlan from /work/netlab_cicd/node_files/s1/vxlan] *** changed: [s1] changed: [s2] TASK [Figure out whether to deploy the module evpn on current device] ********** ok: [s1] ok: [s2] TASK [Find configuration template for evpn] ************************************ ok: [s1] ok: [s2] TASK [fail] ******************************************************************** skipping: [s1] skipping: [s2] TASK [Find configuration deployment deploy_script for evpn] ******************** ok: [s1] ok: [s2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [s1] => { "msg": "evpn configuration for s1\n=========================================\n! \nbridge-domain 1000\n member evpn-instance 1000 vni 6000\n! \nbridge-domain 1001\n member evpn-instance 1001 vni 6001\n!\nl2vpn evpn instance 1000 vlan-based\n encapsulation vxlan\n replication-type ingress\n rd 10.0.0.1:1000\n route-target import 65000:1000\n route-target export 65000:1000\n!\nl2vpn evpn instance 1001 vlan-based\n encapsulation vxlan\n replication-type ingress\n rd 10.0.0.1:1001\n route-target import 65000:1001\n route-target export 65000:1001\n!\n!\nrouter bgp 65000\n address-family l2vpn evpn\n neighbor 10.0.0.2 encap vxlan\n neighbor 10.0.0.2 activate\n neighbor 10.0.0.2 send-community both\n" } ok: [s2] => { "msg": "evpn configuration for s2\n=========================================\n! \nbridge-domain 1000\n member evpn-instance 1000 vni 6000\n! \nbridge-domain 1001\n member evpn-instance 1001 vni 6001\n!\nl2vpn evpn instance 1000 vlan-based\n encapsulation vxlan\n replication-type ingress\n rd 10.0.0.2:1000\n route-target import 65000:1000\n route-target export 65000:1000\n!\nl2vpn evpn instance 1001 vlan-based\n encapsulation vxlan\n replication-type ingress\n rd 10.0.0.2:1001\n route-target import 65000:1001\n route-target export 65000:1001\n!\n!\nrouter bgp 65000\n address-family l2vpn evpn\n neighbor 10.0.0.1 encap vxlan\n neighbor 10.0.0.1 activate\n neighbor 10.0.0.1 send-community both\n" } TASK [Deploy evpn configuration] *********************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for s1, s2 TASK [ios_config: deploying evpn from /work/netlab_cicd/node_files/s1/evpn] **** changed: [s2] changed: [s1] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* s1 : ok=57 changed=7 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 s2 : ok=57 changed=7 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ h1 Script: initial,routing h2 Script: initial,routing h3 Script: initial,routing h4 Script: initial,routing The devices under test are VLAN-to-VXLAN routers using asymmetric IRB with EVPN control plane and running OSPF within the VRF (across VXLAN segments) to exchange information about non-EVPN subnets. All hosts should be able to ping each other