summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Williams <neil.williams@linaro.org>2015-12-02 11:19:13 +0000
committerNeil Williams <neil.williams@linaro.org>2015-12-02 11:19:13 +0000
commit440b5eb6b77c5ad04961126fdc0cf592b3b56561 (patch)
treeb25458a49be33290c66c25be4e9633c5575e470e
parentb7b3c94d2ecb14ddf453360896ed6c74b6b308ef (diff)
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
-rwxr-xr-xnetmap-csv.py4
1 files changed, 2 insertions, 2 deletions
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')