Creating Device configuration snippets [CREATED] dut: initial,lag [CREATED] x1: normalize,initial,lag,routing [CREATED] x2: normalize,initial,lag,routing Config Normalizing device configurations netmiko: [INFO] Sent normalize configuration to x2 netmiko: [INFO] Sent normalize configuration to x1 Config Deploying device configurations netmiko: [INFO] Sent initial configuration to x2 netmiko: [INFO] Sent initial configuration to x1 netmiko: [INFO] Sent lag configuration to x2 netmiko: [INFO] Sent lag configuration to x1 netmiko: [INFO] Sent routing configuration to x2 netmiko: [INFO] Sent routing configuration to x1 [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/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/system/identity set name=\"dut\"\n\n/interface/bridge add name=loopback protocol-mode=none\n\n# Host entries\n/ip/dns/static add name=x1 address=172.16.0.2\n/ip/dns/static add name=x2 address=172.16.1.3\n\n/ip/address add interface=loopback address=10.0.0.1/32\n\n/interface/bonding add name=bond1 slaves=ether2,ether3 mode=802.3ad\n/interface/bonding add name=bond2 slaves=ether4,ether5 mode=802.3ad\n\n/interface/ethernet set [ find name=ether2 ] mtu=1500\n/interface/ethernet set [ find name=ether3 ] mtu=1500\n/interface/ethernet set [ find name=ether4 ] mtu=1400\n/interface/ethernet set [ find name=ether5 ] mtu=1400\n\n\n\n/interface/bonding set comment=\"dut -> x1 [stub]\" bond1\n/interface/bonding set mtu=1500 bond1\n/ip/address add interface=bond1 address=172.16.0.1/24\n/ip/address set [find where interface=bond1] comment=\"dut -> x1 [stub]\"\n\n/interface/bonding set comment=\"dut -> x2 [stub]\" bond2\n/interface/bonding set mtu=1400 bond2\n/ip/address add interface=bond2 address=172.16.1.1/24\n/ip/address set [find where interface=bond2] comment=\"dut -> x2 [stub]\"\n\n/interface/ethernet set comment=\"dut -> x1 [stub]\" ether2\n/interface/ethernet set mtu=1500 ether2\n\n/interface/ethernet set comment=\"dut -> x1 [stub]\" ether3\n/interface/ethernet set mtu=1500 ether3\n\n/interface/ethernet set comment=\"dut -> x2 [stub]\" ether4\n/interface/ethernet set mtu=1400 ether4\n\n/interface/ethernet set comment=\"dut -> x2 [stub]\" ether5\n/interface/ethernet set mtu=1400 ether5\n\n/ip/neighbor/discovery-settings set discover-interface-list=all\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/routeros7.yml for dut TASK [load initial from /work/netlab_cicd/node_files/dut/initial] ************** ok: [dut] TASK [Run commands on CHR] ***************************************************** 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=lag) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut => (item=routing) TASK [Figure out whether to deploy the module lag on current device] *********** ok: [dut] TASK [Find configuration template for lag] ************************************* ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] TASK [Find configuration deployment deploy_script for lag] ********************* ok: [dut] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => { "msg": "lag configuration for dut\n=========================================\n/interface/bonding set [find name=bond1] lacp-rate=1sec\n/interface/bonding set [find name=bond1] lacp-mode=active\n\n/interface/bridge/port add interface=bond1 bridge=switch\n\n/interface/bonding set [find name=bond2] lacp-rate=1sec\n/interface/bonding set [find name=bond2] lacp-mode=active\n\n/interface/bridge/port add interface=bond2 bridge=switch\n\n" } TASK [Deploy lag configuration] ************************************************ included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/routeros7.yml for dut TASK [load lag from /work/netlab_cicd/node_files/dut/lag] ********************** ok: [dut] TASK [Run commands on CHR] ***************************************************** changed: [dut] TASK [Figure out whether to deploy the module routing on current device] ******* ok: [dut] TASK [Find configuration template for routing] ********************************* skipping: [dut] TASK [fail] ******************************************************************** skipping: [dut] TASK [Find configuration deployment deploy_script for routing] ***************** skipping: [dut] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [dut] TASK [Deploy routing configuration] ******************************************** skipping: [dut] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut : ok=20 changed=2 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ x1 Script: normalize,initial,lag,routing x2 Script: normalize,initial,lag,routing The device under is a router with a L3 LAG link connected to a FRR device. The FRR device should be able to ping the loopback interface of DUT.