Creating Device configuration snippets [CREATED] h1: initial,routing [CREATED] h2: initial,routing [CREATED] h3: initial,routing [CREATED] h4: initial,routing [CREATED] h5: initial,routing [CREATED] h6: initial,routing [CREATED] h1a: initial,routing [CREATED] h2a: initial,routing [CREATED] h4a: initial,routing [CREATED] h5a: initial,routing [CREATED] dut_s1: initial,vlan,vxlan,ospf [CREATED] dut_s2: initial,vlan,vxlan,ospf [CREATED] s3: initial,vlan,vxlan,ospf 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 initial configuration for node h5 (namespace clab- ml-17-h5) [INFO] Executing initial configuration for node h6 (namespace clab- ml-17-h6) [INFO] Executing initial configuration for node h1a (namespace clab- ml-17-h1a) [INFO] Executing initial configuration for node h2a (namespace clab- ml-17-h2a) [INFO] Executing initial configuration for node h4a (namespace clab- ml-17-h4a) [INFO] Executing initial configuration for node h5a (namespace clab- ml-17-h5a) [INFO] Executing initial configuration for node s3 [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 routing configuration for node h4 (namespace clab- ml-17-h4) [INFO] Executing routing configuration for node h3 (namespace clab- ml-17-h3) [INFO] Executing routing configuration for node h5 (namespace clab- ml-17-h5) [INFO] Executing routing configuration for node h6 (namespace clab- ml-17-h6) [INFO] Executing routing configuration for node h1a (namespace clab- ml-17-h1a) [INFO] Executing routing configuration for node h5a (namespace clab- ml-17-h5a) [INFO] Executing routing configuration for node h2a (namespace clab- ml-17-h2a) [INFO] Executing routing configuration for node h4a (namespace clab- ml-17-h4a) [INFO] Executing vlan configuration for node s3 [INFO] Executing vxlan configuration for node s3 [INFO] Executing ospf configuration for node s3 [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: [dut_s1] ok: [dut_s2] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_s1, dut_s2 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [dut_s1] ok: [dut_s2] TASK [Find configuration template for initial] ********************************* ok: [dut_s1] ok: [dut_s2] TASK [fail] ******************************************************************** skipping: [dut_s1] skipping: [dut_s2] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [dut_s1] ok: [dut_s2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_s1] => { "msg": "initial configuration for dut_s1\n=========================================\n\n/system/identity set name=\"dut_s1\"\n\n/interface/bridge add name=loopback protocol-mode=none\n\n\n/ip/address add interface=loopback address=10.0.0.11/32\n\n\n/interface/bridge add name=switch vlan-filtering=yes comment=\"Global Switch Bridge\"\n\n/interface/vlan add name=vlan1000 vlan-id=1000 interface=switch\n/interface/vlan add name=vlan1001 vlan-id=1001 interface=switch\n\n\n\n\n\n/interface/ethernet set comment=\"dut_s1 -> dut_s2\" ether2\n\n/interface/ethernet set mtu=1600 ether2\n/ip/address add interface=ether2 address=10.1.0.1/30\n/ip/address set [find where interface=ether2] comment=\"dut_s1 -> dut_s2\"\n\n\n/interface/ethernet set comment=\"dut_s1 -> s3\" ether3\n\n/interface/ethernet set mtu=1600 ether3\n/ip/address add interface=ether3 address=10.1.0.9/30\n/ip/address set [find where interface=ether3] comment=\"dut_s1 -> s3\"\n\n\n/interface/ethernet set comment=\"[Access VLAN red] dut_s1 -> h1\" ether4\n\n\n\n/interface/ethernet set comment=\"[Access VLAN red] dut_s1 -> h1a\" ether5\n\n\n\n/interface/ethernet set comment=\"[Access VLAN blue] dut_s1 -> h4\" ether6\n\n\n\n/interface/ethernet set comment=\"[Access VLAN blue] dut_s1 -> h4a\" ether7\n\n\n\n/interface/vlan set comment=\"VLAN red (1000) -> [h1,h1a,h2,h2a,dut_s2...]\" vlan1000\n\n\n\n/interface/vlan set comment=\"VLAN blue (1001) -> [h4,h4a,h5,h5a,dut_s2...]\" vlan1001\n\n\n\n/ip/neighbor/discovery-settings set discover-interface-list=all\n" } ok: [dut_s2] => { "msg": "initial configuration for dut_s2\n=========================================\n\n/system/identity set name=\"dut_s2\"\n\n/interface/bridge add name=loopback protocol-mode=none\n\n\n/ip/address add interface=loopback address=10.0.0.12/32\n\n\n/interface/bridge add name=switch vlan-filtering=yes comment=\"Global Switch Bridge\"\n\n/interface/vlan add name=vlan1000 vlan-id=1000 interface=switch\n/interface/vlan add name=vlan1001 vlan-id=1001 interface=switch\n\n\n\n\n\n/interface/ethernet set comment=\"dut_s2 -> dut_s1\" ether2\n\n/interface/ethernet set mtu=1600 ether2\n/ip/address add interface=ether2 address=10.1.0.2/30\n/ip/address set [find where interface=ether2] comment=\"dut_s2 -> dut_s1\"\n\n\n/interface/ethernet set comment=\"dut_s2 -> s3\" ether3\n\n/interface/ethernet set mtu=1600 ether3\n/ip/address add interface=ether3 address=10.1.0.5/30\n/ip/address set [find where interface=ether3] comment=\"dut_s2 -> s3\"\n\n\n/interface/ethernet set comment=\"[Access VLAN red] dut_s2 -> h2\" ether4\n\n\n\n/interface/ethernet set comment=\"[Access VLAN red] dut_s2 -> h2a\" ether5\n\n\n\n/interface/ethernet set comment=\"[Access VLAN blue] dut_s2 -> h5\" ether6\n\n\n\n/interface/ethernet set comment=\"[Access VLAN blue] dut_s2 -> h5a\" ether7\n\n\n\n/interface/vlan set comment=\"VLAN red (1000) -> [h1,h1a,dut_s1,h2,h2a...]\" vlan1000\n\n\n\n/interface/vlan set comment=\"VLAN blue (1001) -> [h4,h4a,dut_s1,h5,h5a...]\" vlan1001\n\n\n\n/ip/neighbor/discovery-settings set discover-interface-list=all\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/routeros7.yml for dut_s1, dut_s2 TASK [load initial from /work/netlab_cicd/node_files/dut_s1/initial] *********** ok: [dut_s1] ok: [dut_s2] TASK [Run commands on CHR] ***************************************************** changed: [dut_s2] changed: [dut_s1] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut_s1] ok: [dut_s2] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_s1, dut_s2 => (item=vlan) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_s1, dut_s2 => (item=vxlan) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_s1, dut_s2 => (item=routing) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_s1, dut_s2 => (item=ospf) TASK [Figure out whether to deploy the module vlan on current device] ********** ok: [dut_s1] ok: [dut_s2] TASK [Find configuration template for vlan] ************************************ ok: [dut_s1] ok: [dut_s2] TASK [fail] ******************************************************************** skipping: [dut_s1] skipping: [dut_s2] TASK [Find configuration deployment deploy_script for vlan] ******************** ok: [dut_s1] ok: [dut_s2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_s1] => { "msg": "vlan configuration for dut_s1\n=========================================\n\n\n/interface/bridge/vlan add bridge=switch vlan-ids=1000 tagged=switch\n/interface/bridge/vlan add bridge=switch vlan-ids=1001 tagged=switch\n\n/interface/bridge/port add bridge=switch interface=ether4 pvid=1000\n/interface/bridge/vlan set untagged=([get value-name=untagged [find vlan-ids=1000]],\"ether4\") [find vlan-ids=1000]\n/interface/bridge/port add bridge=switch interface=ether5 pvid=1000\n/interface/bridge/vlan set untagged=([get value-name=untagged [find vlan-ids=1000]],\"ether5\") [find vlan-ids=1000]\n/interface/bridge/port add bridge=switch interface=ether6 pvid=1001\n/interface/bridge/vlan set untagged=([get value-name=untagged [find vlan-ids=1001]],\"ether6\") [find vlan-ids=1001]\n/interface/bridge/port add bridge=switch interface=ether7 pvid=1001\n/interface/bridge/vlan set untagged=([get value-name=untagged [find vlan-ids=1001]],\"ether7\") [find vlan-ids=1001]\n" } ok: [dut_s2] => { "msg": "vlan configuration for dut_s2\n=========================================\n\n\n/interface/bridge/vlan add bridge=switch vlan-ids=1000 tagged=switch\n/interface/bridge/vlan add bridge=switch vlan-ids=1001 tagged=switch\n\n/interface/bridge/port add bridge=switch interface=ether4 pvid=1000\n/interface/bridge/vlan set untagged=([get value-name=untagged [find vlan-ids=1000]],\"ether4\") [find vlan-ids=1000]\n/interface/bridge/port add bridge=switch interface=ether5 pvid=1000\n/interface/bridge/vlan set untagged=([get value-name=untagged [find vlan-ids=1000]],\"ether5\") [find vlan-ids=1000]\n/interface/bridge/port add bridge=switch interface=ether6 pvid=1001\n/interface/bridge/vlan set untagged=([get value-name=untagged [find vlan-ids=1001]],\"ether6\") [find vlan-ids=1001]\n/interface/bridge/port add bridge=switch interface=ether7 pvid=1001\n/interface/bridge/vlan set untagged=([get value-name=untagged [find vlan-ids=1001]],\"ether7\") [find vlan-ids=1001]\n" } TASK [Deploy vlan configuration] *********************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/routeros7.yml for dut_s1, dut_s2 TASK [load vlan from /work/netlab_cicd/node_files/dut_s1/vlan] ***************** ok: [dut_s1] ok: [dut_s2] TASK [Run commands on CHR] ***************************************************** changed: [dut_s1] changed: [dut_s2] TASK [Figure out whether to deploy the module vxlan on current device] ********* ok: [dut_s1] ok: [dut_s2] TASK [Find configuration template for vxlan] *********************************** ok: [dut_s1] ok: [dut_s2] TASK [fail] ******************************************************************** skipping: [dut_s1] skipping: [dut_s2] TASK [Find configuration deployment deploy_script for vxlan] ******************* ok: [dut_s1] ok: [dut_s2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_s1] => { "msg": "vxlan configuration for dut_s1\n=========================================\n/interface/vxlan add bridge=switch bridge-pvid=1000 local-address=10.0.0.11 name=vxlan-5000 vni=5000 learning=yes checksum=yes\n/interface/vxlan/vtep add interface=vxlan-5000 remote-ip=10.0.0.12\n/interface/vxlan/vtep add interface=vxlan-5000 remote-ip=10.0.0.13\n/interface/vxlan add bridge=switch bridge-pvid=1001 local-address=10.0.0.11 name=vxlan-5001 vni=5001 learning=yes checksum=yes\n/interface/vxlan/vtep add interface=vxlan-5001 remote-ip=10.0.0.12\n/interface/vxlan/vtep add interface=vxlan-5001 remote-ip=10.0.0.13\n" } ok: [dut_s2] => { "msg": "vxlan configuration for dut_s2\n=========================================\n/interface/vxlan add bridge=switch bridge-pvid=1000 local-address=10.0.0.12 name=vxlan-5000 vni=5000 learning=yes checksum=yes\n/interface/vxlan/vtep add interface=vxlan-5000 remote-ip=10.0.0.11\n/interface/vxlan/vtep add interface=vxlan-5000 remote-ip=10.0.0.13\n/interface/vxlan add bridge=switch bridge-pvid=1001 local-address=10.0.0.12 name=vxlan-5001 vni=5001 learning=yes checksum=yes\n/interface/vxlan/vtep add interface=vxlan-5001 remote-ip=10.0.0.11\n/interface/vxlan/vtep add interface=vxlan-5001 remote-ip=10.0.0.13\n" } TASK [Deploy vxlan configuration] ********************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/routeros7.yml for dut_s1, dut_s2 TASK [load vxlan from /work/netlab_cicd/node_files/dut_s1/vxlan] *************** ok: [dut_s1] ok: [dut_s2] TASK [Run commands on CHR] ***************************************************** changed: [dut_s2] changed: [dut_s1] TASK [Figure out whether to deploy the module routing on current device] ******* ok: [dut_s1] ok: [dut_s2] TASK [Find configuration template for routing] ********************************* skipping: [dut_s1] skipping: [dut_s2] TASK [fail] ******************************************************************** skipping: [dut_s1] skipping: [dut_s2] TASK [Find configuration deployment deploy_script for routing] ***************** skipping: [dut_s1] skipping: [dut_s2] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [dut_s1] skipping: [dut_s2] TASK [Deploy routing configuration] ******************************************** skipping: [dut_s1] skipping: [dut_s2] TASK [Figure out whether to deploy the module ospf on current device] ********** ok: [dut_s1] ok: [dut_s2] TASK [Find configuration template for ospf] ************************************ ok: [dut_s1] ok: [dut_s2] TASK [fail] ******************************************************************** skipping: [dut_s1] skipping: [dut_s2] TASK [Find configuration deployment deploy_script for ospf] ******************** ok: [dut_s1] ok: [dut_s2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_s1] => { "msg": "ospf configuration for dut_s1\n=========================================\n\n\n/routing/ospf/instance add name=default4 version=2 router-id=10.0.0.11 vrf=main\n\n/routing/ospf/area add instance=default4 name=\"main_2_0.0.0.0\" area-id=0.0.0.0\n\n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.0 and instance=default4] interface=loopback \n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.0 and instance=default4] interface=ether2 type=ptp\n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.0 and instance=default4] interface=ether3 type=ptp\n\n" } ok: [dut_s2] => { "msg": "ospf configuration for dut_s2\n=========================================\n\n\n/routing/ospf/instance add name=default4 version=2 router-id=10.0.0.12 vrf=main\n\n/routing/ospf/area add instance=default4 name=\"main_2_0.0.0.0\" area-id=0.0.0.0\n\n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.0 and instance=default4] interface=loopback \n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.0 and instance=default4] interface=ether2 type=ptp\n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.0 and instance=default4] interface=ether3 type=ptp\n\n" } TASK [Deploy ospf configuration] *********************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/routeros7.yml for dut_s1, dut_s2 TASK [load ospf from /work/netlab_cicd/node_files/dut_s1/ospf] ***************** ok: [dut_s1] ok: [dut_s2] TASK [Run commands on CHR] ***************************************************** changed: [dut_s1] changed: [dut_s2] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut_s1 : ok=36 changed=4 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 dut_s2 : ok=36 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 h4 Script: initial,routing h5 Script: initial,routing h6 Script: initial,routing h1a Script: initial,routing h2a Script: initial,routing h4a Script: initial,routing h5a Script: initial,routing s3 Script: initial,vlan,vxlan,ospf This is the multi-node version of the vxlan-bridging lab. Use it to check that you don't have spanning tree problems in VXLAN overlay * h1, h2 and h3 should be able to ping each other * h4, h5 and h6 should be able to ping each other Please note it might take a while for the lab to work due to OSPF adjacency establishment and STP learning phase