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#\n2001:db8:1:1::1 dut-a dut_a\n2001:db8:3::1 vio1.dut_a\n2001:db8:1:2::1 dut-c dut_c\n2001:db8:3:1::2 vio1.dut_c\n2001:db8:3:2::2 vio2.dut_c\n2001:db8:1:3::1 probe\n2001:db8:3::3 eth1.probe\n2001:db8:3:1::3 eth2.probe\n2001:db8:1:4::1 xf\n2001:db8:3:2::4 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#\necho interface lo0 >> /etc/rad.conf\nifconfig lo0 inet6 2001:db8:1:1::1/64\n\nifconfig vio1 -inet\nifconfig vio1 -inet6\necho interface vio1 >> /etc/rad.conf\nifconfig vio1 inet6 2001:db8:3::1/64\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#\n2001:db8:1:1::1 dut-a dut_a\n2001:db8:3::1 vio1.dut_a\n2001:db8:1:2::1 dut-c dut_c\n2001:db8:3:1::2 vio1.dut_c\n2001:db8:3:2::2 vio2.dut_c\n2001:db8:1:3::1 probe\n2001:db8:3::3 eth1.probe\n2001:db8:3:1::3 eth2.probe\n2001:db8:1:4::1 xf\n2001:db8:3:2::4 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#\necho interface lo0 >> /etc/rad.conf\nifconfig lo0 inet6 2001:db8:1:2::1/64\n\nifconfig vio1 -inet\nifconfig vio1 -inet6\necho interface vio1 >> /etc/rad.conf\nifconfig vio1 inet6 2001:db8:3:1::2/64\nifconfig vio1 description \"dut_c -> probe\"\n\nifconfig vio2 -inet\nifconfig vio2 -inet6\necho interface vio2 >> /etc/rad.conf\nifconfig vio2 inet6 2001:db8:3:2::2/64\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_c] changed: [dut_a] TASK [Execute /tmp/config.sh to deploy initial config from /work/netlab_cicd/other_vm/node_files/dut_a/initial] *** changed: [dut_c] changed: [dut_a] 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/ospf6d.conf\nrouter-id 10.0.0.1\nspf-delay 1\nspf-holdtime 1\nredistribute default set { metric 40 type 2 }\n\narea 0.0.0.0 {\n interface lo0 {\n }\n interface vio1 {\n type p2p\n }\n}\n \nOSPFD_CONF\n\nchmod 640 /etc/ospf6d.conf\nrcctl enable ospf6d\nrcctl restart ospf6d\n\n" } ok: [dut_c] => { "msg": "ospf configuration for dut_c\n=========================================\n#!/bin/sh\ncat <<'OSPFD_CONF' >/etc/ospf6d.conf\nrouter-id 10.0.0.2\nspf-delay 1\nspf-holdtime 1\nredistribute default set { metric 20 type 1 }\n\narea 0.0.0.0 {\n interface lo0 {\n }\n interface vio1 {\n type p2p\n metric 10\n }\n}\n \nOSPFD_CONF\n\nchmod 640 /etc/ospf6d.conf\nrcctl enable ospf6d\nrcctl restart ospf6d\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_c] changed: [dut_a] TASK [Execute /tmp/config.sh to deploy ospf config from /work/netlab_cicd/other_vm/node_files/dut_a/ospf] *** changed: [dut_c] changed: [dut_a] 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 2001:db8:1:2::/64\n\n## neighbors and groups\n\nneighbor 2001:db8:3:2::4 {\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.