[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: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] TASK [Find device readiness script] ******************************************** ok: [h1] ok: [h2] ok: [h3] ok: [dut] ok: [h4] TASK [Wait for device to become ready] ***************************************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] included: /home/pipi/net101/tools/netsim/ansible/tasks/readiness-check/sros.yml for dut TASK [Check that required plugin exists, use 'netlab install grpc' to install it] *** ok: [dut] TASK [Wait up to 180s for gNMI(TCP 57400) to be ready on clab-ml_17-dut] ******* ok: [dut -> localhost] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for h1, h2, h3, h4, dut TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] TASK [Find configuration template for normalize] ******************************* ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] TASK [fail] ******************************************************************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [h1] ok: [h2] ok: [h3] ok: [h4] ok: [dut] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] TASK [Deploy normalize configuration] ****************************************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for h1, h2, h3, h4, dut TASK [Figure out whether to deploy the module initial on current device] ******* ok: [h1] ok: [h2] ok: [h3] ok: [dut] ok: [h4] TASK [Find configuration template for initial] ********************************* ok: [h1] ok: [h2] ok: [h3] ok: [dut] ok: [h4] TASK [fail] ******************************************************************** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] skipping: [dut] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [h1] ok: [h2] ok: [h3] ok: [dut] ok: [h4] TASK [Print deployed configuration when running in verbose mode] *************** ok: [h1] => msg: |- initial configuration for h1 ========================================= #!/bin/bash # # This script contains the 'ip' commands needed to set up container # interfaces and route table. It's executed within the container # network namespace on the container host. # # /etc/hosts file is generated as a clab bind. # set -e ### One-Shot configuration (non-Ubuntu VM or container) # # Send ARP requests from a sane source IP address sysctl -w net.ipv4.conf.all.arp_announce=2 # # Disable IPv4 and IPv6 forwarding # sysctl -w net.ipv4.ip_forward=0 sysctl -w net.ipv6.conf.all.forwarding=0 # # Interface addressing, create any bond devices # ip link set dev eth1 up sysctl -w net.ipv6.conf.eth1.disable_ipv6=0 set +e ip -6 addr del 2001:db8:2::2/64 dev eth1 2>/dev/null set -e ip -6 addr add 2001:db8:2::2/64 dev eth1 ip link set dev eth1 mtu 1500 ok: [h2] => msg: |- initial configuration for h2 ========================================= #!/bin/bash # # This script contains the 'ip' commands needed to set up container # interfaces and route table. It's executed within the container # network namespace on the container host. # # /etc/hosts file is generated as a clab bind. # set -e ### One-Shot configuration (non-Ubuntu VM or container) # # Send ARP requests from a sane source IP address sysctl -w net.ipv4.conf.all.arp_announce=2 # # Disable IPv4 and IPv6 forwarding # sysctl -w net.ipv4.ip_forward=0 sysctl -w net.ipv6.conf.all.forwarding=0 # # Interface addressing, create any bond devices # ip link set dev eth1 up sysctl -w net.ipv6.conf.eth1.disable_ipv6=0 set +e ip -6 addr del 2001:db8:2:1::3/64 dev eth1 2>/dev/null set -e ip -6 addr add 2001:db8:2:1::3/64 dev eth1 ip link set dev eth1 mtu 1500 ok: [h3] => msg: |- initial configuration for h3 ========================================= #!/bin/bash # # This script contains the 'ip' commands needed to set up container # interfaces and route table. It's executed within the container # network namespace on the container host. # # /etc/hosts file is generated as a clab bind. # set -e ### One-Shot configuration (non-Ubuntu VM or container) # # Send ARP requests from a sane source IP address sysctl -w net.ipv4.conf.all.arp_announce=2 # # Disable IPv4 and IPv6 forwarding # sysctl -w net.ipv4.ip_forward=0 sysctl -w net.ipv6.conf.all.forwarding=0 # # Interface addressing, create any bond devices # ip link set dev eth1 up sysctl -w net.ipv6.conf.eth1.disable_ipv6=0 set +e ip -6 addr del 2001:db8:2:2::4/64 dev eth1 2>/dev/null set -e ip -6 addr add 2001:db8:2:2::4/64 dev eth1 ip link set dev eth1 mtu 1500 ok: [h4] => msg: |- initial configuration for h4 ========================================= #!/bin/bash # # This script contains the 'ip' commands needed to set up container # interfaces and route table. It's executed within the container # network namespace on the container host. # # /etc/hosts file is generated as a clab bind. # set -e ### One-Shot configuration (non-Ubuntu VM or container) # # Send ARP requests from a sane source IP address sysctl -w net.ipv4.conf.all.arp_announce=2 # # Disable IPv4 and IPv6 forwarding # sysctl -w net.ipv4.ip_forward=0 sysctl -w net.ipv6.conf.all.forwarding=0 # # Interface addressing, create any bond devices # ip link set dev eth1 up sysctl -w net.ipv6.conf.eth1.disable_ipv6=0 set +e ip -6 addr del 2001:db8:2:3::5/64 dev eth1 2>/dev/null set -e ip -6 addr add 2001:db8:2:3::5/64 dev eth1 ip link set dev eth1 mtu 1500 ok: [dut] => msg: |- initial configuration for dut ========================================= updates: - path: configure/router[router-name=Base] val: ecmp: 64 - path: configure/router[router-name=Base]/interface[interface-name=system] val: admin-state: enable description: "System interface" ipv4: primary: address: "10.0.0.1" prefix-length: 32 ipv6: address: - ipv6-address: "2001:db8:1:1::1" prefix-length: 128 - path: configure/port[port-id=1/1/c1] val: admin-state: enable connector: breakout: "c1-100g" - path: configure/port[port-id=1/1/c1/1] val: admin-state: enable ethernet: mtu: 1514 # max 9800 mode: access - path: configure/service/vprn[service-name=red] val: customer: "1" admin-state: enable service-id: 100 # ecmp: 64 - path: configure/service/vprn[service-name=red]/interface[interface-name=eth-1/1/c1] val: admin-state: enable description: "dut ~ h1 (stub)" ip-mtu: 1500 sap: - sap-id: "1/1/c1/1" ipv6: address: - ipv6-address: "2001:db8:2::1" prefix-length: 64 - path: configure/service/vprn[service-name=red] val: customer: "1" admin-state: enable service-id: 100 # ecmp: 64 - path: configure/service/vprn[service-name=red] val: ipv6: router-advertisement: interface: - ip-int-name: eth-1/1/c1 admin-state: enable min-advertisement-interval: 3 max-advertisement-interval: 5 - path: configure/port[port-id=1/1/c2] val: admin-state: enable connector: breakout: "c1-100g" - path: configure/port[port-id=1/1/c2/1] val: admin-state: enable ethernet: mtu: 1514 # max 9800 mode: access - path: configure/service/vprn[service-name=red] val: customer: "1" admin-state: enable service-id: 100 # ecmp: 64 - path: configure/service/vprn[service-name=red]/interface[interface-name=eth-1/1/c2] val: admin-state: enable description: "dut ~ h2 (stub)" ip-mtu: 1500 sap: - sap-id: "1/1/c2/1" ipv6: address: - ipv6-address: "2001:db8:2:1::1" prefix-length: 64 - path: configure/service/vprn[service-name=red] val: customer: "1" admin-state: enable service-id: 100 # ecmp: 64 - path: configure/service/vprn[service-name=red] val: ipv6: router-advertisement: interface: - ip-int-name: eth-1/1/c2 admin-state: enable min-advertisement-interval: 3 max-advertisement-interval: 5 - path: configure/port[port-id=1/1/c3] val: admin-state: enable connector: breakout: "c1-100g" - path: configure/port[port-id=1/1/c3/1] val: admin-state: enable ethernet: mtu: 1514 # max 9800 mode: access - path: configure/service/vprn[service-name=blue] val: customer: "1" admin-state: enable service-id: 101 # ecmp: 64 - path: configure/service/vprn[service-name=blue]/interface[interface-name=eth-1/1/c3] val: admin-state: enable description: "dut ~ h3 (stub)" ip-mtu: 1500 sap: - sap-id: "1/1/c3/1" ipv6: address: - ipv6-address: "2001:db8:2:2::1" prefix-length: 64 - path: configure/service/vprn[service-name=blue] val: customer: "1" admin-state: enable service-id: 101 # ecmp: 64 - path: configure/service/vprn[service-name=blue] val: ipv6: router-advertisement: interface: - ip-int-name: eth-1/1/c3 admin-state: enable min-advertisement-interval: 3 max-advertisement-interval: 5 - path: configure/port[port-id=1/1/c4] val: admin-state: enable connector: breakout: "c1-100g" - path: configure/port[port-id=1/1/c4/1] val: admin-state: enable ethernet: mtu: 1514 # max 9800 mode: access - path: configure/service/vprn[service-name=blue] val: customer: "1" admin-state: enable service-id: 101 # ecmp: 64 - path: configure/service/vprn[service-name=blue]/interface[interface-name=eth-1/1/c4] val: admin-state: enable description: "dut ~ h4 (stub)" ip-mtu: 1500 sap: - sap-id: "1/1/c4/1" ipv6: address: - ipv6-address: "2001:db8:2:3::1" prefix-length: 64 - path: configure/service/vprn[service-name=blue] val: customer: "1" admin-state: enable service-id: 101 # ecmp: 64 - path: configure/service/vprn[service-name=blue] val: ipv6: router-advertisement: interface: - ip-int-name: eth-1/1/c4 admin-state: enable min-advertisement-interval: 3 max-advertisement-interval: 5 - path: configure/service/vprn[service-name=red] val: customer: "1" admin-state: enable service-id: 100 # ecmp: 64 - path: configure/service/vprn[service-name=red]/interface[interface-name=loopback.1] val: admin-state: enable description: "Loopback" loopback: True ipv6: address: - ipv6-address: "2001:db8:c001:cafe::1" prefix-length: 64 - path: configure/service/vprn[service-name=blue] val: customer: "1" admin-state: enable service-id: 101 # ecmp: 64 - path: configure/service/vprn[service-name=blue]/interface[interface-name=loopback.2] val: admin-state: enable description: "Loopback" loopback: True ipv6: address: - ipv6-address: "2001:db8:c001:cafe::1" prefix-length: 64 TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/linux-clab.yml for h1, h2, h3, h4 included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/sros.yml for dut TASK [Define script filename and determine whether to execute in netns] ******** ok: [h1] ok: [h2] ok: [h3] ok: [h4] TASK [Create a temporary file for the rendered script] ************************* changed: [h1 -> localhost] changed: [h3 -> localhost] changed: [h4 -> localhost] changed: [h2 -> localhost] TASK [Create container setup script from /home/pipi/net101/tools/netsim/ansible/templates/initial/linux-clab.j2] *** changed: [h3 -> localhost] changed: [h2 -> localhost] changed: [h4 -> localhost] changed: [h1 -> localhost] TASK [Copy script into running container at /tmp/config-h1_initial.sh] ********* skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] TASK [Execute /tmp/config-h1_initial.sh to deploy initial config based on /home/pipi/net101/tools/netsim/ansible/templates/initial/linux-clab.j2] *** skipping: [h1] skipping: [h2] skipping: [h3] skipping: [h4] TASK [Container configuration for initial based on /home/pipi/net101/tools/netsim/ansible/templates/initial/linux-clab.j2 executed in netns] *** changed: [h3 -> localhost] changed: [h4 -> localhost] changed: [h1 -> localhost] changed: [h2 -> localhost] TASK [Remove temporary file /tmp/h1_initial-_iunj68a.sh] *********************** changed: [h2 -> localhost] changed: [h4 -> localhost] changed: [h1 -> localhost] changed: [h3 -> localhost] TASK [Generate gNMI YAML configuration] **************************************** ok: [dut] TASK [Update initial node configuration from gNMI template /home/pipi/net101/tools/netsim/ansible/templates/initial/sros.j2] *** changed: [dut] TASK [debug] ******************************************************************* skipping: [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/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut => (item=vrf) 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 ========================================= updates: - path: configure/service/vprn[service-name=blue] val: service-id: 101 customer: "1" autonomous-system: 65000 router-id: 10.0.0.1 ecmp: 64 admin-state: enable - path: configure/service/vprn[service-name=red] val: service-id: 100 customer: "1" autonomous-system: 65000 router-id: 10.0.0.1 ecmp: 64 admin-state: enable TASK [Deploy vrf configuration] ************************************************ included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/sros.yml for dut TASK [Generate gNMI YAML configuration] **************************************** ok: [dut] TASK [Update vrf node configuration from gNMI template /home/pipi/net101/tools/netsim/ansible/templates/vrf/sros.j2] *** changed: [dut] TASK [debug] ******************************************************************* skipping: [dut] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut : ok=26 changed=2 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 h1 : ok=17 changed=4 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 h2 : ok=17 changed=4 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 h3 : ok=17 changed=4 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 h4 : ok=17 changed=4 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 The device under test has two VRFs with two interfaces in each VRF. Each VRF has a loopback interface. * h1 and h2 should be able to ping each other and the VRF loopback interface * h3 and h4 should be able to ping each other and the VRF loopback interface * h1 should not be able to reach h3