From a62219e6acb02a3b90f214dea775209b582ee887 Mon Sep 17 00:00:00 2001 From: Teresa Ho Date: Mon, 22 Oct 2018 13:45:21 -0400 Subject: [PATCH] Create route to system controller for mgmt vlan This update corrects the problem that the route to the system controller is not created when management vlan interface is created. Change-Id: Id6445e7667bbd3771c480970900bf0d4c1942bb0 Closes-Bug: 1798609 Signed-off-by: Teresa Ho (cherry picked from commit 34b83ba9259f60b84ce9f40003645b50caf72f11) --- sysinv/sysinv/sysinv/sysinv/api/controllers/v1/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/interface.py b/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/interface.py index 1236b7c112..17d08a6bd5 100644 --- a/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/interface.py +++ b/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/interface.py @@ -2335,8 +2335,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,