Creating Device configuration snippets [CREATED] dut: initial,routing,bgp,vrf [CREATED] r1: normalize,initial,bgp,bgp-xact [CREATED] r2: normalize,initial,bgp,bgp-xact [CREATED] r3: normalize,initial,bgp,bgp-xact [CREATED] r4: normalize,initial,bgp,bgp-xact Checking Are lab devices ready to be configured? [INFO] Checking SSH server(s) on r1,r2,r3,r4 [INFO] Checking lab devices with an Ansible playbook [WARNING]: Found variable using reserved name: hosts PLAY [Wait for SSH servers] **************************************************** PLAY [Wait for device-specific conditions] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] TASK [Find device readiness script] ******************************************** ok: [dut] TASK [Wait for device to become ready] ***************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/readiness-check/cumulus_nvue.yml for dut TASK [Wait for nvued to start] ************************************************* ok: [dut] PLAY RECAP ********************************************************************* dut : ok=4 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Config Deploying device configurations [INFO] Executing normalize configuration for node r1 [INFO] Executing normalize configuration for node r2 [INFO] Executing normalize configuration for node r3 [INFO] Executing normalize configuration for node r4 [INFO] Executing initial configuration for node r1 [INFO] Executing initial configuration for node r3 [INFO] Executing initial configuration for node r2 [INFO] Executing bgp configuration for node r1 [INFO] Executing initial configuration for node r4 [INFO] Executing bgp configuration for node r3 [INFO] Executing bgp configuration for node r2 [INFO] Executing bgp configuration for node r4 [INFO] Executing bgp-xact configuration for node r1 [INFO] Executing bgp-xact configuration for node r2 [INFO] Executing bgp-xact configuration for node r3 [INFO] Executing bgp-xact configuration for node r4 [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\n- set:\n system:\n hostname: dut\n global:\n system-mac: ca:fe:00:01:00:00\n config:\n snippet:\n system-mtu:\n file: /etc/network/ifupdown2/policy.d/mtu.json\n content: |\n { \"address\": { \"defaults\": { \"mtu\": \"1500\" } } }\n\n interface:\n eth0:\n ip:\n vrf: mgmt\n address:\n dhcp: {}\n type: eth\n swp1:\n type: swp\n link:\n state:\n up : {}\n description: \"dut -> r1 [external]\"\n ip:\n address:\n 10.1.0.1/30: {}\n ipv6:\n enable: off\n\n swp2:\n type: swp\n link:\n state:\n up : {}\n description: \"dut -> r2 [external]\"\n ip:\n address:\n 10.1.0.5/30: {}\n ipv6:\n enable: off\n\n swp3:\n type: swp\n link:\n state:\n up : {}\n description: \"dut -> r3 [external]\"\n ip:\n address:\n 10.1.0.9/30: {}\n ipv6:\n enable: off\n\n swp4:\n type: swp\n link:\n state:\n up : {}\n description: \"dut -> r4 [external]\"\n ip:\n address:\n 10.1.0.13/30: {}\n ipv6:\n enable: off\n\n\n- set:\n interface:\n lo:\n type: loopback\n ip:\n address:\n 10.0.0.1/32: {}\n 2001:db8:1:1::1/64: {}\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/cumulus_nvue.yml for dut TASK [set_fact] **************************************************************** ok: [dut] TASK [copy the cumulus nvue YAML initial config file to switch (generated from /work/netlab_cicd/bgp/node_files/dut/initial)] *** changed: [dut] TASK [execute on cumulus: 'nv config patch' for initial config] **************** changed: [dut] TASK [execute on cumulus: 'nv config apply -y' for initial config] ************* 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=routing) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut => (item=bgp) included: /home/pipi/netlab_gh/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- set:\n vrf:\n red:\n router:\n static:\n 172.42.42.0/24:\n address-family: ipv4-unicast\n via:\n blackhole:\n type: blackhole\n" } TASK [Deploy routing configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/cumulus_nvue.yml for dut TASK [set_fact] **************************************************************** ok: [dut] TASK [copy the cumulus nvue YAML routing config file to switch (generated from /work/netlab_cicd/bgp/node_files/dut/routing)] *** changed: [dut] TASK [execute on cumulus: 'nv config patch' for routing config] **************** changed: [dut] TASK [execute on cumulus: 'nv config apply -y' for routing config] ************* changed: [dut] 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- set:\n router:\n bgp:\n enable: on\n autonomous-system: 65000\n router-id: 10.0.0.1\n- set:\n vrf:\n default:\n router:\n bgp:\n enable: on\n autonomous-system: 65000\n router-id: 10.0.0.1\n address-family:\n ipv4-unicast:\n enable: on\n network:\n 10.0.0.1/32: {}\n ipv6-unicast:\n enable: on\n network:\n 2001:db8:1:1::/64: {}\n" } TASK [Deploy bgp configuration] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/cumulus_nvue.yml for dut TASK [set_fact] **************************************************************** ok: [dut] TASK [copy the cumulus nvue YAML bgp config file to switch (generated from /work/netlab_cicd/bgp/node_files/dut/bgp)] *** changed: [dut] TASK [execute on cumulus: 'nv config patch' for bgp config] ******************** changed: [dut] TASK [execute on cumulus: 'nv config apply -y' for bgp config] ***************** changed: [dut] 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- set:\n vrf:\n red:\n table: auto\n blue:\n table: auto\n\n\n- set:\n vrf:\n red:\n router:\n bgp:\n enable: on\n autonomous-system: 65000\n router-id: 10.0.0.1\n rd: 65000:1\n address-family:\n ipv4-unicast:\n enable: on\n \n network:\n 172.42.42.0/24: {}\n 10.1.0.0/30: {}\n neighbor:\n 10.1.0.2:\n description: \"r1\"\n remote-as: 65101\n address-family:\n ipv4-unicast:\n enable: on\n 10.1.0.6:\n description: \"r2\"\n remote-as: 65102\n address-family:\n ipv4-unicast:\n enable: on\n\n- set:\n vrf:\n blue:\n router:\n bgp:\n enable: on\n autonomous-system: 65000\n router-id: 10.0.0.1\n rd: 65000:2\n address-family:\n ipv4-unicast:\n enable: on\n redistribute:\n connected:\n enable: on\n\n neighbor:\n 10.1.0.10:\n description: \"r3\"\n remote-as: 65103\n address-family:\n ipv4-unicast:\n enable: on\n 10.1.0.14:\n description: \"r4\"\n remote-as: 65104\n address-family:\n ipv4-unicast:\n enable: on\n\n\n\n- set:\n interface:\n swp1:\n ip:\n vrf: red\n- set:\n interface:\n swp2:\n ip:\n vrf: red\n- set:\n interface:\n swp3:\n ip:\n vrf: blue\n- set:\n interface:\n swp4:\n ip:\n vrf: blue\n" } TASK [Deploy vrf configuration] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/cumulus_nvue.yml for dut TASK [set_fact] **************************************************************** ok: [dut] TASK [copy the cumulus nvue YAML vrf config file to switch (generated from /work/netlab_cicd/bgp/node_files/dut/vrf)] *** changed: [dut] TASK [execute on cumulus: 'nv config patch' for vrf config] ******************** changed: [dut] TASK [execute on cumulus: 'nv config apply -y' for vrf config] ***************** changed: [dut] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut : ok=46 changed=12 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ r1 Script: normalize,initial,bgp,bgp-xact r2 Script: normalize,initial,bgp,bgp-xact r3 Script: normalize,initial,bgp,bgp-xact r4 Script: normalize,initial,bgp,bgp-xact The device under test has two VRFs with two interfaces in each VRF. Routers are attached to those interfaces and run BGP with device under test. Assuming the multi-vrf test case succeeded, this one adds BGP routing with CE routers. * r1 and r2 should be able to ping each other * r3 and r4 should be able to ping each other * r1 should not be able to reach r3 The test also checks whether DUT unnecessarily enables IPv6 AF over IPv4 EBGP sessions