Creating Device configuration snippets [CREATED] dut: initial,bgp,vrf,bgp.session [CREATED] x1: initial,bgp [CREATED] x2: initial,bgp Config Deploying device configurations [INFO] Executing initial configuration for node x1 [INFO] Executing initial configuration for node x2 [INFO] Executing bgp configuration for node x1 [INFO] Executing bgp configuration for node x2 [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 [Normalize config on bridge-like devices] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [dut] TASK [Find configuration template for normalize] ******************************* ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [dut] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [dut] TASK [Deploy normalize configuration] ****************************************** skipping: [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\n/ip address add interface=loopback address=10.0.0.1/32\n\n\n\n\n/ip/vrf/add place-before=0 name=tenant interfaces=ether3\n\n\n\n/interface ethernet set comment=\"dut -> x1 [external]\" ether2\n\n/ip address add interface=ether2 address=10.1.0.1/30\n/ip address set [find where interface=ether2] comment=\"dut -> x1 [external]\"\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\n/interface ethernet set comment=\"dut -> x2 [external]\" ether3\n\n/ip address add interface=ether3 address=10.1.0.5/30\n/ip address set [find where interface=ether3] comment=\"dut -> x2 [external]\"\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\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=bgp) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut => (item=vrf) TASK [Figure out whether to deploy the module bgp on current device] *********** ok: [dut] TASK [Find configuration template for bgp] ************************************* ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] TASK [Find configuration deployment deploy_script for bgp] ********************* ok: [dut] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => { "msg": "bgp configuration for dut\n=========================================\n\n/routing/bgp/template add name=main as=65000 output.network=bgp-networks\n\n/routing/bgp/template set main router-id=10.0.0.1\n\n\n/routing/bgp/connection add template=main name=10_1_0_2 remote.address=10.1.0.2 remote.as=65100 comment=\"x1\" local.role=ebgp\n\n\n/routing/bgp/connection set [/routing/bgp/connection find name=10_1_0_2] nexthop-choice=force-self\n\n\n/routing/bgp/connection add template=main name=2001_db8_3__2 remote.address=2001:db8:3::2 remote.as=65100 comment=\"x1\" local.role=ebgp\n\n\n/routing/bgp/connection set [/routing/bgp/connection find name=2001_db8_3__2] nexthop-choice=force-self\n\n\n\n\n\n\n\n\n\n\n\n" } TASK [Deploy bgp configuration] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/routeros7.yml for dut TASK [load bgp from /work/netlab_cicd/node_files/dut/bgp] ********************** 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/routing/bgp/vpn add label-allocation-policy=per-vrf vrf=tenant route-distinguisher=65000:1 import.route-targets=65000:1 export.route-targets=65000:1 export.redistribute=bgp,connected,ospf,static,vpn\n\n/routing/bgp/template add name=vrf_tenant as=65000 output.network=bgp-networks-tenant vrf=tenant routing-table=tenant output.redistribute=connected,bgp,bgp-mpls-vpn,vpn\n\n/routing/bgp/template set vrf_tenant router-id=10.0.0.1\n\n\n\n/routing/bgp/connection add template=vrf_tenant name=10_1_0_6 remote.address=10.1.0.6 remote.as=65200 comment=\"x2\" local.role=ebgp\n\n\n\n\n/routing/bgp/connection add template=vrf_tenant name=2001_db8_3_1__3 remote.address=2001:db8:3:1::3 remote.as=65200 comment=\"x2\" local.role=ebgp\n\n\n\n\n\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] ************************************** TASK [Run custom configuration deployment scripts] ***************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-custom-config.yml for dut => (item=bgp.session) TASK [Find configuration template] ********************************************* ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] TASK [Check is the configuration template is a file] *************************** ok: [dut -> localhost] TASK [fail] ******************************************************************** skipping: [dut] TASK [Process template /work/netlab_cicd/node_files/dut/bgp.session for dut] *** skipping: [dut] TASK [Find custom configuration deployment script] ***************************** ok: [dut] TASK [Run the configuration deployment script] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/routeros7.yml for dut TASK [load bgp.session from /work/netlab_cicd/node_files/dut/bgp.session] ****** ok: [dut] TASK [Run commands on CHR] ***************************************************** changed: [dut] PLAY RECAP ********************************************************************* dut : ok=37 changed=4 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ x1 OK: 2 x2 OK: 2 This lab tests the BGP default route origination. The DUT should advertise a default route to X1.