From 440b5eb6b77c5ad04961126fdc0cf592b3b56561 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Wed, 2 Dec 2015 11:19:13 +0000 Subject: Update netmap for Switch Address column. Clarify in the spreadsheet that this is a hostname or IP address of the switch, not a shorthand. Change-Id: Ie3548d7d62074a0e69121119ef5e7ea8251ddcc8 --- netmap-csv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'netmap-csv.py') diff --git a/netmap-csv.py b/netmap-csv.py index 87e3cb3..d773681 100755 --- a/netmap-csv.py +++ b/netmap-csv.py @@ -70,7 +70,7 @@ def main(args): rows.append(row) for row in rows: for key, value in row.items(): - if key == 'Switch' and value and 'Switch Port' in row: + if key == 'Switch Address' and value and 'Switch Port' in row: try: int(row['Switch Port']) except (ValueError, TypeError): @@ -111,7 +111,7 @@ def main(args): devices[name].setdefault('map', {}) devices[name]['map'].setdefault(iface, {}) devices[name]['map'][iface].update({ - row['Switch']: int(row['Switch Port']) + row['Switch Address']: int(row['Switch Port']) }) if devices: outputs = glob.glob('./output/*.jinja2') -- cgit v1.2.3