Creating Device configuration snippets [CREATED] dut_a: initial,ospf [CREATED] dut_c: initial,ospf,bgp [CREATED] probe: initial,ospf [CREATED] xf: initial,bgp Config Deploying device configurations [INFO] Executing initial configuration for node probe [INFO] Executing initial configuration for node xf [INFO] Executing bgp configuration for node xf [INFO] Executing ospf configuration for node probe [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_a] ok: [dut_c] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut_a, dut_c TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [dut_a] ok: [dut_c] TASK [Find configuration template for normalize] ******************************* ok: [dut_a] ok: [dut_c] TASK [fail] ******************************************************************** skipping: [dut_a] skipping: [dut_c] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [dut_a] ok: [dut_c] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [dut_a] skipping: [dut_c] TASK [Deploy normalize configuration] ****************************************** skipping: [dut_a] skipping: [dut_c] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut_a, dut_c TASK [Figure out whether to deploy the module initial on current device] ******* ok: [dut_a] ok: [dut_c] TASK [Find configuration template for initial] ********************************* ok: [dut_a] ok: [dut_c] TASK [fail] ******************************************************************** skipping: [dut_a] skipping: [dut_c] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [dut_a] ok: [dut_c] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_a] => { "msg": "initial configuration for dut_a\n=========================================\n#!/bin/sh\n#\nset -e\nset -x\n\nhostname dut-a\n#\n# Build hosts file\n#\n#\ncat <<'SCRIPT' >/tmp/hosts\n#\n# Created by netlab initial\n#\n10.0.0.1 dut-a dut_a\n10.1.0.2 vio1.dut_a\n10.0.0.2 dut-c dut_c\n10.1.0.6 vio1.dut_c\n10.1.0.9 vio2.dut_c\n10.0.0.3 probe\n10.1.0.1 eth1.probe\n10.1.0.5 eth2.probe\n10.0.0.4 xf\n10.1.0.10 eth1.xf\nSCRIPT\ngrep \"Created by netlab\" /etc/hosts || uniq /tmp/hosts >>/etc/hosts\n\n#\n# Enable forwarding\n#\nsysctl net.inet.ip.forwarding=1\nsysctl net.inet6.ip6.forwarding=1\necho -n > /etc/rad.conf\n\n#\n# Interface configuration\n#\nifconfig lo0 inet 10.0.0.1/32 alias\n\nifconfig vio1 -inet\nifconfig vio1 -inet6\nifconfig vio1 inet 10.1.0.2/30 \nifconfig vio1 description \"dut_a -> probe\"\n\n\n#\n# (re-)start RA daemon\n#\npkill -q rad || true\nrad\n" } ok: [dut_c] => { "msg": "initial configuration for dut_c\n=========================================\n#!/bin/sh\n#\nset -e\nset -x\n\nhostname dut-c\n#\n# Build hosts file\n#\n#\ncat <<'SCRIPT' >/tmp/hosts\n#\n# Created by netlab initial\n#\n10.0.0.1 dut-a dut_a\n10.1.0.2 vio1.dut_a\n10.0.0.2 dut-c dut_c\n10.1.0.6 vio1.dut_c\n10.1.0.9 vio2.dut_c\n10.0.0.3 probe\n10.1.0.1 eth1.probe\n10.1.0.5 eth2.probe\n10.0.0.4 xf\n10.1.0.10 eth1.xf\nSCRIPT\ngrep \"Created by netlab\" /etc/hosts || uniq /tmp/hosts >>/etc/hosts\n\n#\n# Enable forwarding\n#\nsysctl net.inet.ip.forwarding=1\nsysctl net.inet6.ip6.forwarding=1\necho -n > /etc/rad.conf\n\n#\n# Interface configuration\n#\nifconfig lo0 inet 10.0.0.2/32 alias\n\nifconfig vio1 -inet\nifconfig vio1 -inet6\nifconfig vio1 inet 10.1.0.6/30 \nifconfig vio1 description \"dut_c -> probe\"\n\nifconfig vio2 -inet\nifconfig vio2 -inet6\nifconfig vio2 inet 10.1.0.9/30 \nifconfig vio2 description \"dut_c -> xf\"\n\n\n#\n# (re-)start RA daemon\n#\npkill -q rad || true\nrad\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/openbsd.yml for dut_a, dut_c TASK [template] **************************************************************** changed: [dut_a] changed: [dut_c] TASK [Execute /tmp/config.sh to deploy initial config from /work/netlab_cicd/other_vm/node_files/dut_a/initial] *** changed: [dut_a] changed: [dut_c] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut_a] ok: [dut_c] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut_a, dut_c => (item=ospf) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut_a, dut_c => (item=bgp) TASK [Figure out whether to deploy the module ospf on current device] ********** ok: [dut_a] ok: [dut_c] TASK [Find configuration template for ospf] ************************************ ok: [dut_a] ok: [dut_c] TASK [fail] ******************************************************************** skipping: [dut_a] skipping: [dut_c] TASK [Find configuration deployment deploy_script for ospf] ******************** ok: [dut_a] ok: [dut_c] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_a] => { "msg": "ospf configuration for dut_a\n=========================================\n#!/bin/sh\ncat <<'OSPFD_CONF' >/etc/ospfd.conf\nrouter-id 10.0.0.1\nspf-delay msec 100\nspf-holdtime msec 200\nredistribute default set { metric 40 type 2 }\n\narea 0.0.0.0 {\n interface lo0:10.0.0.1 {\n }\n interface vio1 {\n type p2p\n }\n}\n \nOSPFD_CONF\n\nchmod 640 /etc/ospfd.conf\nrcctl enable ospfd\nrcctl restart ospfd\n\n" } ok: [dut_c] => { "msg": "ospf configuration for dut_c\n=========================================\n#!/bin/sh\ncat <<'OSPFD_CONF' >/etc/ospfd.conf\nrouter-id 10.0.0.2\nspf-delay msec 100\nspf-holdtime msec 200\nredistribute default set { metric 20 type 1 }\n\narea 0.0.0.0 {\n interface lo0:10.0.0.2 {\n }\n interface vio1 {\n type p2p\n metric 10\n }\n}\n \nOSPFD_CONF\n\nchmod 640 /etc/ospfd.conf\nrcctl enable ospfd\nrcctl restart ospfd\n\n" } TASK [Deploy ospf configuration] *********************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/openbsd.yml for dut_a, dut_c TASK [template] **************************************************************** changed: [dut_a] changed: [dut_c] TASK [Execute /tmp/config.sh to deploy ospf config from /work/netlab_cicd/other_vm/node_files/dut_a/ospf] *** changed: [dut_a] changed: [dut_c] TASK [Figure out whether to deploy the module bgp on current device] *********** ok: [dut_a] ok: [dut_c] TASK [Find configuration template for bgp] ************************************* skipping: [dut_a] ok: [dut_c] TASK [fail] ******************************************************************** skipping: [dut_a] skipping: [dut_c] TASK [Find configuration deployment deploy_script for bgp] ********************* skipping: [dut_a] ok: [dut_c] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [dut_a] ok: [dut_c] => { "msg": "bgp configuration for dut_c\n=========================================\n#!/bin/sh\n\ncat </etc/bgpd.conf\nAS 65000\nrouter-id 10.0.0.2\nlog updates\n\n## network announcements\n\nnetwork 10.0.0.2/32\n\n## neighbors and groups\n\nneighbor 10.1.0.10 {\n remote-as 65100\n descr \"xf\"\n}\n\n## rules\n\nmatch from ebgp set { nexthop self }\nmatch to ebgp set { ext-community delete * * }\n\nallow from any\nallow to any\n\nBGPD_CONF\n\nchmod 640 /etc/bgpd.conf\nrcctl enable bgpd\nrcctl restart bgpd\n\n" } TASK [Deploy bgp configuration] ************************************************ skipping: [dut_a] included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/openbsd.yml for dut_c TASK [template] **************************************************************** changed: [dut_c] TASK [Execute /tmp/config.sh to deploy bgp config from /work/netlab_cicd/other_vm/node_files/dut_c/bgp] *** changed: [dut_c] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut_a : ok=24 changed=4 unreachable=0 failed=0 skipped=10 rescued=0 ignored=0 dut_c : ok=30 changed=6 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ probe Script: initial,ospf xf Script: initial,bgp This lab tests the OSPF default route origination. The devices under test should originate the default route, one always, the other one based one BGP default route.