Creating Device configuration snippets [CREATED] h1: initial,routing [CREATED] h2: initial,routing [CREATED] h3: initial,routing [CREATED] h4: initial,routing [CREATED] l1: initial,vlan,ospf,bgp,vrf,vxlan,evpn [CREATED] l2: initial,vlan,ospf,bgp,vrf,vxlan,evpn [CREATED] spine: initial,vlan,ospf,bgp,vrf,vxlan,evpn Config Deploying device configurations [INFO] Executing initial configuration for node h1 (namespace clab- ml-17-h1) [INFO] Executing initial configuration for node h2 (namespace clab- ml-17-h2) [INFO] Executing initial configuration for node h3 (namespace clab- ml-17-h3) [INFO] Executing initial configuration for node h4 (namespace clab- ml-17-h4) [INFO] Executing initial configuration for node l2 [INFO] Executing routing configuration for node h1 (namespace clab- ml-17-h1) [INFO] Executing routing configuration for node h3 (namespace clab- ml-17-h3) [INFO] Executing routing configuration for node h2 (namespace clab- ml-17-h2) [INFO] Executing routing configuration for node h4 (namespace clab- ml-17-h4) [INFO] Executing vlan configuration for node l2 [INFO] Executing ospf configuration for node l2 [INFO] Executing bgp configuration for node l2 [INFO] Executing vrf configuration for node l2 [INFO] Executing vxlan configuration for node l2 [INFO] Executing evpn configuration for node l2 [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: [l1] ok: [spine] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for l1, spine TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [l1] ok: [spine] TASK [Find configuration template for normalize] ******************************* ok: [l1] ok: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for normalize] *************** ok: [l1] ok: [spine] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [l1] skipping: [spine] TASK [Deploy normalize configuration] ****************************************** skipping: [l1] skipping: [spine] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for l1, spine TASK [Figure out whether to deploy the module initial on current device] ******* ok: [l1] ok: [spine] TASK [Find configuration template for initial] ********************************* ok: [l1] ok: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [l1] ok: [spine] TASK [Print deployed configuration when running in verbose mode] *************** ok: [l1] => { "msg": "initial configuration for l1\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.5/32\"\n\n- path: /interface[name=ethernet-1/1]\n value:\n description: \"l1 ~ spine\"\n # min 1500; max 9412 for 7220, 9500 for 7250 platforms\n mtu: 1614\n subinterface:\n # min 1500; max 9412 for 7220, 9500 for 7250 platforms\n ip-mtu: 1600\n index: 0\n description: \"l1 ~ spine\"\n\n- path: /interface[name=ethernet-1/1]/subinterface[index=0]\n value:\n description: \"l1 ~ spine\"\n admin-state: enable\n ipv4:\n admin-state: enable\n address:\n - ip-prefix: \"10.1.0.1/30\"\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# TODO: vdata.rd, vdata.import/export, vdata.af\n\n\n" } ok: [spine] => { "msg": "initial configuration for spine\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.7/32\"\n\n- path: /interface[name=ethernet-1/1]\n value:\n description: \"spine ~ l1\"\n # min 1500; max 9412 for 7220, 9500 for 7250 platforms\n mtu: 1614\n subinterface:\n # min 1500; max 9412 for 7220, 9500 for 7250 platforms\n ip-mtu: 1600\n index: 0\n description: \"spine ~ l1\"\n\n- path: /interface[name=ethernet-1/1]/subinterface[index=0]\n value:\n description: \"spine ~ l1\"\n admin-state: enable\n ipv4:\n admin-state: enable\n address:\n - ip-prefix: \"10.1.0.2/30\"\n primary: [null]\n\n- path: /interface[name=ethernet-1/2]\n value:\n description: \"spine ~ l2\"\n # min 1500; max 9412 for 7220, 9500 for 7250 platforms\n mtu: 1614\n subinterface:\n # min 1500; max 9412 for 7220, 9500 for 7250 platforms\n ip-mtu: 1600\n index: 0\n description: \"spine ~ l2\"\n\n- path: /interface[name=ethernet-1/2]/subinterface[index=0]\n value:\n description: \"spine ~ l2\"\n admin-state: enable\n ipv4:\n admin-state: enable\n address:\n - ip-prefix: \"10.1.0.6/30\"\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- path: /network-instance[name=default]\n value:\n type: default\n interface:\n - name: ethernet-1/2.0\n\n\n\n# TODO: vdata.rd, vdata.import/export, vdata.af\n\n\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/srlinux.yml for l1, spine TASK [Generate JSON-RPC YAML configuration] ************************************ ok: [l1] ok: [spine] TASK [Update SRL initial node configuration (template=/work/netlab_cicd/node_files/l1/initial)] *** changed: [l1] changed: [spine] TASK [debug] ******************************************************************* skipping: [l1] skipping: [spine] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [l1] ok: [spine] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for l1, spine => (item=vlan) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for l1, spine => (item=routing) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for l1, spine => (item=ospf) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for l1, spine => (item=bgp) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for l1, spine => (item=vrf) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for l1, spine => (item=vxlan) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for l1, spine => (item=evpn) TASK [Figure out whether to deploy the module vlan on current device] ********** ok: [l1] ok: [spine] TASK [Find configuration template for vlan] ************************************ ok: [l1] ok: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for vlan] ******************** ok: [l1] ok: [spine] TASK [Print deployed configuration when running in verbose mode] *************** ok: [l1] => { "msg": "vlan configuration for l1\n=========================================\n\nupdates:\n- path: /interface[name=ethernet-1/2]\n value:\n subinterface:\n - index: 1000\n type: bridged\n description: \"[Access VLAN red] l1 -> h1\"\n\n \n- path: /network-instance[name=vlan1000]\n value:\n type: mac-vrf\n description: \"[Access VLAN red] l1 -> h1\"\n interface:\n - name: ethernet-1/2.1000\n\n\n- path: /interface[name=ethernet-1/3]\n value:\n subinterface:\n - index: 1001\n type: bridged\n description: \"[Access VLAN blue] l1 -> h3\"\n\n \n- path: /network-instance[name=vlan1001]\n value:\n type: mac-vrf\n description: \"[Access VLAN blue] l1 -> h3\"\n interface:\n - name: ethernet-1/3.1001\n\n\n- path: /interface[name=irb0]\n value:\n subinterface:\n - index: 1000\n\n \n\n\n- path: /interface[name=irb0]\n value:\n subinterface:\n - index: 1001\n\n \n\n\n \n" } ok: [spine] => { "msg": "vlan configuration for spine\n=========================================\n\nupdates:\n- path: /interface[name=irb0]\n value:\n subinterface:\n - index: 1000\n\n- path: /interface[name=irb0]/subinterface[index=1000]\n value:\n description: \"VLAN red (1000) ~ h1,l1,h2,l2\"\n admin-state: enable\n ipv4:\n admin-state: enable\n address:\n - ip-prefix: \"172.16.0.7/24\"\n primary: [null]\n\n \n- path: /network-instance[name=vlan1000]\n value:\n type: mac-vrf\n description: \"VLAN red (1000) ~ h1,l1,h2,l2\"\n interface:\n - name: irb0.1000\n\n- path: /network-instance[name=customer]\n value:\n type: ip-vrf\n interface:\n - name: irb0.1000\n\n- path: /interface[name=irb0]\n value:\n subinterface:\n - index: 1001\n\n- path: /interface[name=irb0]/subinterface[index=1001]\n value:\n description: \"VLAN blue (1001) ~ h3,l1,h4,l2\"\n admin-state: enable\n ipv4:\n admin-state: enable\n address:\n - ip-prefix: \"172.16.1.7/24\"\n primary: [null]\n\n \n- path: /network-instance[name=vlan1001]\n value:\n type: mac-vrf\n description: \"VLAN blue (1001) ~ h3,l1,h4,l2\"\n interface:\n - name: irb0.1001\n\n- path: /network-instance[name=customer]\n value:\n type: ip-vrf\n interface:\n - name: irb0.1001\n\n \n" } TASK [Deploy vlan configuration] *********************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/srlinux.yml for l1, spine TASK [Generate JSON-RPC YAML configuration] ************************************ ok: [l1] ok: [spine] TASK [Update SRL vlan node configuration (template=/work/netlab_cicd/node_files/l1/vlan)] *** changed: [l1] changed: [spine] TASK [debug] ******************************************************************* skipping: [l1] skipping: [spine] TASK [Figure out whether to deploy the module routing on current device] ******* ok: [l1] ok: [spine] TASK [Find configuration template for routing] ********************************* skipping: [l1] skipping: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for routing] ***************** skipping: [l1] skipping: [spine] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [l1] skipping: [spine] TASK [Deploy routing configuration] ******************************************** skipping: [l1] skipping: [spine] TASK [Figure out whether to deploy the module ospf on current device] ********** ok: [l1] ok: [spine] TASK [Find configuration template for ospf] ************************************ ok: [l1] ok: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for ospf] ******************** ok: [l1] ok: [spine] TASK [Print deployed configuration when running in verbose mode] *************** ok: [l1] => { "msg": "ospf configuration for l1\n=========================================\nupdates:\n\n\n- path: /network-instance[name=default]\n value:\n router-id: 10.0.0.5\n protocols:\n ospf:\n instance:\n - name: \"0\"\n version: ospf-v2\n admin-state: enable\n max-ecmp-paths: 64\n area:\n - area-id: 0.0.0.0\n interface:\n - interface-name: system0.0\n passive: True\n - area-id: 0.0.0.0\n interface:\n - interface-name: ethernet-1/1.0\n interface-type: \"point-to-point\"\n failure-detection:\n enable-bfd: False\n # OSPF not configured on external interface ethernet-1/2\n # OSPF not configured on external interface ethernet-1/3\n\n" } ok: [spine] => { "msg": "ospf configuration for spine\n=========================================\nupdates:\n\n\n- path: /network-instance[name=default]\n value:\n router-id: 10.0.0.7\n protocols:\n ospf:\n instance:\n - name: \"0\"\n version: ospf-v2\n admin-state: enable\n max-ecmp-paths: 64\n area:\n - area-id: 0.0.0.0\n interface:\n - interface-name: system0.0\n passive: True\n - area-id: 0.0.0.0\n interface:\n - interface-name: ethernet-1/1.0\n interface-type: \"point-to-point\"\n failure-detection:\n enable-bfd: False\n - area-id: 0.0.0.0\n interface:\n - interface-name: ethernet-1/2.0\n interface-type: \"point-to-point\"\n failure-detection:\n enable-bfd: False\n # OSPF not configured on external interface irb0.1000\n # OSPF not configured on external interface irb0.1001\n\n" } TASK [Deploy ospf configuration] *********************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/srlinux.yml for l1, spine TASK [Generate JSON-RPC YAML configuration] ************************************ ok: [l1] ok: [spine] TASK [Update SRL ospf node configuration (template=/work/netlab_cicd/node_files/l1/ospf)] *** changed: [l1] changed: [spine] TASK [debug] ******************************************************************* skipping: [l1] skipping: [spine] TASK [Figure out whether to deploy the module bgp on current device] *********** ok: [l1] ok: [spine] TASK [Find configuration template for bgp] ************************************* ok: [l1] ok: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for bgp] ********************* ok: [l1] ok: [spine] TASK [Print deployed configuration when running in verbose mode] *************** ok: [l1] => { "msg": "bgp configuration for l1\n=========================================\nupdates:\n\n- path: /routing-policy/policy[name=accept_all]\n value:\n default-action:\n policy-result: accept\n\n- path: /routing-policy/community-set[name=ibgp-mark]\n value:\n member: [ \"65536:0:65536\" ]\n\n- path: /routing-policy/policy[name=ibgp-mark]\n value:\n default-action:\n policy-result: reject\n statement:\n - name: mark-ibgp-routes\n action:\n bgp:\n communities:\n add: ibgp-mark\n policy-result: accept\n\n- path: /routing-policy/prefix-set[name=default_bgp_advertise]\n value:\n prefix: [] # Make sure it exists\n\n- path: /routing-policy/policy[name=default_bgp_export]\n value:\n default-action:\n policy-result: reject\n statement:\n - name: prefixes\n match:\n prefix:\n prefix-set: default_bgp_advertise\n action:\n policy-result: next-policy\n - name: bgp\n match:\n protocol: bgp\n action:\n policy-result: next-policy\n bgp:\n communities:\n remove:\n ibgp-mark\n\n\n- path: /network-instance[name=default]/protocols/bgp\n value:\n admin-state: enable\n autonomous-system: 65000\n router-id: 10.0.0.5\n ebgp-default-policy:\n export-reject-all: False\n import-reject-all: False\n\n afi-safi:\n - afi-safi-name: ipv4-unicast\n admin-state: enable\n\n- path: /routing-policy/prefix-set[name=default_bgp_advertise]\n value:\n prefix:\n - ip-prefix: 10.0.0.5/32\n mask-length-range: exact\n\n\n\n\n\n- path: /network-instance[name=default]/protocols/bgp/group[group-name=ibgp-ipv4]\n value:\n admin-state: enable\n# neighbor: {'rr': True, 'name': 'spine', 'as': 65000, 'type': 'ibgp', 'ipv4': '10.0.0.7', '_source_intf': {'type': 'loopback', 'neighbors': [], 'virtual_interface': True, 'ifindex': 0, 'ifname': 'lo0.0', 'ipv4': '10.0.0.5/32'}, 'next_hop_self': 'ebgp', 'activate': {'ipv4': True}, 'evpn': 'ipv4'}\n# ipv4: True\n# ipv6: True\n afi-safi:\n - afi-safi-name: ipv4-unicast\n admin-state: enable\n send-community-type: ['standard', 'large', 'extended']\n\n import-policy: ['accept_all']\n export-policy: ['default_bgp_export', 'accept_all']\n - afi-safi-name: ipv6-unicast\n admin-state: disable\n send-community-type: ['standard', 'large', 'extended']\n\n import-policy: ['accept_all']\n export-policy: ['default_bgp_export', 'accept_all']\n - afi-safi-name: evpn\n admin-state: enable\n send-community-type: ['standard', 'large', 'extended']\n\n\n timers:\n connect-retry: 10\n _annotate_connect-retry: \"Reduce default 120s to 10s\"\n minimum-advertisement-interval: 1\n peer-as: 65000\n transport:\n local-address: 10.0.0.5\n next-hop-self: True\n\n\n- path: /network-instance[name=default]/protocols/bgp\n value:\n neighbor:\n - peer-address: \"10.0.0.7\"\n description: spine\n peer-group: ibgp-ipv4\n # neighbor: {'rr': True, 'name': 'spine', 'as': 65000, 'type': 'ibgp', 'ipv4': '10.0.0.7', '_source_intf': {'type': 'loopback', 'neighbors': [], 'virtual_interface': True, 'ifindex': 0, 'ifname': 'lo0.0', 'ipv4': '10.0.0.5/32'}, 'next_hop_self': 'ebgp', 'activate': {'ipv4': True}, 'evpn': 'ipv4'}\n # ipv4: True\n # ipv6: False\n afi-safi:\n - afi-safi-name: ipv4-unicast\n admin-state: enable\n send-community-type: ['standard', 'large', 'extended']\n\n - afi-safi-name: ipv6-unicast\n admin-state: disable\n - afi-safi-name: evpn\n admin-state: enable\n send-community-type: ['standard', 'large', 'extended']\n\n\n\n\n" } ok: [spine] => { "msg": "bgp configuration for spine\n=========================================\nupdates:\n\n- path: /routing-policy/policy[name=accept_all]\n value:\n default-action:\n policy-result: accept\n\n- path: /routing-policy/community-set[name=ibgp-mark]\n value:\n member: [ \"65536:0:65536\" ]\n\n- path: /routing-policy/policy[name=ibgp-mark]\n value:\n default-action:\n policy-result: reject\n statement:\n - name: mark-ibgp-routes\n action:\n bgp:\n communities:\n add: ibgp-mark\n policy-result: accept\n\n- path: /routing-policy/prefix-set[name=default_bgp_advertise]\n value:\n prefix: [] # Make sure it exists\n\n- path: /routing-policy/policy[name=default_bgp_export]\n value:\n default-action:\n policy-result: reject\n statement:\n - name: prefixes\n match:\n prefix:\n prefix-set: default_bgp_advertise\n action:\n policy-result: next-policy\n - name: bgp\n match:\n protocol: bgp\n action:\n policy-result: next-policy\n bgp:\n communities:\n remove:\n ibgp-mark\n\n\n- path: /routing-policy/policy[name=default_ibgp-nhs_export]\n value:\n default-action:\n policy-result: reject\n statement:\n - name: prefixes\n match:\n prefix:\n prefix-set: default_bgp_advertise\n action:\n policy-result: next-policy\n - name: rr-next-hop-unchanged\n match:\n protocol: bgp\n bgp:\n community-set: ibgp-mark\n action:\n policy-result: next-policy\n bgp:\n communities:\n remove:\n ibgp-mark\n - name: ebgp-next-hop-self\n match:\n protocol: bgp\n action:\n policy-result: next-policy\n bgp:\n next-hop:\n set: self\n\n\n- path: /network-instance[name=default]/protocols/bgp\n value:\n admin-state: enable\n autonomous-system: 65000\n router-id: 10.0.0.7\n ebgp-default-policy:\n export-reject-all: False\n import-reject-all: False\n\n afi-safi:\n - afi-safi-name: ipv4-unicast\n admin-state: enable\n\n- path: /routing-policy/prefix-set[name=default_bgp_advertise]\n value:\n prefix:\n - ip-prefix: 10.0.0.7/32\n mask-length-range: exact\n\n\n\n\n\n- path: /network-instance[name=default]/protocols/bgp/group[group-name=ibgp-ipv4]\n value:\n admin-state: enable\n# neighbor: {'name': 'l1', 'as': 65000, 'type': 'ibgp', 'ipv4': '10.0.0.5', '_source_intf': {'type': 'loopback', 'neighbors': [], 'virtual_interface': True, 'ifindex': 0, 'ifname': 'lo0.0', 'ipv4': '10.0.0.7/32'}, 'next_hop_self': 'ebgp', 'rr_client': True, 'activate': {'ipv4': True}, 'evpn': 'ipv4'}\n# ipv4: True\n# ipv6: True\n afi-safi:\n - afi-safi-name: ipv4-unicast\n admin-state: enable\n send-community-type: ['standard', 'large', 'extended']\n\n import-policy: ['ibgp-mark']\n export-policy: ['default_ibgp-nhs_export', 'accept_all']\n - afi-safi-name: ipv6-unicast\n admin-state: disable\n send-community-type: ['standard', 'large', 'extended']\n\n import-policy: ['ibgp-mark']\n export-policy: ['default_ibgp-nhs_export', 'accept_all']\n - afi-safi-name: evpn\n admin-state: enable\n send-community-type: ['standard', 'large', 'extended']\n\n\n timers:\n connect-retry: 10\n _annotate_connect-retry: \"Reduce default 120s to 10s\"\n minimum-advertisement-interval: 1\n peer-as: 65000\n transport:\n local-address: 10.0.0.7\n route-reflector:\n cluster-id: 10.0.0.7\n client: True\n\n\n- path: /network-instance[name=default]/protocols/bgp\n value:\n neighbor:\n - peer-address: \"10.0.0.5\"\n description: l1\n peer-group: ibgp-ipv4\n # neighbor: {'name': 'l1', 'as': 65000, 'type': 'ibgp', 'ipv4': '10.0.0.5', '_source_intf': {'type': 'loopback', 'neighbors': [], 'virtual_interface': True, 'ifindex': 0, 'ifname': 'lo0.0', 'ipv4': '10.0.0.7/32'}, 'next_hop_self': 'ebgp', 'rr_client': True, 'activate': {'ipv4': True}, 'evpn': 'ipv4'}\n # ipv4: True\n # ipv6: False\n afi-safi:\n - afi-safi-name: ipv4-unicast\n admin-state: enable\n send-community-type: ['standard', 'large', 'extended']\n\n - afi-safi-name: ipv6-unicast\n admin-state: disable\n - afi-safi-name: evpn\n admin-state: enable\n send-community-type: ['standard', 'large', 'extended']\n\n\n\n- path: /network-instance[name=default]/protocols/bgp/group[group-name=ibgp-ipv4]\n value:\n admin-state: enable\n# neighbor: {'name': 'l2', 'as': 65000, 'type': 'ibgp', 'ipv4': '10.0.0.6', '_source_intf': {'type': 'loopback', 'neighbors': [], 'virtual_interface': True, 'ifindex': 0, 'ifname': 'lo0.0', 'ipv4': '10.0.0.7/32'}, 'next_hop_self': 'ebgp', 'rr_client': True, 'activate': {'ipv4': True}, 'evpn': 'ipv4'}\n# ipv4: True\n# ipv6: True\n afi-safi:\n - afi-safi-name: ipv4-unicast\n admin-state: enable\n send-community-type: ['standard', 'large', 'extended']\n\n import-policy: ['ibgp-mark']\n export-policy: ['default_ibgp-nhs_export', 'accept_all']\n - afi-safi-name: ipv6-unicast\n admin-state: disable\n send-community-type: ['standard', 'large', 'extended']\n\n import-policy: ['ibgp-mark']\n export-policy: ['default_ibgp-nhs_export', 'accept_all']\n - afi-safi-name: evpn\n admin-state: enable\n send-community-type: ['standard', 'large', 'extended']\n\n\n timers:\n connect-retry: 10\n _annotate_connect-retry: \"Reduce default 120s to 10s\"\n minimum-advertisement-interval: 1\n peer-as: 65000\n transport:\n local-address: 10.0.0.7\n route-reflector:\n cluster-id: 10.0.0.7\n client: True\n\n\n- path: /network-instance[name=default]/protocols/bgp\n value:\n neighbor:\n - peer-address: \"10.0.0.6\"\n description: l2\n peer-group: ibgp-ipv4\n # neighbor: {'name': 'l2', 'as': 65000, 'type': 'ibgp', 'ipv4': '10.0.0.6', '_source_intf': {'type': 'loopback', 'neighbors': [], 'virtual_interface': True, 'ifindex': 0, 'ifname': 'lo0.0', 'ipv4': '10.0.0.7/32'}, 'next_hop_self': 'ebgp', 'rr_client': True, 'activate': {'ipv4': True}, 'evpn': 'ipv4'}\n # ipv4: True\n # ipv6: False\n afi-safi:\n - afi-safi-name: ipv4-unicast\n admin-state: enable\n send-community-type: ['standard', 'large', 'extended']\n\n - afi-safi-name: ipv6-unicast\n admin-state: disable\n - afi-safi-name: evpn\n admin-state: enable\n send-community-type: ['standard', 'large', 'extended']\n\n\n\n\n" } TASK [Deploy bgp configuration] ************************************************ included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/srlinux.yml for l1, spine TASK [Generate JSON-RPC YAML configuration] ************************************ ok: [l1] ok: [spine] TASK [Update SRL bgp node configuration (template=/work/netlab_cicd/node_files/l1/bgp)] *** changed: [l1] changed: [spine] TASK [debug] ******************************************************************* skipping: [l1] skipping: [spine] TASK [Figure out whether to deploy the module vrf on current device] *********** ok: [l1] ok: [spine] TASK [Find configuration template for vrf] ************************************* ok: [l1] ok: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for vrf] ********************* ok: [l1] ok: [spine] TASK [Print deployed configuration when running in verbose mode] *************** ok: [l1] => { "msg": "vrf configuration for l1\n=========================================\n\nupdates:\n\n- path: /network-instance[name=customer]\n value:\n type: ip-vrf\n\n\n- path: /routing-policy/community-set[name=C65000_1]\n value:\n member:\n - \"target:65000:1\" # Single member, else matching is AND\n\n- path: /routing-policy/community-set[name=customer_export]\n value:\n member:\n - \"target:65000:1\"\n\n\n- path: /network-instance[name=customer]/protocols/bgp-vpn\n value:\n bgp-instance:\n - id: 1\n route-distinguisher:\n rd: \"65000:1\"\n\n- path: /network-instance[name=customer]/inter-instance-policies\n value:\n apply-policy:\n export-policy: \"customer_vpn_export\"\n import-policy: \"customer_vpn_import\"\n\n- path: /routing-policy/policy[name=customer_vpn_export]\n value:\n default-action:\n policy-result: \"accept\"\n bgp:\n communities:\n add: \"customer_export\"\n\n- path: /routing-policy/policy[name=customer_vpn_import]\n value:\n default-action:\n policy-result: \"reject\"\n statement:\n - name: 11\n match:\n bgp:\n community-set: \"C65000_1\"\n action:\n policy-result: \"accept\"\n\n" } ok: [spine] => { "msg": "vrf configuration for spine\n=========================================\n\nupdates:\n\n- path: /network-instance[name=customer]\n value:\n type: ip-vrf\n\n\n- path: /routing-policy/community-set[name=C65000_1]\n value:\n member:\n - \"target:65000:1\" # Single member, else matching is AND\n\n- path: /routing-policy/community-set[name=customer_export]\n value:\n member:\n - \"target:65000:1\"\n\n\n- path: /routing-policy/policy[name=customer_bgp_export]\n value:\n default-action:\n policy-result: reject\n statement:\n - name: bgp\n match:\n protocol: bgp\n action:\n policy-result: next-policy\n bgp:\n communities:\n remove:\n ibgp-mark\n - name: bgp_evpn\n match:\n protocol: bgp-evpn\n action:\n policy-result: next-policy\n - name: export_local\n match:\n protocol: local\n action:\n policy-result: next-policy\n\n\n- path: /network-instance[name=customer]/protocols/bgp\n value:\n admin-state: enable\n autonomous-system: 65000\n router-id: 10.0.0.7\n ebgp-default-policy:\n export-reject-all: False\n import-reject-all: False\n\n afi-safi:\n - afi-safi-name: ipv4-unicast\n admin-state: enable\n\n\n\n\n\n\n\n\n- path: /network-instance[name=customer]/protocols/bgp-vpn\n value:\n bgp-instance:\n - id: 1\n route-distinguisher:\n rd: \"65000:1\"\n\n- path: /network-instance[name=customer]/inter-instance-policies\n value:\n apply-policy:\n export-policy: \"customer_vpn_export\"\n import-policy: \"customer_vpn_import\"\n\n- path: /routing-policy/policy[name=customer_vpn_export]\n value:\n default-action:\n policy-result: \"accept\"\n bgp:\n communities:\n add: \"customer_export\"\n\n- path: /routing-policy/policy[name=customer_vpn_import]\n value:\n default-action:\n policy-result: \"reject\"\n statement:\n - name: 11\n match:\n bgp:\n community-set: \"C65000_1\"\n action:\n policy-result: \"accept\"\n\n" } TASK [Deploy vrf configuration] ************************************************ included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/srlinux.yml for l1, spine TASK [Generate JSON-RPC YAML configuration] ************************************ ok: [l1] ok: [spine] TASK [Update SRL vrf node configuration (template=/work/netlab_cicd/node_files/l1/vrf)] *** changed: [l1] changed: [spine] TASK [debug] ******************************************************************* skipping: [l1] skipping: [spine] TASK [Figure out whether to deploy the module vxlan on current device] ********* ok: [l1] ok: [spine] TASK [Find configuration template for vxlan] *********************************** ok: [l1] ok: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for vxlan] ******************* ok: [l1] ok: [spine] TASK [Print deployed configuration when running in verbose mode] *************** ok: [l1] => { "msg": "vxlan configuration for l1\n=========================================\n\nupdates:\n- path: /tunnel-interface[name=vxlan0]/vxlan-interface[index=1000]\n value:\n type: bridged\n ingress:\n vni: 6000\n egress:\n source-ip: use-system-ipv4-address\n\n- path: /network-instance[name=vlan1000]\n value:\n type: mac-vrf\n vxlan-interface:\n - name: vxlan0.1000\n protocols:\n bgp-vpn:\n bgp-instance:\n - id: 1\n # route-distinguisher:\n # rd: \"10.0.0.5:1000\"\n _annotate: \"RD left as for EVPN services and ECMP to work as expected, not '10.0.0.5:1000'\"\n route-target:\n _annotate: \"For compatibility with frr, override auto-derived RT based on EVI 1000 with VNI 6000\"\n import-rt: \"target:65000:1000\"\n export-rt: \"target:65000:1000\"\n bgp-evpn:\n bgp-instance:\n - id: 1\n evi: 1000\n ecmp: 8\n vxlan-interface: vxlan0.1000\n\n- path: /tunnel-interface[name=vxlan0]/vxlan-interface[index=1001]\n value:\n type: bridged\n ingress:\n vni: 6001\n egress:\n source-ip: use-system-ipv4-address\n\n- path: /network-instance[name=vlan1001]\n value:\n type: mac-vrf\n vxlan-interface:\n - name: vxlan0.1001\n protocols:\n bgp-vpn:\n bgp-instance:\n - id: 1\n # route-distinguisher:\n # rd: \"10.0.0.5:1001\"\n _annotate: \"RD left as for EVPN services and ECMP to work as expected, not '10.0.0.5:1001'\"\n route-target:\n _annotate: \"For compatibility with frr, override auto-derived RT based on EVI 1001 with VNI 6001\"\n import-rt: \"target:65000:1001\"\n export-rt: \"target:65000:1001\"\n bgp-evpn:\n bgp-instance:\n - id: 1\n evi: 1001\n ecmp: 8\n vxlan-interface: vxlan0.1001\n\n\n" } ok: [spine] => { "msg": "vxlan configuration for spine\n=========================================\n\nupdates:\n- path: /tunnel-interface[name=vxlan0]/vxlan-interface[index=1000]\n value:\n type: bridged\n ingress:\n vni: 6000\n egress:\n source-ip: use-system-ipv4-address\n\n- path: /network-instance[name=vlan1000]\n value:\n type: mac-vrf\n vxlan-interface:\n - name: vxlan0.1000\n protocols:\n bgp-vpn:\n bgp-instance:\n - id: 1\n # route-distinguisher:\n # rd: \"10.0.0.7:1000\"\n _annotate: \"RD left as for EVPN services and ECMP to work as expected, not '10.0.0.7:1000'\"\n route-target:\n _annotate: \"For compatibility with frr, override auto-derived RT based on EVI 1000 with VNI 6000\"\n import-rt: \"target:65000:1000\"\n export-rt: \"target:65000:1000\"\n bgp-evpn:\n bgp-instance:\n - id: 1\n evi: 1000\n ecmp: 8\n vxlan-interface: vxlan0.1000\n\n- path: /tunnel-interface[name=vxlan0]/vxlan-interface[index=1001]\n value:\n type: bridged\n ingress:\n vni: 6001\n egress:\n source-ip: use-system-ipv4-address\n\n- path: /network-instance[name=vlan1001]\n value:\n type: mac-vrf\n vxlan-interface:\n - name: vxlan0.1001\n protocols:\n bgp-vpn:\n bgp-instance:\n - id: 1\n # route-distinguisher:\n # rd: \"10.0.0.7:1001\"\n _annotate: \"RD left as for EVPN services and ECMP to work as expected, not '10.0.0.7:1001'\"\n route-target:\n _annotate: \"For compatibility with frr, override auto-derived RT based on EVI 1001 with VNI 6001\"\n import-rt: \"target:65000:1001\"\n export-rt: \"target:65000:1001\"\n bgp-evpn:\n bgp-instance:\n - id: 1\n evi: 1001\n ecmp: 8\n vxlan-interface: vxlan0.1001\n\n\n" } TASK [Deploy vxlan configuration] ********************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/srlinux.yml for l1, spine TASK [Generate JSON-RPC YAML configuration] ************************************ ok: [l1] ok: [spine] TASK [Update SRL vxlan node configuration (template=/work/netlab_cicd/node_files/l1/vxlan)] *** changed: [l1] changed: [spine] TASK [debug] ******************************************************************* skipping: [l1] skipping: [spine] TASK [Figure out whether to deploy the module evpn on current device] ********** ok: [l1] ok: [spine] TASK [Find configuration template for evpn] ************************************ ok: [l1] ok: [spine] TASK [fail] ******************************************************************** skipping: [l1] skipping: [spine] TASK [Find configuration deployment deploy_script for evpn] ******************** ok: [l1] ok: [spine] TASK [Print deployed configuration when running in verbose mode] *************** ok: [l1] => { "msg": "evpn configuration for l1\n=========================================\n\n\nupdates:\n- path: /network-instance[name=default]/protocols/bgp\n value:\n group:\n - group-name: ibgp-ipv4 # Could create a dedicated group for EVPN only?\n afi-safi:\n - afi-safi-name: evpn\n admin-state: enable\n route-advertisement:\n rapid-withdrawal: True\n afi-safi:\n - afi-safi-name: evpn\n evpn:\n rapid-update: True\n\n" } ok: [spine] => { "msg": "evpn configuration for spine\n=========================================\n\n\nupdates:\n- path: /network-instance[name=default]/protocols/bgp\n value:\n group:\n - group-name: ibgp-ipv4 # Could create a dedicated group for EVPN only?\n afi-safi:\n - afi-safi-name: evpn\n admin-state: enable\n route-advertisement:\n rapid-withdrawal: True\n afi-safi:\n - afi-safi-name: evpn\n evpn:\n rapid-update: True\n\n- path: /interface[name=irb0]/subinterface[index=1000]\n value:\n ipv4:\n arp:\n learn-unsolicited: True\n evpn:\n advertise: # Type of ARP/ND entries to be advertised\n - route-type: dynamic\n _annotate: \"Advertise dynamically learned IPs\"\n - route-type: static\n _annotate: \"Advertise local irb interface IPs\"\n\n\n- path: /interface[name=irb0]/subinterface[index=1001]\n value:\n ipv4:\n arp:\n learn-unsolicited: True\n evpn:\n advertise: # Type of ARP/ND entries to be advertised\n - route-type: dynamic\n _annotate: \"Advertise dynamically learned IPs\"\n - route-type: static\n _annotate: \"Advertise local irb interface IPs\"\n\n\n" } TASK [Deploy evpn configuration] *********************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/srlinux.yml for l1, spine TASK [Generate JSON-RPC YAML configuration] ************************************ ok: [l1] ok: [spine] TASK [Update SRL evpn node configuration (template=/work/netlab_cicd/node_files/l1/evpn)] *** changed: [l1] changed: [spine] TASK [debug] ******************************************************************* skipping: [l1] skipping: [spine] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* l1 : ok=64 changed=7 unreachable=0 failed=0 skipped=22 rescued=0 ignored=0 spine : ok=64 changed=7 unreachable=0 failed=0 skipped=22 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ h1 Script: initial,routing h2 Script: initial,routing h3 Script: initial,routing h4 Script: initial,routing l2 Script: initial,vlan,ospf,bgp,vrf,vxlan,evpn The devices under test are a layer-2 leaf and a spine performing centralized routing. All hosts should be able to ping each other and all switch loopback IPs Please note it might take a while for the lab to work due to STP learning phase.