Creating Device configuration snippets [CREATED] h1: initial,routing [CREATED] h2: initial,routing [CREATED] l1: initial,vlan,bgp,vxlan,evpn [CREATED] l2: initial,vlan,bgp,vxlan,evpn [CREATED] spine: initial,bgp,evpn Checking Are lab devices ready to be configured? [INFO] Checking SSH server(s) on l1,spine [SSH] SSH server on node spine (device iol) is ready after 25.4 seconds [SSH] SSH server on node l1 (device iol) is ready after 25.4 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 l2 [INFO] Executing routing configuration for node h1 (namespace clab- ml-17-h1) [INFO] Executing routing configuration for node h2 (namespace clab- ml-17-h2) [INFO] Executing vlan configuration for node l2 [INFO] Executing bgp configuration for node l2 [INFO] Executing vxlan configuration for node l2 [INFO] Executing evpn configuration for node l2 [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: [l1] ok: [spine] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for l1, spine TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [l1] ok: [spine] TASK [Find configuration template for normalize] ******************************* ok: [l1] ok: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [l1] ok: [spine] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [l1] skipping: [spine] TASK [Deploy normalize configuration] ****************************************** skipping: [l1] skipping: [spine] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for l1, spine TASK [Figure out whether to deploy the module initial on current device] ******* ok: [l1] ok: [spine] TASK [Find configuration template for initial] ********************************* ok: [l1] ok: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [l1] ok: [spine] TASK [Print deployed configuration when running in verbose mode] *************** ok: [l1] => { "msg": "initial configuration for l1\n=========================================\nhostname l1\n!\nno ip domain lookup\nlogging buffered 256000\n\n!\nlldp run\n!\nip host h1 172.31.1.1\nip host h2 172.31.1.2\nip host l2 10.0.0.4 10.1.0.5\nip host spine 10.0.0.5 10.1.0.2 10.1.0.6\n!\nip routing\n!\nno ipv6 unicast-routing\n!\n!\nbridge irb\n!\nbridge 1 protocol vlan-bridge\nbridge 1 route ip\n!\n\n!\n!\ninterface Loopback0\n ip address 10.0.0.3 255.255.255.255\n!\ninterface Ethernet0/0\n no lldp transmit\n no lldp receive\n!\ninterface Ethernet0/1\n description l1 -> spine [external]\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] l1 -> h1\n no shutdown\n!\ninterface BDI1000\n description VLAN red (1000) -> [h1,h2,l2]\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: [spine] => { "msg": "initial configuration for spine\n=========================================\nhostname spine\n!\nno ip domain lookup\nlogging buffered 256000\n\n!\nlldp run\n!\nip host h1 172.31.1.1\nip host h2 172.31.1.2\nip host l1 10.0.0.3 10.1.0.1\nip host l2 10.0.0.4 10.1.0.5\n!\nip routing\n!\nno ipv6 unicast-routing\n!\n!\ninterface Loopback0\n ip address 10.0.0.5 255.255.255.255\n!\ninterface Ethernet0/0\n no lldp transmit\n no lldp receive\n!\ninterface Ethernet0/1\n description spine -> l1 [external]\n ip mtu 1500\n ip address 10.1.0.2 255.255.255.252\n no shutdown\n!\ninterface Ethernet0/2\n description spine -> l2 [external]\n ip mtu 1500\n ip address 10.1.0.6 255.255.255.252\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 l1, spine TASK [ios_config: deploying initial from /work/netlab_cicd/node_files/l1/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: [spine] changed: [l1] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [l1] ok: [spine] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for l1, spine => (item=vlan) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for l1, spine => (item=routing) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for l1, spine => (item=bgp) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for l1, spine => (item=vxlan) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for l1, spine => (item=evpn) TASK [Figure out whether to deploy the module vlan on current device] ********** ok: [l1] ok: [spine] TASK [Find configuration template for vlan] ************************************ skipping: [spine] ok: [l1] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for vlan] ******************** skipping: [spine] ok: [l1] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [spine] ok: [l1] => { "msg": "vlan configuration for l1\n=========================================\n!\nbridge-domain 1000\n member Ethernet0/2 service-instance 1000\n!\ninterface Ethernet0/2\n service instance 1000 ethernet\n encapsulation untagged\n" } TASK [Deploy vlan configuration] *********************************************** skipping: [spine] included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for l1 TASK [ios_config: deploying vlan from /work/netlab_cicd/node_files/l1/vlan] **** changed: [l1] TASK [Figure out whether to deploy the module routing on current device] ******* ok: [l1] ok: [spine] TASK [Find configuration template for routing] ********************************* skipping: [l1] skipping: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for routing] ***************** skipping: [l1] skipping: [spine] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [l1] skipping: [spine] TASK [Deploy routing configuration] ******************************************** skipping: [l1] skipping: [spine] TASK [Figure out whether to deploy the module bgp on current device] *********** ok: [l1] ok: [spine] TASK [Find configuration template for bgp] ************************************* ok: [l1] ok: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for bgp] ********************* ok: [l1] ok: [spine] TASK [Print deployed configuration when running in verbose mode] *************** ok: [l1] => { "msg": "bgp configuration for l1\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.3\n neighbor 10.0.0.5 remote-as 65000\n neighbor 10.0.0.5 description spine\n neighbor 10.0.0.5 update-source Loopback0\n\n neighbor 10.1.0.2 remote-as 65100\n neighbor 10.1.0.2 local-as 65201 no-prepend replace-as\n neighbor 10.1.0.2 description spine\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.3 mask 255.255.255.255\n\n!\n neighbor 10.1.0.2 activate\n neighbor 10.1.0.2 advertisement-interval 0\n neighbor 10.1.0.2 send-community standard\n\n!\n" } ok: [spine] => { "msg": "bgp configuration for spine\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.5\n bgp cluster-id 10.0.0.5\n neighbor 10.0.0.3 remote-as 65000\n neighbor 10.0.0.3 description l1\n neighbor 10.0.0.3 update-source Loopback0\n\n neighbor 10.0.0.4 remote-as 65000\n neighbor 10.0.0.4 description l2\n neighbor 10.0.0.4 update-source Loopback0\n\n neighbor 10.1.0.1 remote-as 65201\n neighbor 10.1.0.1 local-as 65100 no-prepend replace-as\n neighbor 10.1.0.1 description l1\n\n neighbor 10.1.0.5 remote-as 65202\n neighbor 10.1.0.5 local-as 65100 no-prepend replace-as\n neighbor 10.1.0.5 description l2\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.5 mask 255.255.255.255\n\n!\n neighbor 10.1.0.1 activate\n neighbor 10.1.0.1 advertisement-interval 0\n neighbor 10.1.0.1 send-community standard\n\n neighbor 10.1.0.5 activate\n neighbor 10.1.0.5 advertisement-interval 0\n neighbor 10.1.0.5 send-community standard\n\n!\n" } TASK [Deploy bgp configuration] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for l1, spine TASK [ios_config: deploying bgp from /work/netlab_cicd/node_files/l1/bgp] ****** changed: [l1] changed: [spine] TASK [Figure out whether to deploy the module vxlan on current device] ********* ok: [l1] ok: [spine] TASK [Find configuration template for vxlan] *********************************** skipping: [spine] ok: [l1] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for vxlan] ******************* skipping: [spine] ok: [l1] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [spine] ok: [l1] => { "msg": "vxlan configuration for l1\n=========================================\ninterface nve1\n no shutdown\n source-interface Loopback0\n host-reachability protocol bgp\n member vni 6000 ingress-replication\n" } TASK [Deploy vxlan configuration] ********************************************** skipping: [spine] included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for l1 TASK [ios_config: deploying vxlan from /work/netlab_cicd/node_files/l1/vxlan] *** changed: [l1] TASK [Figure out whether to deploy the module evpn on current device] ********** ok: [l1] ok: [spine] TASK [Find configuration template for evpn] ************************************ ok: [l1] ok: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for evpn] ******************** ok: [l1] ok: [spine] TASK [Print deployed configuration when running in verbose mode] *************** ok: [l1] => { "msg": "evpn configuration for l1\n=========================================\n! \nbridge-domain 1000\n member evpn-instance 1000 vni 6000\n!\nl2vpn evpn instance 1000 vlan-based\n encapsulation vxlan\n replication-type ingress\n rd 10.0.0.3:1000\n route-target import 65000:1000\n route-target export 65000:1000\n!\nrouter bgp 65000\n address-family l2vpn evpn\n neighbor 10.0.0.5 encap vxlan\n neighbor 10.0.0.5 activate\n neighbor 10.0.0.5 send-community both\n" } ok: [spine] => { "msg": "evpn configuration for spine\n=========================================\n!\nrouter bgp 65000\n address-family l2vpn evpn\n neighbor 10.0.0.3 encap vxlan\n neighbor 10.0.0.3 activate\n neighbor 10.0.0.3 send-community both\n neighbor 10.0.0.3 route-reflector-client\n neighbor 10.0.0.4 encap vxlan\n neighbor 10.0.0.4 activate\n neighbor 10.0.0.4 send-community both\n neighbor 10.0.0.4 route-reflector-client\n" } TASK [Deploy evpn configuration] *********************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for l1, spine TASK [ios_config: deploying evpn from /work/netlab_cicd/node_files/l1/evpn] **** changed: [spine] changed: [l1] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* l1 : ok=43 changed=5 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 spine : ok=33 changed=3 unreachable=0 failed=0 skipped=21 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ h1 Script: initial,routing h2 Script: initial,routing l2 Script: initial,vlan,bgp,vxlan,evpn The devices under test are an EVPN PE-device and an EVPN route reflector. The PE-device should originate EVPN routes with correct next-hop and the RR should propagate EVPN AF routes between PE-devices, resulting in VXLAN-based VLAN extension. However, the core routing protocol is not OSPF but EBGP faked with BGP local-as settings. The overall design is thus EVPN IBGP between loopbacks running over IPv4 EBGP. * h1 and h2 should be able to ping each other Please note it might take a while for the lab to work due to STP learning phase