Creating Device configuration snippets [CREATED] dut: initial,bgp,bgp.session [CREATED] x1: normalize,initial,bgp,bgp.session [CREATED] x2: normalize,initial,bgp,bgp.session Checking Are lab devices ready to be configured? [INFO] Checking SSH server(s) on dut [SSH] SSH server on node dut (device iol) is ready after 28.4 seconds Config Deploying device configurations [WARNING]: Found variable using reserved name: hosts PLAY [Deploy initial device configuration] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] ok: [x1] ok: [x2] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, x1, x2 TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [dut] ok: [x1] ok: [x2] TASK [Find configuration template for normalize] ******************************* ok: [dut] ok: [x1] ok: [x2] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [dut] ok: [x2] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [dut] ok: [x1] => { "msg": "normalize configuration for x1\n=========================================\n!\ninterface Ethernet1\n shutdown\n mac-address caf0.0002.0001\n" } ok: [x2] => { "msg": "normalize configuration for x2\n=========================================\n!\ninterface Ethernet1\n shutdown\n mac-address caf0.0003.0001\n" } TASK [Deploy normalize configuration] ****************************************** skipping: [dut] included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1, x2 TASK [eos_config: deploying normalize from /work/netlab_cicd/cisco_c/node_files/x1/normalize] *** [WARNING]: To ensure idempotency and correct diff the input configuration lines should be similar to how they appear if present in the running configuration on device including the indentation changed: [x1] changed: [x2] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, x1, x2 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [x2] ok: [dut] ok: [x1] TASK [Find configuration template for initial] ********************************* ok: [dut] ok: [x2] ok: [x1] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [x2] ok: [dut] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => { "msg": "initial configuration for dut\n=========================================\nhostname dut\n!\nno ip domain lookup\nlogging buffered 256000\n\n!\nlldp run\n!\nip host x1 10.0.0.2 10.1.0.2 2001:db8:3::2\nip host x2 10.0.0.3 10.1.0.6 2001:db8:3:1::3\n!\nip routing\n!\nipv6 unicast-routing\n!\n!\ninterface Loopback0\n ip address 10.0.0.1 255.255.255.255\n!\ninterface Ethernet0/0\n no lldp transmit\n no lldp receive\n!\ninterface Ethernet0/1\n description dut -> x1 [external]\n ip address 10.1.0.1 255.255.255.252\n ipv6 nd ra interval 5\n ipv6 address 2001:DB8:3::1/64\n no shutdown\n!\ninterface Ethernet0/2\n description dut -> x2 [external]\n ip address 10.1.0.5 255.255.255.252\n ipv6 nd ra interval 5\n ipv6 address 2001:DB8:3:1::1/64\n no shutdown\n!\n!\nline vty 0 4\n exec-timeout 0 0 \n!\nno banner exec\nno banner login\nno banner incoming\n" } ok: [x1] => { "msg": "initial configuration for x1\n=========================================\nhostname x1\n!\nlogging monitor debugging\naaa authorization exec default local\n!\nlldp run\nip routing\nipv6 unicast-routing\n!\n!\nip host dut 10.0.0.1 10.1.0.1 10.1.0.5\nip host x2 10.0.0.3 10.1.0.6\nipv6 host dut 2001:db8:3::1\nipv6 host x2 2001:db8:3:1::3\n!\ninterface Management1\n no lldp transmit\n no lldp receive\n!\ninterface Loopback0\n ip address 10.0.0.2/32\n!\ninterface Ethernet1\n no switchport\n description x1 -> dut [external]\n ip address 10.1.0.2/30\n ipv6 nd ra interval 5\n ipv6 address 2001:db8:3::2/64\n mac-address caf0.0002.0001\n!\n no shutdown\n!\n" } ok: [x2] => { "msg": "initial configuration for x2\n=========================================\nhostname x2\n!\nlogging monitor debugging\naaa authorization exec default local\n!\nlldp run\nip routing\nipv6 unicast-routing\n!\n!\nip host dut 10.0.0.1 10.1.0.1 10.1.0.5\nip host x1 10.0.0.2 10.1.0.2\nipv6 host dut 2001:db8:3::1\nipv6 host x1 2001:db8:3::2\n!\ninterface Management1\n no lldp transmit\n no lldp receive\n!\ninterface Loopback0\n ip address 10.0.0.3/32\n!\ninterface Ethernet1\n no switchport\n description x2 -> dut [external]\n ip address 10.1.0.6/30\n ipv6 nd ra interval 5\n ipv6 address 2001:db8:3:1::3/64\n mac-address caf0.0003.0001\n!\n no shutdown\n!\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for dut included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1, x2 TASK [ios_config: deploying initial from /work/netlab_cicd/cisco_c/node_files/dut/initial] *** changed: [dut] TASK [eos_config: deploying initial from /work/netlab_cicd/cisco_c/node_files/x1/initial] *** changed: [x2] changed: [x1] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [x2] ok: [dut] ok: [x1] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, x1, x2 => (item=bgp) TASK [Figure out whether to deploy the module bgp on current device] *********** ok: [dut] ok: [x1] ok: [x2] TASK [Find configuration template for bgp] ************************************* ok: [dut] ok: [x1] ok: [x2] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Find configuration deployment deploy_script for bgp] ********************* ok: [x1] ok: [dut] ok: [x2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [x1] => { "msg": "bgp configuration for x1\n=========================================\n!\n!\nrouter bgp 65100\n bgp advertise-inactive\n bgp log-neighbor-changes\n no bgp default ipv4-unicast\n no bgp default ipv6-unicast\n router-id 10.0.0.2\n!\n neighbor 10.1.0.1 remote-as 65000\n neighbor 10.1.0.1 description dut\n neighbor 10.1.0.1 send-community standard large \n!\n neighbor 2001:db8:3::1 remote-as 65000\n neighbor 2001:db8:3::1 description dut\n neighbor 2001:db8:3::1 send-community standard large \n!\n!\n address-family ipv4\n\n!\n network 10.0.0.2/32\n!\n neighbor 10.1.0.1 activate\n neighbor 10.1.0.1 next-hop-self\n!\n address-family ipv6\n\n!\n!\n neighbor 2001:db8:3::1 activate\n neighbor 2001:db8:3::1 next-hop-self\n" } ok: [x2] => { "msg": "bgp configuration for x2\n=========================================\n!\n!\nrouter bgp 65101\n bgp advertise-inactive\n bgp log-neighbor-changes\n no bgp default ipv4-unicast\n no bgp default ipv6-unicast\n router-id 10.0.0.3\n!\n neighbor 10.1.0.5 remote-as 65000\n neighbor 10.1.0.5 description dut\n neighbor 10.1.0.5 send-community standard large \n!\n neighbor 2001:db8:3:1::1 remote-as 65000\n neighbor 2001:db8:3:1::1 description dut\n neighbor 2001:db8:3:1::1 send-community standard large \n!\n!\n address-family ipv4\n\n!\n network 10.0.0.3/32\n!\n neighbor 10.1.0.5 activate\n neighbor 10.1.0.5 next-hop-self\n!\n address-family ipv6\n\n!\n!\n neighbor 2001:db8:3:1::1 activate\n neighbor 2001:db8:3:1::1 next-hop-self\n" } ok: [dut] => { "msg": "bgp configuration for dut\n=========================================\n!\nip bgp-community new-format\n!\nrouter bgp 65000\n no bgp default ipv4-unicast\n bgp update-delay 5\n bgp nopeerup-delay cold-boot 1\n bgp nopeerup-delay user-initiated 1\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 65101\n neighbor 10.1.0.6 description x2\n\n neighbor 2001:db8:3:1::3 remote-as 65101\n neighbor 2001:db8:3:1::3 description x2\n\n!\n address-family ipv4\n bgp scan-time 5\n!\n network 10.0.0.1 mask 255.255.255.255\n\n!\n neighbor 10.1.0.2 activate\n neighbor 10.1.0.2 advertisement-interval 0\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 0\n neighbor 10.1.0.6 send-community standard\n\n address-family ipv6\n bgp scan-time 5\n!\n!\n neighbor 2001:db8:3::2 activate\n neighbor 2001:db8:3::2 advertisement-interval 0\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 0\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/eos.yml for x1, x2 included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for dut TASK [eos_config: deploying bgp from /work/netlab_cicd/cisco_c/node_files/x1/bgp] *** changed: [x1] changed: [x2] TASK [ios_config: deploying bgp from /work/netlab_cicd/cisco_c/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, x1, x2 => (item=bgp.session) TASK [Find configuration template] ********************************************* ok: [dut] ok: [x1] ok: [x2] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Check is the configuration template is a file] *************************** ok: [x2 -> localhost] ok: [x1 -> localhost] ok: [dut -> localhost] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Process template /work/netlab_cicd/cisco_c/node_files/dut/bgp.session for dut] *** skipping: [dut] skipping: [x2] skipping: [x1] TASK [debug] ******************************************************************* skipping: [dut] skipping: [x1] skipping: [x2] TASK [debug] ******************************************************************* skipping: [dut] skipping: [x1] skipping: [x2] TASK [Find custom configuration deployment script] ***************************** ok: [dut] ok: [x1] ok: [x2] TASK [Run the configuration deployment script] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/ios.yml for dut included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1, x2 TASK [ios_config: deploying bgp.session from /work/netlab_cicd/cisco_c/node_files/dut/bgp.session] *** changed: [dut] TASK [eos_config: deploying bgp.session from /work/netlab_cicd/cisco_c/node_files/x1/bgp.session] *** changed: [x2] changed: [x1] PLAY RECAP ********************************************************************* dut : ok=26 changed=3 unreachable=0 failed=0 skipped=10 rescued=0 ignored=0 x1 : ok=29 changed=4 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 x2 : ok=29 changed=4 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 This lab tests the BGP TCP-AO password functionality. The EBGP session between the probe and the lab device should be established.