[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details [WARNING]: Could not match supplied host pattern, ignoring: unprovisioned [WARNING]: Found variable using reserved name: hosts PLAY [Deploy initial device configuration] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] ok: [r2] ok: [r1] ok: [r3] ok: [r4] TASK [Find device readiness script] ******************************************** ok: [dut] ok: [r1] ok: [r3] ok: [r2] ok: [r4] TASK [Wait for device to become ready] ***************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/readiness-check/vjunos-switch-clab.yml for dut included: /home/pipi/netlab_gh/netsim/ansible/tasks/readiness-check/eos-clab.yml for r1, r2, r3, r4 TASK [Wait for SSH server] ***************************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/readiness-check/vm-clab-ssh-check.yml for dut TASK [Check if 'sshpass' is installed] ***************************************** ok: [dut -> localhost] TASK [Check for 'timeout' command] ********************************************* ok: [dut -> localhost] TASK [Execute local ssh command to check vjunos-switch readiness] ************** FAILED - RETRYING: [dut -> localhost]: Execute local ssh command to check vjunos-switch readiness (40 retries left). FAILED - RETRYING: [dut -> localhost]: Execute local ssh command to check vjunos-switch readiness (39 retries left). FAILED - RETRYING: [dut -> localhost]: Execute local ssh command to check vjunos-switch readiness (38 retries left). ok: [dut -> localhost] TASK [Confirm dut SSH server works] ******************************************** ok: [dut] => msg: Node dut is ready. TASK [Wait for ge-0/0/0 interface] ********************************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/readiness-check/vjunos-switch.yml for dut TASK [Wait for ge-0/0/0 to appear] ********************************************* ok: [dut] TASK [Wait for cEOS SSH daemon to start] *************************************** ok: [r2] ok: [r3] ok: [r4] ok: [r1] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, r1, r2, r3, r4 TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [dut] ok: [r2] ok: [r1] ok: [r3] ok: [r4] TASK [Find configuration template for normalize] ******************************* ok: [dut] ok: [r3] ok: [r2] ok: [r1] ok: [r4] TASK [fail] ******************************************************************** skipping: [dut] skipping: [r1] skipping: [r2] skipping: [r3] skipping: [r4] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [dut] ok: [r4] ok: [r2] ok: [r1] ok: [r3] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [dut] ok: [r1] => msg: |- normalize configuration for r1 ========================================= ! interface Ethernet1 shutdown mac-address 52dc.cafe.0b01 ok: [r2] => msg: |- normalize configuration for r2 ========================================= ! interface Ethernet1 shutdown mac-address 52dc.cafe.0c01 ok: [r3] => msg: |- normalize configuration for r3 ========================================= ! interface Ethernet1 shutdown mac-address 52dc.cafe.1701 ok: [r4] => msg: |- normalize configuration for r4 ========================================= ! interface Ethernet1 shutdown mac-address 52dc.cafe.1801 TASK [Deploy normalize configuration] ****************************************** skipping: [dut] included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for r1, r2, r3, r4 TASK [eos_config: deploying normalize from /home/pipi/netlab_gh/netsim/ansible/templates/normalize/eos.j2] *** [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: [r2] changed: [r4] changed: [r1] changed: [r3] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, r1, r2, r3, r4 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [dut] ok: [r2] ok: [r4] ok: [r1] ok: [r3] TASK [Find configuration template for initial] ********************************* ok: [dut] ok: [r1] ok: [r2] ok: [r4] ok: [r3] TASK [fail] ******************************************************************** skipping: [dut] skipping: [r1] skipping: [r2] skipping: [r3] skipping: [r4] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [dut] ok: [r1] ok: [r2] ok: [r3] ok: [r4] TASK [Print deployed configuration when running in verbose mode] *************** ok: [r1] => msg: |- initial configuration for r1 ========================================= hostname r1 ! logging monitor debugging aaa authorization exec default local ! lldp run ip routing ipv6 unicast-routing ! ! ip host dut 10.0.0.1 ip host dut-blue 10.1.0.9 10.1.0.13 ip host dut-red 10.1.0.1 10.1.0.5 ip host r2 10.0.0.12 10.1.0.6 ip host r3 10.0.0.23 10.1.0.10 ip host r4 10.0.0.24 10.1.0.14 ipv6 host dut 2001:db8:1:1::1 ipv6 host r2 2001:db8:1:c::1 ipv6 host r3 2001:db8:1:17::1 ipv6 host r4 2001:db8:1:18::1 ! interface Management0 no lldp transmit no lldp receive ! interface Loopback0 ip address 10.0.0.11/32 ipv6 nd ra interval 5 ipv6 address 2001:db8:1:b::1/64 ! interface Ethernet1 no switchport platform tfa phy control-frame disabled description r1 -> dut [external] ip address 10.1.0.2/30 ! mac-address 52dc.cafe.0b01 no shutdown ! ok: [dut] => msg: |- initial configuration for dut ========================================= system { host-name dut; static-host-mapping { r1 inet 10.0.0.11; r2 inet 10.0.0.12; r3 inet 10.0.0.23; r4 inet 10.0.0.24; } } policy-options { community tg_65000_2 members target:65000:2; community tg_65000_1 members target:65000:1; } policy-options { policy-statement vrf-blue-rt-export { term 1 { then { community add tg_65000_2; accept; } } } policy-statement vrf-blue-rt-import { term 1 { from community [ tg_65000_2 ]; then accept; } term default { then reject; } } policy-statement vrf-red-rt-export { term 1 { then { community add tg_65000_1; accept; } } } policy-statement vrf-red-rt-import { term 1 { from community [ tg_65000_1 ]; then accept; } term default { then reject; } } } routing-instances { blue { instance-type vrf; route-distinguisher 65000:2; vrf-import vrf-blue-rt-import; vrf-export vrf-blue-rt-export; routing-options { auto-export; } interface ge-0/0/2.0; interface ge-0/0/3.0; } red { instance-type vrf; route-distinguisher 65000:1; vrf-import vrf-red-rt-import; vrf-export vrf-red-rt-export; routing-options { auto-export; } interface ge-0/0/0.0; interface ge-0/0/1.0; } } interfaces { ge-0/0/0 { mtu 1514; } ge-0/0/1 { mtu 1514; } ge-0/0/2 { mtu 1514; } ge-0/0/3 { mtu 1514; } lo0.0 { family inet { address 10.0.0.1/32; } family inet6 { address 2001:db8:1:1::1/64; } } ge-0/0/0.0 { description "dut -> r1 [external]"; family inet { address 10.1.0.1/30; } } ge-0/0/1.0 { description "dut -> r2 [external]"; family inet { address 10.1.0.5/30; } } ge-0/0/2.0 { description "dut -> r3 [external]"; family inet { address 10.1.0.9/30; } } ge-0/0/3.0 { description "dut -> r4 [external]"; family inet { address 10.1.0.13/30; } } } protocols { lldp { interface fxp0 { disable; } interface all; } } ok: [r2] => msg: |- initial configuration for r2 ========================================= hostname r2 ! logging monitor debugging aaa authorization exec default local ! lldp run ip routing ipv6 unicast-routing ! ! ip host dut 10.0.0.1 ip host dut-blue 10.1.0.9 10.1.0.13 ip host dut-red 10.1.0.1 10.1.0.5 ip host r1 10.0.0.11 10.1.0.2 ip host r3 10.0.0.23 10.1.0.10 ip host r4 10.0.0.24 10.1.0.14 ipv6 host dut 2001:db8:1:1::1 ipv6 host r1 2001:db8:1:b::1 ipv6 host r3 2001:db8:1:17::1 ipv6 host r4 2001:db8:1:18::1 ! interface Management0 no lldp transmit no lldp receive ! interface Loopback0 ip address 10.0.0.12/32 ipv6 nd ra interval 5 ipv6 address 2001:db8:1:c::1/64 ! interface Ethernet1 no switchport platform tfa phy control-frame disabled description r2 -> dut [external] ip address 10.1.0.6/30 ! mac-address 52dc.cafe.0c01 no shutdown ! ok: [r3] => msg: |- initial configuration for r3 ========================================= hostname r3 ! logging monitor debugging aaa authorization exec default local ! lldp run ip routing ipv6 unicast-routing ! ! ip host dut 10.0.0.1 ip host dut-blue 10.1.0.9 10.1.0.13 ip host dut-red 10.1.0.1 10.1.0.5 ip host r1 10.0.0.11 10.1.0.2 ip host r2 10.0.0.12 10.1.0.6 ip host r4 10.0.0.24 10.1.0.14 ipv6 host dut 2001:db8:1:1::1 ipv6 host r1 2001:db8:1:b::1 ipv6 host r2 2001:db8:1:c::1 ipv6 host r4 2001:db8:1:18::1 ! interface Management0 no lldp transmit no lldp receive ! interface Loopback0 ip address 10.0.0.23/32 ipv6 nd ra interval 5 ipv6 address 2001:db8:1:17::1/64 ! interface Ethernet1 no switchport platform tfa phy control-frame disabled description r3 -> dut [external] ip address 10.1.0.10/30 ! mac-address 52dc.cafe.1701 no shutdown ! ok: [r4] => msg: |- initial configuration for r4 ========================================= hostname r4 ! logging monitor debugging aaa authorization exec default local ! lldp run ip routing ipv6 unicast-routing ! ! ip host dut 10.0.0.1 ip host dut-blue 10.1.0.9 10.1.0.13 ip host dut-red 10.1.0.1 10.1.0.5 ip host r1 10.0.0.11 10.1.0.2 ip host r2 10.0.0.12 10.1.0.6 ip host r3 10.0.0.23 10.1.0.10 ipv6 host dut 2001:db8:1:1::1 ipv6 host r1 2001:db8:1:b::1 ipv6 host r2 2001:db8:1:c::1 ipv6 host r3 2001:db8:1:17::1 ! interface Management0 no lldp transmit no lldp receive ! interface Loopback0 ip address 10.0.0.24/32 ipv6 nd ra interval 5 ipv6 address 2001:db8:1:18::1/64 ! interface Ethernet1 no switchport platform tfa phy control-frame disabled description r4 -> dut [external] ip address 10.1.0.14/30 ! mac-address 52dc.cafe.1801 no shutdown ! TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/junos.yml for dut included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for r1, r2, r3, r4 TASK [junos_config: deploying initial from /home/pipi/netlab_gh/netsim/ansible/templates/initial/junos.j2] *** changed: [dut] TASK [eos_config: deploying initial from /home/pipi/netlab_gh/netsim/ansible/templates/initial/eos.j2] *** changed: [r1] changed: [r2] changed: [r3] changed: [r4] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] ok: [r1] ok: [r3] ok: [r2] ok: [r4] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, r1, r2, r3, r4 => (item=bgp) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, r1, r2, r3, r4 => (item=vrf) TASK [Figure out whether to deploy the module bgp on current device] *********** ok: [dut] ok: [r2] ok: [r1] ok: [r3] ok: [r4] TASK [Find configuration template for bgp] ************************************* ok: [dut] ok: [r1] ok: [r2] ok: [r3] ok: [r4] TASK [fail] ******************************************************************** skipping: [dut] skipping: [r1] skipping: [r2] skipping: [r3] skipping: [r4] TASK [Find configuration deployment deploy_script for bgp] ********************* ok: [dut] ok: [r1] ok: [r3] ok: [r2] ok: [r4] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => msg: |- bgp configuration for dut ========================================= routing-options { autonomous-system 65000; router-id 10.0.0.1 } policy-options community x-route-permit-mark members large:65535:0:65536; policy-options { delete: policy-statement bgp-advertise; delete: policy-statement bgp-redistribute; delete: route-filter-list bgp-announce; } policy-options { route-filter-list bgp-announce { } policy-statement next-hop-self { term next-hop-self { from { route-type external; } then { next-hop self; } } } policy-statement bgp-advertise { term advertise { from { protocol direct; interface [ lo0.0 ]; } then { community add x-route-permit-mark; next policy; } } term originate { from { protocol static; route-filter-list bgp-announce; } then { community add x-route-permit-mark; next policy; } } } policy-statement bgp-redistribute { term redis_bgp { from protocol bgp; then { community add x-route-permit-mark; next policy; } } } policy-statement bgp-final { term final-option { from community x-route-permit-mark; then { community delete x-route-permit-mark; accept; } } term default-reject { then reject; } } policy-statement bgp-initial { term initial-cleanup { from community x-route-permit-mark; then { community delete x-route-permit-mark; next policy; } } } } protocols { delete: bgp; } protocols { bgp { group ibgp-peers-ipv4 { type internal; export [ next-hop-self bgp-advertise bgp-redistribute bgp-final ]; advertise-inactive; } group ibgp-peers-ipv6 { type internal; export [ next-hop-self bgp-advertise bgp-redistribute bgp-final ]; advertise-inactive; } group ebgp-peers { export [ bgp-advertise bgp-redistribute bgp-final ]; advertise-inactive; } } } ok: [r1] => msg: |- bgp configuration for r1 ========================================= ! ! router bgp 65101 bgp advertise-inactive bgp log-neighbor-changes no bgp default ipv4-unicast no bgp default ipv6-unicast router-id 10.0.0.11 ! neighbor 10.1.0.1 remote-as 65000 neighbor 10.1.0.1 description dut neighbor 10.1.0.1 send-community standard large ! ! address-family ipv4 network 10.0.0.11/32 ! ! ! neighbor 10.1.0.1 activate ! address-family ipv6 network 2001:db8:1:b::/64 ! ! ! ! ok: [r3] => msg: |- bgp configuration for r3 ========================================= ! ! router bgp 65103 bgp advertise-inactive bgp log-neighbor-changes no bgp default ipv4-unicast no bgp default ipv6-unicast router-id 10.0.0.23 ! neighbor 10.1.0.9 remote-as 65000 neighbor 10.1.0.9 description dut neighbor 10.1.0.9 send-community standard large ! ! address-family ipv4 network 10.0.0.23/32 ! ! ! neighbor 10.1.0.9 activate ! address-family ipv6 network 2001:db8:1:17::/64 ! ! ! ! ok: [r4] => msg: |- bgp configuration for r4 ========================================= ! ! router bgp 65104 bgp advertise-inactive bgp log-neighbor-changes no bgp default ipv4-unicast no bgp default ipv6-unicast router-id 10.0.0.24 ! neighbor 10.1.0.13 remote-as 65000 neighbor 10.1.0.13 description dut neighbor 10.1.0.13 send-community standard large ! ! address-family ipv4 network 10.0.0.24/32 ! ! ! neighbor 10.1.0.13 activate ! address-family ipv6 network 2001:db8:1:18::/64 ! ! ! ! ok: [r2] => msg: |- bgp configuration for r2 ========================================= ! ! router bgp 65102 bgp advertise-inactive bgp log-neighbor-changes no bgp default ipv4-unicast no bgp default ipv6-unicast router-id 10.0.0.12 ! neighbor 10.1.0.5 remote-as 65000 neighbor 10.1.0.5 description dut neighbor 10.1.0.5 send-community standard large ! ! address-family ipv4 network 10.0.0.12/32 ! ! ! neighbor 10.1.0.5 activate ! address-family ipv6 network 2001:db8:1:c::/64 ! ! ! ! TASK [Deploy bgp configuration] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/junos.yml for dut included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for r1, r2, r3, r4 TASK [junos_config: deploying bgp from /home/pipi/netlab_gh/netsim/ansible/templates/bgp/junos.j2] *** [WARNING]: statement not found changed: [dut] TASK [eos_config: deploying bgp from /home/pipi/netlab_gh/netsim/ansible/templates/bgp/eos.j2] *** changed: [r4] changed: [r2] changed: [r1] changed: [r3] TASK [Figure out whether to deploy the module vrf on current device] *********** ok: [dut] ok: [r1] ok: [r2] ok: [r3] ok: [r4] TASK [Find configuration template for vrf] ************************************* skipping: [r1] skipping: [r2] skipping: [r3] skipping: [r4] ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] skipping: [r1] skipping: [r2] skipping: [r3] skipping: [r4] TASK [Find configuration deployment deploy_script for vrf] ********************* skipping: [r1] skipping: [r2] skipping: [r3] skipping: [r4] ok: [dut] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [r1] skipping: [r2] skipping: [r3] skipping: [r4] ok: [dut] => msg: |- vrf configuration for dut ========================================= policy-options { community x-route-permit-mark members large:65535:0:65536; policy-statement vrf-blue-bgp-export { term redis_bgp { from { protocol bgp; } then { community add x-route-permit-mark; next policy; } } term redis_direct { from { protocol direct; } then { community add x-route-permit-mark; next policy; } } term redis_ospf { from { protocol ospf; } then { community add x-route-permit-mark; next policy; } } term redis_ospf3 { from { protocol ospf3; } then { community add x-route-permit-mark; next policy; } } } policy-statement vrf-red-bgp-export { term redis_bgp { from { protocol bgp; } then { community add x-route-permit-mark; next policy; } } term redis_direct { from { protocol direct; } then { community add x-route-permit-mark; next policy; } } term redis_ospf { from { protocol ospf; } then { community add x-route-permit-mark; next policy; } } term redis_ospf3 { from { protocol ospf3; } then { community add x-route-permit-mark; next policy; } } } } routing-instances { blue { routing-options { autonomous-system 65000; router-id 10.0.0.1 } protocols { bgp { group ebgp-peers { export [ vrf-blue-bgp-export bgp-final ]; advertise-inactive; neighbor 10.1.0.10 { peer-as 65103; description r3; } neighbor 10.1.0.14 { peer-as 65104; description r4; } } } } } red { routing-options { autonomous-system 65000; router-id 10.0.0.1 } protocols { bgp { group ebgp-peers { export [ vrf-red-bgp-export bgp-final ]; advertise-inactive; neighbor 10.1.0.2 { peer-as 65101; description r1; } neighbor 10.1.0.6 { peer-as 65102; description r2; } } } } } } TASK [Deploy vrf configuration] ************************************************ skipping: [r1] skipping: [r2] skipping: [r3] skipping: [r4] included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/junos.yml for dut TASK [junos_config: deploying vrf from /home/pipi/netlab_gh/netsim/ansible/templates/vrf/junos.j2] *** 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 r1, r2, r3, r4 => (item=bgp-xact) TASK [Find configuration template] ********************************************* ok: [r2] ok: [r1] ok: [r3] ok: [r4] TASK [fail] ******************************************************************** skipping: [r1] skipping: [r2] skipping: [r3] skipping: [r4] TASK [Check is the configuration template is a file] *************************** ok: [r3 -> localhost] ok: [r2 -> localhost] ok: [r1 -> localhost] ok: [r4 -> localhost] TASK [fail] ******************************************************************** skipping: [r1] skipping: [r2] skipping: [r3] skipping: [r4] TASK [Process template /home/pipi/net101/tools/tests/integration/vrf/bgp-xact.j2 for r1] *** skipping: [r1] skipping: [r2] skipping: [r4] skipping: [r3] TASK [Find custom configuration deployment script] ***************************** ok: [r4] ok: [r3] ok: [r1] ok: [r2] TASK [Run the configuration deployment script] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for r1, r2, r3, r4 TASK [eos_config: deploying bgp-xact from /home/pipi/net101/tools/tests/integration/vrf/bgp-xact.j2] *** changed: [r1] changed: [r2] changed: [r3] changed: [r4] PLAY RECAP ********************************************************************* dut : ok=36 changed=3 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 r1 : ok=34 changed=4 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 r2 : ok=34 changed=4 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 r3 : ok=34 changed=4 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 r4 : ok=34 changed=4 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 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