Fix cluster host network when mgmt is tagged

When management interface is tagged on pxeboot, the cluster-host
network should be assigned to the mgmt interface by default, not
the pxeboot interface.
This commit is to set the vlan id of the cluster-host interface
to that of the management interface if the cluster-host interface
is not specified in the configuration file.

Closes-Bug: 1815053
Change-Id: Ia9b003af118df21eecba4d1b644c2738761e7553
Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
This commit is contained in:
Teresa Ho 2019-02-08 09:20:44 -05:00
parent fe59705dd1
commit e7c0133967
1 changed files with 2 additions and 1 deletions

View File

@ -2475,7 +2475,7 @@ class ConfigAssistant():
while True:
user_input = input(
"Configure an cluster host VLAN [y/N]: ")
"Configure a cluster host VLAN [y/N]: ")
if user_input.lower() == 'q':
raise UserQuit
elif user_input.lower() == 'y':
@ -3223,6 +3223,7 @@ class ConfigAssistant():
self.cluster_host_interface_name = \
self.management_interface_name
self.cluster_host_interface = self.management_interface
self.cluster_host_vlan = self.management_vlan
self.cluster_host_interface_configured = True
# External OAM network configuration