Creating Device configuration snippets [CREATED] dut: initial,bgp,bgp.session [CREATED] x1: normalize,initial,bgp,bgp.session [CREATED] x2: normalize,initial,bgp,bgp.session Checking Are lab devices ready to be configured? [INFO] Checking lab devices with an Ansible playbook [WARNING]: Could not match supplied host pattern, ignoring: netlab_ready_ssh [WARNING]: Found variable using reserved name: hosts PLAY [Wait for SSH servers] **************************************************** skipping: no hosts matched 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/srsim.yml for dut TASK [Common SR-OS checks] ***************************************************** included: /home/pipi/netlab_gh/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 192.168.83.101] ******* ok: [dut -> localhost] TASK [Update SR-SIM hardware configuration] ************************************ changed: [dut] TASK [Get port 1/1/c1 status] ************************************************** FAILED - RETRYING: [dut]: Get port 1/1/c1 status (10 retries left). FAILED - RETRYING: [dut]: Get port 1/1/c1 status (9 retries left). FAILED - RETRYING: [dut]: Get port 1/1/c1 status (8 retries left). ok: [dut] PLAY RECAP ********************************************************************* dut : ok=8 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Config Deploying device configurations [WARNING]: Found variable using reserved name: hosts PLAY [Deploy initial device configuration] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] ok: [x1] ok: [x2] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, x1, x2 TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [dut] ok: [x2] ok: [x1] TASK [Find configuration template for normalize] ******************************* ok: [dut] ok: [x1] ok: [x2] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [dut] ok: [x1] ok: [x2] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [dut] ok: [x1] => { "msg": "normalize configuration for x1\n=========================================\n!\ninterface Ethernet1\n shutdown\n mac-address caf0.0002.0001\n" } ok: [x2] => { "msg": "normalize configuration for x2\n=========================================\n!\ninterface Ethernet1\n shutdown\n mac-address caf0.0003.0001\n" } TASK [Deploy normalize configuration] ****************************************** skipping: [dut] included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x2, x1 TASK [eos_config: deploying normalize from /work/netlab_cicd/nokia_c/node_files/x1/normalize] *** [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: [x2] changed: [x1] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, x1, x2 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [dut] ok: [x2] ok: [x1] TASK [Find configuration template for initial] ********************************* ok: [dut] ok: [x1] ok: [x2] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [dut] ok: [x1] ok: [x2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => { "msg": "initial configuration for dut\n=========================================\n\n\n\n\n\nupdates:\n- path: configure/card[slot-number=1]\n val:\n card-type: iom-1\n mda:\n - mda-slot: 1\n mda-type: me12-100gb-qsfp28\n - mda-slot: 2\n mda-type: me12-100gb-qsfp28\n slot-number: 1\n\n- path: configure/router[router-name=Base]\n val:\n ecmp: 64\n\n\n\n\n\n\n- path: configure/router[router-name=Base]/interface[interface-name=system]\n\n val:\n admin-state: enable\n description: \"System interface\"\n ipv4:\n primary:\n address: \"10.0.0.1\"\n prefix-length: 32\n\n\n\n\n\n- path: configure/port[port-id=1/1/c1]\n val:\n admin-state: enable\n connector:\n breakout: \"c1-100g\"\n- path: configure/port[port-id=1/1/c1/1]\n val:\n admin-state: enable\n ethernet:\n mtu: 1514 # max 9800\n mode: network\n\n\n\n- path: configure/router[router-name=Base]/interface[interface-name=eth-1/1/c1]\n\n val:\n admin-state: enable\n description: \"dut ~ x1 (external)\"\n ip-mtu: 1500\n port: \"1/1/c1/1\"\n ipv4:\n primary:\n address: \"10.1.0.1\"\n prefix-length: 30\n\n ipv6:\n address:\n - ipv6-address: \"2001:db8:3::1\"\n prefix-length: 64\n\n\n\n- path: configure/router[router-name=Base]\n val:\n ipv6:\n router-advertisement:\n interface:\n - ip-int-name: eth-1/1/c1\n admin-state: enable\n min-advertisement-interval: 3\n max-advertisement-interval: 5\n\n\n\n\n- path: configure/port[port-id=1/1/c2]\n val:\n admin-state: enable\n connector:\n breakout: \"c1-100g\"\n- path: configure/port[port-id=1/1/c2/1]\n val:\n admin-state: enable\n ethernet:\n mtu: 1514 # max 9800\n mode: network\n\n\n\n- path: configure/router[router-name=Base]/interface[interface-name=eth-1/1/c2]\n\n val:\n admin-state: enable\n description: \"dut ~ x2 (external)\"\n ip-mtu: 1500\n port: \"1/1/c2/1\"\n ipv4:\n primary:\n address: \"10.1.0.5\"\n prefix-length: 30\n\n ipv6:\n address:\n - ipv6-address: \"2001:db8:3:1::1\"\n prefix-length: 64\n\n\n\n- path: configure/router[router-name=Base]\n val:\n ipv6:\n router-advertisement:\n interface:\n - ip-int-name: eth-1/1/c2\n admin-state: enable\n min-advertisement-interval: 3\n max-advertisement-interval: 5\n\n\n" } ok: [x1] => { "msg": "initial configuration for x1\n=========================================\nhostname x1\n!\nlogging monitor debugging\naaa authorization exec default local\n!\nlldp run\nip routing\nipv6 unicast-routing\n!\n!\nip host dut 10.0.0.1 10.1.0.1 10.1.0.5\nip host x2 10.0.0.3 10.1.0.6\nipv6 host dut 2001:db8:3::1\nipv6 host x2 2001:db8:3:1::3\n!\ninterface Management1\n no lldp transmit\n no lldp receive\n!\ninterface Loopback0\n ip address 10.0.0.2/32\n!\ninterface Ethernet1\n no switchport\n description x1 -> dut [external]\n ip address 10.1.0.2/30\n ipv6 nd ra interval 5\n ipv6 address 2001:db8:3::2/64\n mac-address caf0.0002.0001\n!\n no shutdown\n!\n" } ok: [x2] => { "msg": "initial configuration for x2\n=========================================\nhostname x2\n!\nlogging monitor debugging\naaa authorization exec default local\n!\nlldp run\nip routing\nipv6 unicast-routing\n!\n!\nip host dut 10.0.0.1 10.1.0.1 10.1.0.5\nip host x1 10.0.0.2 10.1.0.2\nipv6 host dut 2001:db8:3::1\nipv6 host x1 2001:db8:3::2\n!\ninterface Management1\n no lldp transmit\n no lldp receive\n!\ninterface Loopback0\n ip address 10.0.0.3/32\n!\ninterface Ethernet1\n no switchport\n description x2 -> dut [external]\n ip address 10.1.0.6/30\n ipv6 nd ra interval 5\n ipv6 address 2001:db8:3:1::3/64\n mac-address caf0.0003.0001\n!\n no shutdown\n!\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/sros.yml for dut included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1, x2 TASK [Generate gNMI YAML configuration] **************************************** ok: [dut] TASK [Update initial node configuration from gNMI template /work/netlab_cicd/nokia_c/node_files/dut/initial] *** changed: [dut] TASK [debug] ******************************************************************* skipping: [dut] TASK [eos_config: deploying initial from /work/netlab_cicd/nokia_c/node_files/x1/initial] *** changed: [x1] changed: [x2] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] ok: [x2] ok: [x1] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, x1, x2 => (item=bgp) TASK [Figure out whether to deploy the module bgp on current device] *********** ok: [dut] ok: [x2] ok: [x1] TASK [Find configuration template for bgp] ************************************* ok: [dut] ok: [x2] ok: [x1] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Find configuration deployment deploy_script for bgp] ********************* ok: [dut] ok: [x2] ok: [x1] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => { "msg": "bgp configuration for dut\n=========================================\n\nupdates:\n\n- path: configure/policy-options/policy-statement[name=accept_all]\n val:\n default-action:\n action-type: accept\n\n- path: configure/policy-options/policy-statement[name=next-hop-self-ebgp-routes-only]\n val:\n entry:\n - entry-id: 10\n from:\n path-type: ebgp\n action:\n action-type: accept\n next-hop: self\n default-action:\n action-type: next-policy\n\n\n- path: configure/policy-options/prefix-list[name=bgp_default_advertise]\n val:\n prefix: [] # Make sure it exists\n\n- path: configure/policy-options/policy-statement[name=bgp_default_export]\n val:\n default-action:\n action-type: reject\n entry:\n - entry-id: 10\n from:\n prefix-list: [ \"bgp_default_advertise\" ]\n action:\n action-type: accept\n - entry-id: 20\n from:\n protocol:\n name: [ bgp ]\n action:\n action-type: accept\n- path: configure/policy-options/prefix-list[name=bgp_default_advertise]\n val:\n prefix:\n - ip-prefix: 10.0.0.1/32\n type: exact\n\n\n- path: configure/router[router-name=Base]\n val:\n router-id: \"10.0.0.1\"\n autonomous-system: 65000\n bgp:\n ebgp-default-reject-policy:\n import: False\n export: False\n advertise-inactive: True\n multipath:\n ibgp: 64\n ebgp: 64\n min-route-advertisement: 1 # Be aggressive about sending updates\n connect-retry: 5 # Retry frequently, suitable in DC context\n # family: cannot disable this\n # ipv4: False # Enabled by default, disable globally and set per group\n\n\n\n\n- path: configure/router[router-name=Base]/bgp/group[group-name=ebgp]\n val:\n admin-state: enable\n family:\n ipv4: True\n ipv6: True\n\n import:\n policy: [\"accept_all\"]\n export:\n policy:\n - bgp_default_export\n send-communities:\n extended: False # True value not allowed, on by default\n\n\n- path: configure/router[router-name=Base]/bgp\n val:\n neighbor:\n - ip-address: \"10.1.0.2\"\n description: \"x1\"\n peer-as: 65100\n group: \"ebgp\"\n admin-state: enable\n family:\n ipv4: True\n ipv6: False\n\n\n- path: configure/router[router-name=Base]/bgp/group[group-name=ebgp]\n val:\n admin-state: enable\n family:\n ipv4: True\n ipv6: True\n\n import:\n policy: [\"accept_all\"]\n export:\n policy:\n - bgp_default_export\n send-communities:\n extended: False # True value not allowed, on by default\n\n\n- path: configure/router[router-name=Base]/bgp\n val:\n neighbor:\n - ip-address: \"2001:db8:3::2\"\n description: \"x1\"\n peer-as: 65100\n group: \"ebgp\"\n admin-state: enable\n family:\n ipv4: False\n ipv6: True\n\n\n- path: configure/router[router-name=Base]/bgp/group[group-name=ebgp]\n val:\n admin-state: enable\n family:\n ipv4: True\n ipv6: True\n\n import:\n policy: [\"accept_all\"]\n export:\n policy:\n - bgp_default_export\n send-communities:\n extended: False # True value not allowed, on by default\n\n\n- path: configure/router[router-name=Base]/bgp\n val:\n neighbor:\n - ip-address: \"10.1.0.6\"\n description: \"x2\"\n peer-as: 65101\n group: \"ebgp\"\n admin-state: enable\n family:\n ipv4: True\n ipv6: False\n\n\n- path: configure/router[router-name=Base]/bgp/group[group-name=ebgp]\n val:\n admin-state: enable\n family:\n ipv4: True\n ipv6: True\n\n import:\n policy: [\"accept_all\"]\n export:\n policy:\n - bgp_default_export\n send-communities:\n extended: False # True value not allowed, on by default\n\n\n- path: configure/router[router-name=Base]/bgp\n val:\n neighbor:\n - ip-address: \"2001:db8:3:1::3\"\n description: \"x2\"\n peer-as: 65101\n group: \"ebgp\"\n admin-state: enable\n family:\n ipv4: False\n ipv6: True\n\n" } ok: [x1] => { "msg": "bgp configuration for x1\n=========================================\n!\n!\nrouter bgp 65100\n bgp advertise-inactive\n bgp log-neighbor-changes\n no bgp default ipv4-unicast\n no bgp default ipv6-unicast\n router-id 10.0.0.2\n!\n neighbor 10.1.0.1 remote-as 65000\n neighbor 10.1.0.1 description dut\n neighbor 10.1.0.1 send-community standard large \n!\n neighbor 2001:db8:3::1 remote-as 65000\n neighbor 2001:db8:3::1 description dut\n neighbor 2001:db8:3::1 send-community standard large \n!\n!\n address-family ipv4\n\n!\n network 10.0.0.2/32\n!\n neighbor 10.1.0.1 activate\n neighbor 10.1.0.1 next-hop-self\n!\n address-family ipv6\n\n!\n!\n neighbor 2001:db8:3::1 activate\n neighbor 2001:db8:3::1 next-hop-self\n" } ok: [x2] => { "msg": "bgp configuration for x2\n=========================================\n!\n!\nrouter bgp 65101\n bgp advertise-inactive\n bgp log-neighbor-changes\n no bgp default ipv4-unicast\n no bgp default ipv6-unicast\n router-id 10.0.0.3\n!\n neighbor 10.1.0.5 remote-as 65000\n neighbor 10.1.0.5 description dut\n neighbor 10.1.0.5 send-community standard large \n!\n neighbor 2001:db8:3:1::1 remote-as 65000\n neighbor 2001:db8:3:1::1 description dut\n neighbor 2001:db8:3:1::1 send-community standard large \n!\n!\n address-family ipv4\n\n!\n network 10.0.0.3/32\n!\n neighbor 10.1.0.5 activate\n neighbor 10.1.0.5 next-hop-self\n!\n address-family ipv6\n\n!\n!\n neighbor 2001:db8:3:1::1 activate\n neighbor 2001:db8:3:1::1 next-hop-self\n" } TASK [Deploy bgp configuration] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/sros.yml for dut included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1, x2 TASK [Generate gNMI YAML configuration] **************************************** ok: [dut] TASK [Update bgp node configuration from gNMI template /work/netlab_cicd/nokia_c/node_files/dut/bgp] *** changed: [dut] TASK [debug] ******************************************************************* skipping: [dut] TASK [eos_config: deploying bgp from /work/netlab_cicd/nokia_c/node_files/x1/bgp] *** changed: [x1] changed: [x2] PLAY [Deploy custom deployment templates] ************************************** TASK [Run custom configuration deployment scripts] ***************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-custom-config.yml for dut, x1, x2 => (item=bgp.session) TASK [Find configuration template] ********************************************* ok: [dut] ok: [x2] ok: [x1] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Check is the configuration template is a file] *************************** ok: [dut -> localhost] ok: [x2 -> localhost] ok: [x1 -> localhost] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Process template /work/netlab_cicd/nokia_c/node_files/dut/bgp.session for dut] *** skipping: [dut] skipping: [x2] skipping: [x1] TASK [debug] ******************************************************************* skipping: [dut] skipping: [x1] skipping: [x2] TASK [debug] ******************************************************************* skipping: [dut] skipping: [x1] skipping: [x2] TASK [Find custom configuration deployment script] ***************************** ok: [dut] ok: [x1] ok: [x2] TASK [Run the configuration deployment script] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/sros.yml for dut included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/eos.yml for x1, x2 TASK [Generate gNMI YAML configuration] **************************************** ok: [dut] TASK [Update bgp.session node configuration from gNMI template /work/netlab_cicd/nokia_c/node_files/dut/bgp.session] *** changed: [dut] TASK [debug] ******************************************************************* skipping: [dut] TASK [eos_config: deploying bgp.session from /work/netlab_cicd/nokia_c/node_files/x1/bgp.session] *** changed: [x1] changed: [x2] PLAY RECAP ********************************************************************* dut : ok=29 changed=3 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 x1 : ok=29 changed=4 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 x2 : ok=29 changed=4 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 This lab tests the BGP TCP-AO password functionality. The EBGP session between the probe and the lab device should be established.