Merge "Create route to system controller for mgmt vlan"

This commit is contained in:
Zuul 2018-10-22 20:38:07 +00:00 committed by Gerrit Code Review
commit 0e9dd0c74e
1 changed files with 2 additions and 2 deletions

View File

@ -2337,8 +2337,8 @@ def _create(interface, from_profile=False):
# Covers off LAG case here.
ifclass = new_interface['ifclass']
if ifclass == constants.INTERFACE_CLASS_PLATFORM and new_interface['networks']:
for network_id in new_interface['networks']:
if ifclass == constants.INTERFACE_CLASS_PLATFORM and interface['networks']:
for network_id in interface['networks']:
network = pecan.request.dbapi.network_get_by_id(network_id)
if network.type == constants.NETWORK_TYPE_MGMT:
cutils.perform_distributed_cloud_config(pecan.request.dbapi,