Creating Device configuration snippets [CREATED] dut: initial,ospf,vrf [CREATED] r1: initial,ospf [CREATED] r2: initial,ospf [CREATED] r3: initial,ospf [CREATED] r4: initial,ospf Config Deploying device configurations [INFO] Executing initial configuration for node r1 [INFO] Executing initial configuration for node r2 [INFO] Executing initial configuration for node r3 [INFO] Executing initial configuration for node r4 [INFO] Executing ospf configuration for node r1 [INFO] Executing ospf configuration for node r2 [INFO] Executing ospf configuration for node r4 [INFO] Executing ospf configuration for node r3 [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] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut TASK [Figure out whether to deploy the module initial on current device] ******* ok: [dut] TASK [Find configuration template for initial] ********************************* ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [dut] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => { "msg": "initial configuration for dut\n=========================================\n\n/system/identity set name=\"dut\"\n\n/interface/bridge add name=loopback protocol-mode=none\n\n# Host entries\n/ip/dns/static add name=dut-red address=10.1.0.1\n/ip/dns/static add name=r1 address=10.0.0.2\n/ip/dns/static add name=r2 address=10.0.0.3\n/ip/dns/static add name=dut-red address=2001:db8:3::1\n/ip/dns/static add name=dut-blue address=2001:db8:13::1\n/ip/dns/static add name=r1 address=2001:db8:1:2::1\n/ip/dns/static add name=r2 address=2001:db8:1:3::1\n/ip/dns/static add name=r3 address=2001:db8:cafe:2000::4\n/ip/dns/static add name=r4 address=2001:db8:cafe:2000::5\n/interface/bridge add name=loopback1 protocol-mode=none\n/interface/bridge add name=loopback2 protocol-mode=none\n\n/ip/address add interface=loopback address=10.0.0.1/32\n/ipv6/address add interface=loopback address=2001:db8:1:1::1/64\n\n/ip/vrf add place-before=0 name=blue interfaces=ether4,ether5,loopback1\n/ip/vrf add place-before=0 name=red interfaces=ether2,ether3,loopback2\n\n\n\n/interface/ethernet set comment=\"dut -> r1\" ether2\n/interface/ethernet set mtu=1500 ether2\n/ip/address add interface=ether2 address=10.1.0.1/30\n/ip/address set [find where interface=ether2] comment=\"dut -> r1\"\n/ipv6/address add interface=ether2 address=2001:db8:3::1/64\n/ipv6/nd add interface=ether2 advertise-dns=no ra-interval=3s-30s\n\n/interface/ethernet set comment=\"dut -> r2\" ether3\n/interface/ethernet set mtu=1500 ether3\n/ip/address add interface=ether3 address=10.1.0.5/30\n/ip/address set [find where interface=ether3] comment=\"dut -> r2\"\n/ipv6/address add interface=ether3 address=2001:db8:3:1::1/64\n/ipv6/nd add interface=ether3 advertise-dns=no ra-interval=3s-30s\n\n/interface/ethernet set comment=\"dut -> r3\" ether4\n/interface/ethernet set mtu=1500 ether4\n/ipv6/address add interface=ether4 address=2001:db8:13::1/64\n/ipv6/nd add interface=ether4 advertise-dns=no ra-interval=3s-30s\n\n/interface/ethernet set comment=\"dut -> r4\" ether5\n/interface/ethernet set mtu=1500 ether5\n/ipv6/address add interface=ether5 address=2001:db8:13:1::1/64\n/ipv6/nd add interface=ether5 advertise-dns=no ra-interval=3s-30s\n\n/interface/ethernet set comment=\"VRF Loopback blue\" loopback1\n/ipv6/address add interface=loopback1 address=2001:db8:cafe:2001::1/64\n/ipv6/nd add interface=loopback1 advertise-dns=no ra-interval=3s-30s\n\n/interface/ethernet set comment=\"VRF Loopback red\" loopback2\n/ip/address add interface=loopback2 address=10.2.0.1/32\n/ip/address set [find where interface=loopback2] comment=\"VRF Loopback red\"\n/ipv6/address add interface=loopback2 address=2001:db8:cafe::1/64\n/ipv6/nd add interface=loopback2 advertise-dns=no ra-interval=3s-30s\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 TASK [load initial from /work/netlab_cicd/node_files/dut/initial] ************** ok: [dut] TASK [Run commands on CHR] ***************************************************** changed: [dut] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut => (item=ospf) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut => (item=vrf) TASK [Figure out whether to deploy the module ospf on current device] ********** ok: [dut] TASK [Find configuration template for ospf] ************************************ ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] TASK [Find configuration deployment deploy_script for ospf] ******************** ok: [dut] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => { "msg": "ospf configuration for dut\n=========================================\n\n\n" } TASK [Deploy ospf configuration] *********************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/routeros7.yml for dut TASK [load ospf from /work/netlab_cicd/node_files/dut/ospf] ******************** ok: [dut] TASK [Run commands on CHR] ***************************************************** changed: [dut] TASK [Figure out whether to deploy the module vrf on current device] *********** ok: [dut] TASK [Find configuration template for vrf] ************************************* ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] TASK [Find configuration deployment deploy_script for vrf] ********************* ok: [dut] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => { "msg": "vrf configuration for dut\n=========================================\n\n\n\n\n/routing/ospf/instance add name=default6_blue version=3 router-id=10.0.0.1 vrf=blue\n\n/routing/ospf/area add instance=default6_blue name=\"blue_3_0.0.0.0\" area-id=0.0.0.0\n/routing/ospf/area add instance=default6_blue name=\"blue_3_0.0.0.3\" area-id=0.0.0.3\n/routing/ospf/area add instance=default6_blue name=\"blue_3_0.0.0.4\" area-id=0.0.0.4\n\n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.3 and instance=default6_blue] interface=ether4 type=ptp\n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.4 and instance=default6_blue] interface=ether5 type=ptp\n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.0 and instance=default6_blue] interface=loopback1 \n\n/routing/ospf/instance set [/routing/ospf/instance find name=default6_blue] redistribute=bgp,bgp-mpls-vpn,vpn,connected,static routing-table=blue\n\n\n/routing/ospf/instance add name=default4_red version=2 router-id=10.0.0.1 vrf=red\n\n/routing/ospf/area add instance=default4_red name=\"red_2_0.0.0.2\" area-id=0.0.0.2\n\n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.2 and instance=default4_red] interface=ether2 type=ptp\n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.2 and instance=default4_red] interface=ether3 type=ptp\n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.2 and instance=default4_red] interface=loopback2 \n\n/routing/ospf/instance set [/routing/ospf/instance find name=default4_red] redistribute=bgp,bgp-mpls-vpn,vpn,connected,static routing-table=red\n\n\n/routing/ospf/instance add name=default6_red version=3 router-id=10.0.0.1 vrf=red\n\n/routing/ospf/area add instance=default6_red name=\"red_3_0.0.0.2\" area-id=0.0.0.2\n\n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.2 and instance=default6_red] interface=ether2 type=ptp\n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.2 and instance=default6_red] interface=ether3 type=ptp\n/routing/ospf/interface-template add area=[/routing ospf area find area-id=0.0.0.2 and instance=default6_red] interface=loopback2 \n\n/routing/ospf/instance set [/routing/ospf/instance find name=default6_red] redistribute=bgp,bgp-mpls-vpn,vpn,connected,static routing-table=red\n" } TASK [Deploy vrf configuration] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/routeros7.yml for dut TASK [load vrf from /work/netlab_cicd/node_files/dut/vrf] ********************** ok: [dut] TASK [Run commands on CHR] ***************************************************** changed: [dut] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut : ok=26 changed=3 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ r1 Script: initial,ospf r2 Script: initial,ospf r3 Script: initial,ospf r4 Script: initial,ospf The device under test has two VRFs with two interfaces in each VRF. Routers are attached to those interfaces and run OSPF with device under test. Assuming the multi-vrf test case succeeded, this one adds OSPF routing with CE routers. * r1 and r2 should be able to ping each other * r3 and r4 should be able to ping each other * r1 should not be able to reach r3