Creating Device configuration snippets [CREATED] dut: initial,bgp,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 [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=========================================\nhostname dut\n!\nlldp\n!\n\n\n\nip dns host x1 172.42.42.1\nip dns host x1 2001:db8:a01::1\nip dns host x2 172.42.43.1\nip dns host x2 2001:db8:3:1::3\n\n!\ninterface mgmt\n no lldp transmit\n no lldp receive\n!\n\n\ninterface loopback 0\n ip address 10.0.0.1/32\n no shutdown\n!\n\ninterface 1/1/1\n shutdown\n mtu 9198\n description dut -> x1 [external]\n ip address 10.1.0.1/30\n ipv6 address 2001:db8:3::1/64\n no ipv6 nd suppress-ra\n ipv6 nd ra min-interval 3\n ipv6 nd ra max-interval 4\n no shutdown\n!\n\ninterface 1/1/2\n shutdown\n mtu 9198\n description dut -> x2 [external]\n ip address 10.1.0.5/30\n ipv6 address 2001:db8:3:1::1/64\n no ipv6 nd suppress-ra\n ipv6 nd ra min-interval 3\n ipv6 nd ra max-interval 4\n no shutdown\n!\n!\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/arubacx.yml for dut TASK [tempfile] **************************************************************** changed: [dut -> localhost] TASK [template] **************************************************************** changed: [dut -> localhost] TASK [aoscx_config: deploying initial from /work/netlab_cicd/node_files/dut/initial] *** changed: [dut] TASK [file] ******************************************************************** changed: [dut -> localhost] 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!\n!\nrouter bgp 64500\n bgp log-neighbor-changes\n timers bgp connect-retry 10\n bgp router-id 10.0.0.1\n neighbor 10.1.0.2 remote-as 65100\n neighbor 10.1.0.2 description x1\n\n neighbor 2001:db8:3::2 remote-as 65100\n neighbor 2001:db8:3::2 description x1\n\n neighbor 10.1.0.6 remote-as 64507\n neighbor 10.1.0.6 description x2\n\n neighbor 2001:db8:3:1::3 remote-as 64507\n neighbor 2001:db8:3:1::3 description x2\n\n!\n address-family ipv4 unicast\n!\n network 10.0.0.1/32\n!\n neighbor 10.1.0.2 activate\n neighbor 10.1.0.2 advertisement-interval 1\n neighbor 10.1.0.2 send-community standard\n\n neighbor 10.1.0.6 activate\n neighbor 10.1.0.6 advertisement-interval 1\n neighbor 10.1.0.6 send-community standard\n\n address-family ipv6 unicast\n!\n!\n neighbor 2001:db8:3::2 activate\n neighbor 2001:db8:3::2 advertisement-interval 1\n neighbor 2001:db8:3::2 send-community standard\n\n neighbor 2001:db8:3:1::3 activate\n neighbor 2001:db8:3:1::3 advertisement-interval 1\n neighbor 2001:db8:3:1::3 send-community standard\n\n" } TASK [Deploy bgp configuration] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/arubacx.yml for dut TASK [tempfile] **************************************************************** changed: [dut -> localhost] TASK [template] **************************************************************** changed: [dut -> localhost] TASK [aoscx_config: deploying bgp from /work/netlab_cicd/node_files/dut/bgp] *** changed: [dut] TASK [file] ******************************************************************** changed: [dut -> localhost] 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 [debug] ******************************************************************* skipping: [dut] TASK [debug] ******************************************************************* 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/arubacx.yml for dut TASK [tempfile] **************************************************************** changed: [dut -> localhost] TASK [template] **************************************************************** changed: [dut -> localhost] TASK [aoscx_config: deploying bgp.session from /work/netlab_cicd/node_files/dut/bgp.session] *** changed: [dut] TASK [file] ******************************************************************** changed: [dut -> localhost] PLAY RECAP ********************************************************************* dut : ok=31 changed=12 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ x1 Script: initial,bgp x2 Script: initial,bgp Use this topology to test the 'remove private AS' functionality. The DUT has to remove AS 65100 from outgoing updates sent to X2, X2 to accept the BGP prefix advertised by X1.