From 70f971ab208ea87e6c368a7645c005d5cf994b4f Mon Sep 17 00:00:00 2001 From: Ying Xie Date: Sat, 21 Oct 2017 03:18:46 +0000 Subject: [PATCH] [Arista7260cx3] hard code port layout to enable fdb test - Port 18 and 20 are excluded in this test until the new bcm config file is in place. --- ansible/roles/test/tasks/fdb.yml | 2 +- ansible/roles/test/templates/fdb.j2 | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ansible/roles/test/tasks/fdb.yml b/ansible/roles/test/tasks/fdb.yml index e700165d7d8..3b5757665d0 100644 --- a/ansible/roles/test/tasks/fdb.yml +++ b/ansible/roles/test/tasks/fdb.yml @@ -2,7 +2,7 @@ when: testbed_type is not defined - fail: msg="testbed_type {{test_type}} is invalid" - when: testbed_type not in ['t0', 't0-64'] + when: testbed_type not in ['t0', 't0-64', 't0-116'] - include_vars: "vars/topo_{{testbed_type}}.yml" diff --git a/ansible/roles/test/templates/fdb.j2 b/ansible/roles/test/templates/fdb.j2 index 6c0b7c79615..d1e5f578bc4 100644 --- a/ansible/roles/test/templates/fdb.j2 +++ b/ansible/roles/test/templates/fdb.j2 @@ -1,3 +1,7 @@ {% for vlan in minigraph_vlan_interfaces %} +{% if testbed_type == 't0-116' %} +{{ vlan['subnet'] }} {% for n in range(0, 17) %} {{ n }} {% endfor %} 18 {% for n in range(20, 44) %} {{ n }} {% endfor %}{% for n in range(52, 64) %} {{ n }} {% endfor %} +{% else %} {{ vlan['subnet'] }} {% for ifname in minigraph_vlans[vlan['attachto']]['members'] %} {{ minigraph_port_indices[ifname] }} {% endfor %} +{% endif %} {% endfor %}