Commit 5d298132 authored by Simon Redman's avatar Simon Redman

Make topomap_parser produce NetJSON with lan property of nodes be a mapping of...

Make topomap_parser produce NetJSON with lan property of nodes be a mapping of lans to IP addresses, per README (and need)
parent c89d7301
......@@ -174,13 +174,11 @@ def parse_topomap_to_netjson(topomap):
node['local_addresses'] = local_addresses
node['properties'] = properties
lans = [] # List of LANs configured in Emulab
properties['lans'] = lans
properties['lans'] = interfaces
# Add a management-ip property, which should be the IP address or hostname to use for remote access
properties['management-ip'] = management_ips[node_name]
for lan in interfaces:
lans.append(lan)
local_addresses.append(interfaces[lan])
nodes.append(node)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment