Creating Device configuration snippets [CREATED] dut: initial,routing,bgp,vrf,bgp.policy [CREATED] x1: initial,routing,bgp [CREATED] x2: initial,bgp [CREATED] x3: initial,bgp [CREATED] vx1: initial,routing,bgp [CREATED] vx2: initial,bgp [CREATED] vx3: initial,bgp Config Deploying device configurations [INFO] Executing initial configuration for node x1 [INFO] Executing initial configuration for node x2 [INFO] Executing initial configuration for node x3 [INFO] Executing initial configuration for node vx1 [INFO] Executing initial configuration for node vx2 [INFO] Executing initial configuration for node vx3 [INFO] Executing bgp configuration for node x3 [INFO] Executing bgp configuration for node vx2 [INFO] Executing routing configuration for node x1 [INFO] Executing bgp configuration for node x2 [INFO] Executing routing configuration for node vx1 [INFO] Executing bgp configuration for node vx3 [INFO] Executing bgp configuration for node x1 [INFO] Executing bgp configuration for node vx1 [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/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 tenant\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\nip dns host dut-tenant 10.1.0.13\nip dns host dut-tenant 2001:db8:3:3::1\nip dns host vx1 10.0.0.5\nip dns host vx1 2001:db8:1:5::1\nip dns host vx2 10.0.0.6\nip dns host vx2 2001:db8:1:6::1\nip dns host vx3 10.0.0.7\nip dns host vx3 2001:db8:1:7::1\nip dns host x1 10.0.0.2\nip dns host x1 2001:db8:1:2::1\nip dns host x2 10.0.0.3\nip dns host x2 2001:db8:1:3::1\nip dns host x3 10.0.0.4\nip dns host x3 2001:db8:1:4::1\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 -> x3 [external]\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 tenant\n description dut -> vx1 [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 tenant\n description dut -> vx2 [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 tenant\n description dut -> vx3 [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/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=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!\nip prefix-list lb_only-ipv4 seq 100 permit 10.0.0.0/24 ge 32 le 32\n!\nip prefix-list orig_1-ipv4 seq 100 deny 172.42.43.0/24\nip prefix-list orig_1-ipv4 seq 110 permit 172.42.42.0/24\n!\nipv6 prefix-list lb_only-ipv6 seq 100 permit 2001:db8:1::/48 ge 64 le 64\n!\nipv6 prefix-list orig_1-ipv6 seq 100 deny 2001:db8:dead:beef::/64\n!\n!\n!\n!\n!\nroute-map out_x2-ipv4 permit seq 10\n match ip address prefix-list lb_only-ipv4\n!\nroute-map out_x2-ipv6 permit seq 10\n match ipv6 address prefix-list lb_only-ipv6\n!\nroute-map out_x2-vpnv4 permit seq 10\n match ipv6 address prefix-list lb_only-vpnv4\n!\nroute-map out_x2-vpnv6 permit seq 10\n match ipv6 address prefix-list lb_only-vpnv6\n!\nroute-map in_x1-ipv4 deny seq 10\n match ip address prefix-list orig_1-ipv4\n!\nroute-map in_x1-ipv4 permit seq 20\n!\nroute-map in_x1-ipv6 deny seq 10\n match ipv6 address prefix-list orig_1-ipv6\n!\nroute-map in_x1-ipv6 permit seq 20\n!\nroute-map in_x1-vpnv4 deny seq 10\n match ipv6 address prefix-list orig_1-vpnv4\n!\nroute-map in_x1-vpnv4 permit seq 20\n!\nroute-map in_x1-vpnv6 deny seq 10\n match ipv6 address prefix-list orig_1-vpnv6\n!\nroute-map in_x1-vpnv6 permit seq 20\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/node_files/dut/routing] *** 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.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 neighbor 10.1.0.10 remote-as 65102\n neighbor 10.1.0.10 description x3\n\n neighbor 2001:db8:3:2::4 remote-as 65102\n neighbor 2001:db8:3:2::4 description x3\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 neighbor 10.1.0.10 activate\n neighbor 10.1.0.10 advertisement-interval 1\n neighbor 10.1.0.10 send-community standard\n\n address-family ipv6 unicast\n!\n network 2001:db8:1:1::/64\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 neighbor 2001:db8:3:2::4 activate\n neighbor 2001:db8:3:2::4 advertisement-interval 1\n neighbor 2001:db8:3:2::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/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 tenant\n bgp router-id 10.0.0.1\n\n neighbor 10.1.0.14 remote-as 65100\n neighbor 10.1.0.14 description vx1\n\n neighbor 10.1.0.18 remote-as 65101\n neighbor 10.1.0.18 description vx2\n\n neighbor 10.1.0.22 remote-as 65102\n neighbor 10.1.0.22 description vx3\n\n neighbor 2001:db8:3:3::5 remote-as 65100\n neighbor 2001:db8:3:3::5 description vx1\n\n neighbor 2001:db8:3:4::6 remote-as 65101\n neighbor 2001:db8:3:4::6 description vx2\n\n neighbor 2001:db8:3:5::7 remote-as 65102\n neighbor 2001:db8:3:5::7 description vx3\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/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/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/node_files/dut/bgp.policy] *** changed: [dut] TASK [file] ******************************************************************** changed: [dut -> localhost] PLAY RECAP ********************************************************************* dut : ok=51 changed=20 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ x1 Script: initial,routing,bgp x2 Script: initial,bgp x3 Script: initial,bgp vx1 Script: initial,routing,bgp vx2 Script: initial,bgp vx3 Script: initial,bgp Use this topology to test route maps with prefix lists for IPv4 and IPv6