Creating Device configuration snippets [CREATED] dut: initial,routing,vrf [CREATED] x1: initial,routing [CREATED] x2: initial,routing [CREATED] x3: initial,routing Checking Are lab devices ready to be configured? [INFO] Checking lab devices with an Ansible playbook [WARNING]: Could not match supplied host pattern, ignoring: netlab_ready_ssh [WARNING]: Found variable using reserved name: hosts PLAY [Wait for SSH servers] **************************************************** skipping: no hosts matched PLAY [Wait for device-specific conditions] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] TASK [Find device readiness script] ******************************************** ok: [dut] TASK [Wait for device to become ready] ***************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/readiness-check/vyos-clab.yml for dut TASK [wait_for_connection] ***************************************************** ok: [dut] TASK [wait_for] **************************************************************** ok: [dut] PLAY RECAP ********************************************************************* dut : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Config Deploying device configurations [INFO] Executing initial configuration for node x1 (namespace clab- ml-17-x1) [INFO] Executing initial configuration for node x2 (namespace clab- ml-17-x2) [INFO] Executing initial configuration for node x3 (namespace clab- ml-17-x3) [INFO] Executing routing configuration for node x1 (namespace clab- ml-17-x1) [INFO] Executing routing configuration for node x3 (namespace clab- ml-17-x3) [INFO] Executing routing configuration for node x2 (namespace clab- ml-17-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/net101/tools/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/net101/tools/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#!/bin/vbash\nsource /opt/vyatta/etc/functions/script-template\n\nif [ \"$(id -g -n)\" != 'vyattacfg' ] ; then\n exec sg vyattacfg -c \"/bin/vbash $(readlink -f $0) $@\"\nfi\n\n# Configuration items start here\n\nconfigure\nset system host-name 'dut'\n\nset vrf name red table 100\nset vrf name blue table 101\n\nset interfaces dummy dum0 address 10.0.0.1/32\nset interfaces dummy dum0 address 2001:db8:1:1::1/64\n\n\n\nset interfaces ethernet eth1 description 'dut -> x1 [stub]'\n\nset interfaces ethernet eth1 mtu 1500\n\nset interfaces ethernet eth1 address 172.16.0.1/24\n\nset interfaces ethernet eth1 address 2001:db8:2::1/64;\n\nset interfaces ethernet eth1 vrf red\n\n\n\nset interfaces ethernet eth2 description 'dut -> x2 [stub]'\n\nset interfaces ethernet eth2 mtu 1500\n\nset interfaces ethernet eth2 address 172.16.1.1/24\n\nset interfaces ethernet eth2 address 2001:db8:2:1::1/64;\n\nset interfaces ethernet eth2 vrf blue\n\n\n\nset interfaces ethernet eth3 description 'dut -> x3 [stub]'\n\nset interfaces ethernet eth3 mtu 1500\n\nset interfaces ethernet eth3 address 172.16.2.1/24\n\nset interfaces ethernet eth3 address 2001:db8:2:2::1/64;\n\n\n\nset service lldp interface all\n>/dev/null 2>/dev/null set service lldp interface eth0 disable\n>/dev/null 2>/dev/null set service lldp interface eth0 mode disable\n\nset service router-advert interface eth1\nset service router-advert interface eth2\nset service router-advert interface eth3\n\nset service ssh\n\n# Commit, save and exit from subshell\n\ncommit\nsave\nexit\n\n# Restart FRR to pick up the new hostname\nsudo service frr restart\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/vyos.yml for dut TASK [set_fact] **************************************************************** ok: [dut] TASK [template] **************************************************************** changed: [dut] TASK [execute config-initial.sh to deploy initial config from /work/netlab_cicd/node_files/dut/initial] *** 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/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut => (item=routing) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut => (item=vrf) TASK [Figure out whether to deploy the module routing on current device] ******* ok: [dut] TASK [Find configuration template for routing] ********************************* ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] TASK [Find configuration deployment deploy_script for routing] ***************** ok: [dut] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => { "msg": "routing configuration for dut\n=========================================\n\n\n\n\n# Static routing\n\nset vrf name blue protocols static route 172.16.41.0/24 next-hop 172.16.0.2 interface eth1\nset vrf name blue protocols static route 172.16.41.0/24 next-hop 172.16.0.2 vrf red\nset vrf name blue protocols static route6 3fff:cafe:0:1::/64 next-hop 2001:db8:2::2 interface eth1\nset vrf name blue protocols static route6 3fff:cafe:0:1::/64 next-hop 2001:db8:2::2 vrf red\nset vrf name red protocols static route 172.16.42.0/24 next-hop 172.16.1.3 interface eth2\nset vrf name red protocols static route 172.16.42.0/24 next-hop 172.16.1.3 vrf blue\nset vrf name red protocols static route6 3fff:cafe:0:2::/64 next-hop 2001:db8:2:1::3 interface eth2\nset vrf name red protocols static route6 3fff:cafe:0:2::/64 next-hop 2001:db8:2:1::3 vrf blue\nset protocols static route 172.16.42.0/24 next-hop 172.16.1.3 interface eth2\nset protocols static route 172.16.42.0/24 next-hop 172.16.1.3 vrf blue\nset protocols static route6 3fff:cafe:0:2::/64 next-hop 2001:db8:2:1::3 interface eth2\nset protocols static route6 3fff:cafe:0:2::/64 next-hop 2001:db8:2:1::3 vrf blue\nset vrf name blue protocols static route 172.16.40.0/24 next-hop 172.16.2.4 interface eth3\nset vrf name blue protocols static route 172.16.40.0/24 next-hop 172.16.2.4 vrf default\nset vrf name blue protocols static route6 3fff:cafe::/64 next-hop 2001:db8:2:2::4 interface eth3\nset vrf name blue protocols static route6 3fff:cafe::/64 next-hop 2001:db8:2:2::4 vrf default\n" } TASK [Deploy routing configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/vyos.yml for dut TASK [set_fact] **************************************************************** ok: [dut] TASK [template] **************************************************************** changed: [dut] TASK [execute config-routing.sh to deploy routing config from /work/netlab_cicd/node_files/dut/routing] *** 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# Enter vrf sublevel\nedit vrf name red\n\n\n\n# Back to root level\ntop\nedit vrf name blue\n\n\n\n# Back to root level\ntop\n" } TASK [Deploy vrf configuration] ************************************************ included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/vyos.yml for dut TASK [set_fact] **************************************************************** ok: [dut] TASK [template] **************************************************************** changed: [dut] TASK [execute config-vrf.sh to deploy vrf config from /work/netlab_cicd/node_files/dut/vrf] *** changed: [dut] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut : ok=33 changed=6 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ x1 OK: 2 x2 OK: 2 x3 OK: 2 Use this topology to test inter- VRF IPv4 and IPv6 static routes. DUT has to have static routes for loopback addresses of X1 and X2.