Creating Device configuration snippets [CREATED] dut_dns: initial,services [CREATED] dut_hosts: initial [CREATED] dnssrv: initial,dhcp,services,routing [CREATED] t1: initial,routing Config Deploying device configurations [INFO] Executing initial configuration for node dnssrv (namespace clab-ml-17-dnssrv) [INFO] Executing initial configuration for node t1 (namespace clab- ml-17-t1) [INFO] Executing routing configuration for node t1 (namespace clab- ml-17-t1) [INFO] Executing routing configuration for node dnssrv (namespace clab-ml-17-dnssrv) [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_dns] ok: [dut_hosts] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_dns, dut_hosts TASK [Figure out whether to deploy the module initial on current device] ******* ok: [dut_dns] ok: [dut_hosts] TASK [Find configuration template for initial] ********************************* ok: [dut_dns] ok: [dut_hosts] TASK [fail] ******************************************************************** skipping: [dut_dns] skipping: [dut_hosts] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [dut_dns] ok: [dut_hosts] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_dns] => { "msg": "initial configuration for dut_dns\n=========================================\n\nupdates:\n\n- path: /interface[name=system0]/subinterface[index=0]\n value:\n description: \"No description\"\n admin-state: enable\n ipv4:\n admin-state: enable\n address:\n - ip-prefix: \"10.0.0.1/32\"\n\n- path: /interface[name=ethernet-1/1]\n value:\n description: \"dut_dns ~ dut_hosts,dnssrv,t1\"\n subinterface:\n index: 0\n description: \"dut_dns ~ dut_hosts,dnssrv,t1\"\n\n- path: /interface[name=ethernet-1/1]/subinterface[index=0]\n value:\n description: \"dut_dns ~ dut_hosts,dnssrv,t1\"\n admin-state: enable\n ipv4:\n admin-state: enable\n address:\n - ip-prefix: \"172.16.0.1/24\"\n primary: [null]\n\n\n\n- path: /network-instance[name=default]\n value:\n type: default\n interface:\n - name: system0.0\n\n- path: /network-instance[name=default]\n value:\n type: default\n interface:\n - name: ethernet-1/1.0\n\n\n\n" } ok: [dut_hosts] => { "msg": "initial configuration for dut_hosts\n=========================================\n\nupdates:\n\n- path: /interface[name=system0]/subinterface[index=0]\n value:\n description: \"No description\"\n admin-state: enable\n ipv4:\n admin-state: enable\n address:\n - ip-prefix: \"10.0.0.2/32\"\n\n- path: /interface[name=ethernet-1/1]\n value:\n description: \"dut_hosts ~ dut_dns,dnssrv,t1\"\n subinterface:\n index: 0\n description: \"dut_hosts ~ dut_dns,dnssrv,t1\"\n\n- path: /interface[name=ethernet-1/1]/subinterface[index=0]\n value:\n description: \"dut_hosts ~ dut_dns,dnssrv,t1\"\n admin-state: enable\n ipv4:\n admin-state: enable\n address:\n - ip-prefix: \"172.16.0.2/24\"\n primary: [null]\n\n\n\n- path: /network-instance[name=default]\n value:\n type: default\n interface:\n - name: system0.0\n\n- path: /network-instance[name=default]\n value:\n type: default\n interface:\n - name: ethernet-1/1.0\n\n\n\n- path: /system/dns-instance[name=default]\n value:\n network-instance: default\n host-entry:\n - name: \"dnssrv\"\n ipv4-address: ['172.16.0.3']\n - name: \"dut_dns\"\n ipv4-address: ['10.0.0.1', '172.16.0.1']\n - name: \"t1\"\n ipv4-address: ['172.16.0.4']\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/srlinux.yml for dut_dns, dut_hosts TASK [Generate JSON-RPC YAML configuration] ************************************ ok: [dut_dns] ok: [dut_hosts] TASK [Update SRL initial node configuration (template=/work/netlab_cicd/node_files/dut_dns/initial)] *** changed: [dut_dns] changed: [dut_hosts] TASK [debug] ******************************************************************* skipping: [dut_dns] skipping: [dut_hosts] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut_dns] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_dns => (item=dhcp) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_dns => (item=services) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_dns => (item=routing) TASK [Figure out whether to deploy the module dhcp on current device] ********** ok: [dut_dns] TASK [Find configuration template for dhcp] ************************************ skipping: [dut_dns] TASK [fail] ******************************************************************** skipping: [dut_dns] TASK [Find configuration deployment deploy_script for dhcp] ******************** skipping: [dut_dns] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [dut_dns] TASK [Deploy dhcp configuration] *********************************************** skipping: [dut_dns] TASK [Figure out whether to deploy the module services on current device] ****** ok: [dut_dns] TASK [Find configuration template for services] ******************************** ok: [dut_dns] TASK [fail] ******************************************************************** skipping: [dut_dns] TASK [Find configuration deployment deploy_script for services] **************** ok: [dut_dns] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_dns] => { "msg": "services configuration for dut_dns\n=========================================\nupdates:\n- path: /system/dns-instance[name=default]\n value:\n network-instance: default\n search-list: [ cicd.local ]\n server-list: ['172.16.0.3']\n" } TASK [Deploy services configuration] ******************************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/srlinux.yml for dut_dns TASK [Generate JSON-RPC YAML configuration] ************************************ ok: [dut_dns] TASK [Update SRL services node configuration (template=/work/netlab_cicd/node_files/dut_dns/services)] *** changed: [dut_dns] TASK [debug] ******************************************************************* skipping: [dut_dns] TASK [Figure out whether to deploy the module routing on current device] ******* ok: [dut_dns] TASK [Find configuration template for routing] ********************************* skipping: [dut_dns] TASK [fail] ******************************************************************** skipping: [dut_dns] TASK [Find configuration deployment deploy_script for routing] ***************** skipping: [dut_dns] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [dut_dns] TASK [Deploy routing configuration] ******************************************** skipping: [dut_dns] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut_dns : ok=22 changed=2 unreachable=0 failed=0 skipped=14 rescued=0 ignored=0 dut_hosts : ok=9 changed=1 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ dnssrv Script: initial,routing t1 Script: initial,routing The test checks the DNS client configuration on DUT. The validate.ping entry must specify the "ping" command for all supported devices; the test performs the ping, checks for the presence of remote IP address in the output (= name resolution works), and then checks for the DNS query on the DNS server (= DNS client works).