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 <teresa.ho@windriver.com>
(cherry picked from commit 34b83ba925)
This commit is contained in:
Teresa Ho 2018-10-22 13:45:21 -04:00
parent 07d89cb5b0
commit a62219e6ac
1 changed files with 2 additions and 2 deletions

View File

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