MP2P migration: Support multiple tier0 uplink ports

Change-Id: Idf3e4c8403855c38a4be4b47d1096035e9c55835
This commit is contained in:
asarfaty 2020-08-25 06:21:42 +02:00 committed by Adit Sarfaty
parent d392d88c76
commit f186fc2990
1 changed files with 2 additions and 2 deletions

View File

@ -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,