From 779d8b6bcbea2ce696568d8cf985edc4b8436e9c Mon Sep 17 00:00:00 2001 From: Wenda Ni Date: Sun, 14 Jan 2018 05:41:15 +0000 Subject: [PATCH] Fix port alias mapping for Arista-7050QX-32S Signed-off-by: Wenda Ni --- ansible/library/minigraph_facts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/library/minigraph_facts.py b/ansible/library/minigraph_facts.py index 17170beaf45..4eddd06cb6b 100644 --- a/ansible/library/minigraph_facts.py +++ b/ansible/library/minigraph_facts.py @@ -445,10 +445,10 @@ def parse_xml(filename, hostname): for i in range(25, 33): port_alias_map["Ethernet%d" % i] = "Ethernet%d" % ((i - 1) * 4) elif hwsku == "Arista-7050-QX-32S": - for i in range(6, 29): - port_alias_map["Ethernet%d/1" % i] = "Ethernet%d" % ((i - 1) * 4) - for i in range(1,5) + range(29, 37): - port_alias_map["Ethernet%d" % i] = "Ethernet%d" % ((i - 1) * 4) + for i in range(5, 29): + port_alias_map["Ethernet%d/1" % i] = "Ethernet%d" % ((i - 5) * 4) + for i in range(29, 37): + port_alias_map["Ethernet%d" % i] = "Ethernet%d" % ((i - 5) * 4) elif hwsku == "Arista-7260CX3-C64": for i in range(1, 65): port_alias_map["Ethernet%d/1" % i] = "Ethernet%d" % ((i - 1) * 4)