Creating Device configuration snippets [CREATED] dut: initial,routing,ospf,bgp,vrf,bgp.policy [CREATED] probe: initial,routing,ospf,bgp [CREATED] x1: initial,routing,bgp [CREATED] x2: initial,routing,bgp [CREATED] v1: initial,routing,bgp [CREATED] v2: initial,routing,bgp,bgp.policy [CREATED] vp: initial,routing,bgp Config Deploying device configurations [INFO] Executing initial configuration for node probe [INFO] Executing initial configuration for node x1 [INFO] Executing initial configuration for node x2 [INFO] Executing initial configuration for node v1 [INFO] Executing initial configuration for node v2 [INFO] Executing initial configuration for node vp [INFO] Executing routing configuration for node x2 [INFO] Executing routing configuration for node v2 [INFO] Executing routing configuration for node x1 [INFO] Executing routing configuration for node vp [INFO] Executing routing configuration for node v1 [INFO] Executing routing configuration for node probe [INFO] Executing bgp configuration for node v2 [INFO] Executing bgp configuration for node x2 [INFO] Executing bgp configuration for node x1 [INFO] Executing bgp configuration for node vp [INFO] Executing bgp configuration for node v1 [INFO] Executing ospf configuration for node probe [INFO] Executing bgp.policy configuration for node v2 [INFO] Executing bgp 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] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/net101/tools/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/net101/tools/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\nvrf customer\n rd 65000:1\n!\n\n address-family ipv4 unicast\n route-target import 65000:1\n route-target export 65000:1\n exit-address-family\n address-family ipv6 unicast\n route-target import 65000:1\n route-target export 65000:1\n exit-address-family\n\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 ipv6 address 2001:db8:1: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\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\ninterface 1/1/3\n shutdown\n mtu 9198\n description dut -> probe\n ip address 10.1.0.9/30\n ipv6 address 2001:db8:3:2::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/4\n shutdown\n mtu 9198\n vrf attach customer\n description dut -> v1 [external]\n ip address 10.1.0.13/30\n ipv6 address 2001:db8:3: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/5\n shutdown\n mtu 9198\n vrf attach customer\n description dut -> v2 [external]\n ip address 10.1.0.17/30\n ipv6 address 2001:db8:3:4::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/6\n shutdown\n mtu 9198\n vrf attach customer\n description dut -> vp [external]\n ip address 10.1.0.21/30\n ipv6 address 2001:db8:3:5::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/net101/tools/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/other_vm/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/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut => (item=routing) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut => (item=ospf) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut => (item=bgp) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut => (item=vrf) TASK [Figure out whether to deploy the module routing on current device] ******* ok: [dut] TASK [Find configuration template for routing] ********************************* ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] TASK [Find configuration deployment deploy_script for routing] ***************** ok: [dut] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => { "msg": "routing configuration for dut\n=========================================\n!\n!\n!\n!\n!\nroute-map lp_17-ipv4 permit seq 10\n set local-preference 17\n!\nroute-map lp_17-ipv6 permit seq 10\n set local-preference 17\n!\nroute-map lp_17-vpnv4 permit seq 10\n set local-preference 17\n!\nroute-map lp_17-vpnv6 permit seq 10\n set local-preference 17\n!\nroute-map lp_42-ipv4 permit seq 10\n set local-preference 42\n!\nroute-map lp_42-ipv6 permit seq 10\n set local-preference 42\n!\nroute-map lp_42-vpnv4 permit seq 10\n set local-preference 42\n!\nroute-map lp_42-vpnv6 permit seq 10\n set local-preference 42\n \n!\n! Static routes\n!\n" } TASK [Deploy routing configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/arubacx.yml for dut TASK [tempfile] **************************************************************** changed: [dut -> localhost] TASK [template] **************************************************************** changed: [dut -> localhost] TASK [aoscx_config: deploying routing from /work/netlab_cicd/other_vm/node_files/dut/routing] *** changed: [dut] TASK [file] ******************************************************************** changed: [dut -> localhost] TASK [Figure out whether to deploy the module ospf on current device] ********** ok: [dut] TASK [Find configuration template for ospf] ************************************ ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] TASK [Find configuration deployment deploy_script for ospf] ******************** ok: [dut] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => { "msg": "ospf configuration for dut\n=========================================\n!\nrouter ospf 1\n router-id 10.0.0.1\n\n\n\n\n\n area 0.0.0.0\n area 0.0.0.0\n\n!\ninterface loopback 0\n ip ospf 1 area 0.0.0.0\n!\ninterface 1/1/3\n! dut -> probe\n ip ospf 1 area 0.0.0.0\n ip ospf network point-to-point\n!\n!\nrouter ospfv3 1\n router-id 10.0.0.1\n\n\n\n\n area 0.0.0.0\n area 0.0.0.0\n\n!\ninterface loopback 0\n ipv6 ospfv3 1 area 0.0.0.0\n!\ninterface 1/1/3\n! dut -> probe\n ipv6 ospfv3 1 area 0.0.0.0\n ipv6 ospfv3 network point-to-point\n!\n" } TASK [Deploy ospf configuration] *********************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/arubacx.yml for dut TASK [tempfile] **************************************************************** changed: [dut -> localhost] TASK [template] **************************************************************** changed: [dut -> localhost] TASK [aoscx_config: deploying ospf from /work/netlab_cicd/other_vm/node_files/dut/ospf] *** changed: [dut] TASK [file] ******************************************************************** changed: [dut -> localhost] 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 65000\n bgp log-neighbor-changes\n timers bgp connect-retry 10\n bgp router-id 10.0.0.1\n neighbor 10.0.0.2 remote-as 65000\n neighbor 10.0.0.2 description probe\n neighbor 10.0.0.2 update-source loopback 0\n\n neighbor 2001:db8:1:2::1 remote-as 65000\n neighbor 2001:db8:1:2::1 description probe\n neighbor 2001:db8:1:2::1 update-source loopback 0\n\n neighbor 10.1.0.2 remote-as 65100\n neighbor 10.1.0.2 description x1\n\n neighbor 2001:db8:3::3 remote-as 65100\n neighbor 2001:db8:3::3 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::4 remote-as 65101\n neighbor 2001:db8:3:1::4 description x2\n\n!\n address-family ipv4 unicast\n!\n network 10.0.0.1/32\n!\n neighbor 10.0.0.2 activate\n neighbor 10.0.0.2 advertisement-interval 1\n neighbor 10.0.0.2 send-community both\n neighbor 10.0.0.2 next-hop-self\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 network 2001:db8:1:1::/64\n!\n neighbor 2001:db8:1:2::1 activate\n neighbor 2001:db8:1:2::1 advertisement-interval 1\n neighbor 2001:db8:1:2::1 send-community both\n neighbor 2001:db8:1:2::1 next-hop-self\n\n neighbor 2001:db8:3::3 activate\n neighbor 2001:db8:3::3 advertisement-interval 1\n neighbor 2001:db8:3::3 send-community standard\n\n neighbor 2001:db8:3:1::4 activate\n neighbor 2001:db8:3:1::4 advertisement-interval 1\n neighbor 2001:db8:3:1::4 send-community standard\n\n" } TASK [Deploy bgp configuration] ************************************************ included: /home/pipi/net101/tools/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/other_vm/node_files/dut/bgp] *** changed: [dut] TASK [file] ******************************************************************** changed: [dut -> localhost] TASK [Figure out whether to deploy the module vrf on current device] *********** ok: [dut] TASK [Find configuration template for vrf] ************************************* ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] TASK [Find configuration deployment deploy_script for vrf] ********************* ok: [dut] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => { "msg": "vrf configuration for dut\n=========================================\n\n!\nrouter bgp 65000\n vrf customer\n bgp router-id 10.0.0.1\n\n neighbor 10.1.0.14 remote-as 65200\n neighbor 10.1.0.14 description v1\n\n neighbor 10.1.0.18 remote-as 65201\n neighbor 10.1.0.18 description v2\n\n neighbor 10.1.0.22 remote-as 65202\n neighbor 10.1.0.22 description vp\n\n neighbor 2001:db8:3:3::5 remote-as 65200\n neighbor 2001:db8:3:3::5 description v1\n\n neighbor 2001:db8:3:4::6 remote-as 65201\n neighbor 2001:db8:3:4::6 description v2\n\n neighbor 2001:db8:3:5::7 remote-as 65202\n neighbor 2001:db8:3:5::7 description vp\n\n\n address-family ipv4 unicast\n redistribute local loopback\n redistribute connected\n!\n!\n neighbor 10.1.0.14 activate\n neighbor 10.1.0.14 advertisement-interval 1\n neighbor 10.1.0.14 send-community standard\n\n neighbor 10.1.0.18 activate\n neighbor 10.1.0.18 advertisement-interval 1\n neighbor 10.1.0.18 send-community standard\n\n neighbor 10.1.0.22 activate\n neighbor 10.1.0.22 advertisement-interval 1\n neighbor 10.1.0.22 send-community standard\n\n address-family ipv6 unicast\n redistribute local loopback\n redistribute connected\n!\n!\n neighbor 2001:db8:3:3::5 activate\n neighbor 2001:db8:3:3::5 advertisement-interval 1\n neighbor 2001:db8:3:3::5 send-community standard\n\n neighbor 2001:db8:3:4::6 activate\n neighbor 2001:db8:3:4::6 advertisement-interval 1\n neighbor 2001:db8:3:4::6 send-community standard\n\n neighbor 2001:db8:3:5::7 activate\n neighbor 2001:db8:3:5::7 advertisement-interval 1\n neighbor 2001:db8:3:5::7 send-community standard\n\n" } TASK [Deploy vrf configuration] ************************************************ included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/arubacx.yml for dut TASK [tempfile] **************************************************************** changed: [dut -> localhost] TASK [template] **************************************************************** changed: [dut -> localhost] TASK [aoscx_config: deploying vrf from /work/netlab_cicd/other_vm/node_files/dut/vrf] *** changed: [dut] TASK [file] ******************************************************************** changed: [dut -> localhost] PLAY [Deploy custom deployment templates] ************************************** TASK [Run custom configuration deployment scripts] ***************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-custom-config.yml for dut => (item=bgp.policy) 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/other_vm/node_files/dut/bgp.policy 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/net101/tools/netsim/ansible/tasks/deploy-config/arubacx.yml for dut TASK [tempfile] **************************************************************** changed: [dut -> localhost] TASK [template] **************************************************************** changed: [dut -> localhost] TASK [aoscx_config: deploying bgp.policy from /work/netlab_cicd/other_vm/node_files/dut/bgp.policy] *** changed: [dut] TASK [file] ******************************************************************** changed: [dut -> localhost] PLAY RECAP ********************************************************************* dut : ok=65 changed=24 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ probe Script: initial,routing,ospf,bgp x1 Script: initial,routing,bgp x2 Script: initial,routing,bgp v1 Script: initial,routing,bgp v2 Script: initial,routing,bgp,bgp.policy vp Script: initial,routing,bgp Use this topology to test BGP local preference on IPv4 and IPv6 prefixes. DUT has to set node-wide local preference on prefixes received from X1 and neighbor-specific local preference on prefixes received from X2.