Skip to content
Snippets Groups Projects
Commit 49261d52 authored by JORGE SASIAIN's avatar JORGE SASIAIN
Browse files

Fix getting port interface names

parent 42a483f8
Branches
No related tags found
No related merge requests found
......@@ -334,11 +334,11 @@ def load_router_ports(hostname, ssh_config, port=830):
def _port_info(position):
return _ports.setdefault(
_p['position'],
position,
{
'fpc': fpc['slot'],
'pic': pic['pic'],
'position': _p['position']
'position': position
}
)
......@@ -362,7 +362,7 @@ def load_router_ports(hostname, ssh_config, port=830):
value = _port_info(ifc['position'])
# mx2.lab fpc 8 ...?
# # must be in the physical list
# assert ifc['position'] in _ports
# assert _p['position'] in _ports
value['interface'] = ifc['name']
# append the physical ports for this pic to the fpc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment