Creating Device configuration snippets [CREATED] dut: initial,bgp,bgp.session [CREATED] r2: initial,bgp,bgp.session [CREATED] r3: initial,bgp [CREATED] rs: initial,bgp,bgp.session Config Deploying device configurations [INFO] Executing initial configuration for node r2 [INFO] Executing initial configuration for node r3 [INFO] Executing initial configuration for node rs [INFO] Executing bgp configuration for node r3 [INFO] Executing bgp configuration for node rs [INFO] Executing bgp configuration for node r2 [INFO] Executing bgp.session configuration for node rs [INFO] Executing bgp.session configuration for node r2 [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#!/bin/sh\n#\nset -e\nset -x\n\nhostname dut\n#\n# Build hosts file\n#\n#\ncat <<'SCRIPT' >/tmp/hosts\n#\n# Created by netlab initial\n#\n10.0.0.1 dut\n172.16.0.1 vio1.dut\n10.1.0.1 vio2.dut\n10.0.0.10 r2\n172.16.0.10 eth1.r2\n10.0.0.2 r3\n10.1.0.2 eth1.r3\n10.0.0.3 rs\n172.16.0.3 eth1.rs\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 172.16.0.1/24 \nifconfig vio1 description \"dut -> [r2,rs]\"\n\nifconfig vio2 -inet\nifconfig vio2 -inet6\nifconfig vio2 inet 10.1.0.1/30 \nifconfig vio2 description \"dut -> r3\"\n\n\n#\n# (re-)start RA daemon\n#\npkill -q rad || true\nrad\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/openbsd.yml for dut TASK [template] **************************************************************** changed: [dut] TASK [Execute /tmp/config.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/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut => (item=bgp) 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#!/bin/sh\n\ncat </etc/bgpd.conf\nAS 65000\nrouter-id 10.0.0.1\nlog updates\n\n## network announcements\n\nnetwork 10.0.0.1/32\n\n## neighbors and groups\n\nneighbor 172.16.0.3 {\n remote-as 65100\n descr \"rs\"\n enforce neighbor-as no\n}\nneighbor 10.1.0.2 {\n remote-as 65002\n descr \"r3\"\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] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/openbsd.yml for dut TASK [template] **************************************************************** changed: [dut] TASK [Execute /tmp/config.sh to deploy bgp config from /work/netlab_cicd/node_files/dut/bgp] *** 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/openbsd.yml for dut TASK [template] **************************************************************** changed: [dut] TASK [Execute /tmp/config.sh to deploy bgp.session config from /work/netlab_cicd/node_files/dut/bgp.session] *** changed: [dut] PLAY RECAP ********************************************************************* dut : ok=29 changed=6 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ r2 Script: initial,bgp,bgp.session r3 Script: initial,bgp rs Script: initial,bgp,bgp.session Use this topology to test the 'disable first AS check ' functionality. The DUT has to accept EBGP updates where the first AS in the AS path is not equal to the neighbor's AS (the neighbor is a route server).