MP2P migration: Support multiple tier0 uplink ports
Change-Id: Idf3e4c8403855c38a4be4b47d1096035e9c55835
This commit is contained in:
parent
d392d88c76
commit
f186fc2990
|
@ -908,8 +908,8 @@ def migrate_tier0_config(nsxlib, nsxpolicy, tier0s):
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
for tier0 in tier0s:
|
for tier0 in tier0s:
|
||||||
uplink_port = nsxlib.logical_router_port.get_tier0_uplink_port(tier0)
|
uplink_ports = nsxlib.logical_router_port.get_tier0_uplink_ports(tier0)
|
||||||
if uplink_port:
|
for uplink_port in uplink_ports:
|
||||||
entries.append({'manager_id': uplink_port['id']})
|
entries.append({'manager_id': uplink_port['id']})
|
||||||
|
|
||||||
migrate_resource(nsxlib, 'TIER0_LOGICAL_ROUTER_PORT', entries,
|
migrate_resource(nsxlib, 'TIER0_LOGICAL_ROUTER_PORT', entries,
|
||||||
|
|
Loading…
Reference in New Issue