Merge "Handle config file without cluster network"
This commit is contained in:
commit
b63ed49e15
|
@ -3007,6 +3007,7 @@ class ConfigAssistant():
|
||||||
|
|
||||||
# Cluster network configuration
|
# Cluster network configuration
|
||||||
if self.kubernetes:
|
if self.kubernetes:
|
||||||
|
if config.has_section('cCLUSTER'):
|
||||||
self.cluster_host_interface_name = config.get(
|
self.cluster_host_interface_name = config.get(
|
||||||
'cCLUSTER', 'CLUSTER_INTERFACE_NAME')
|
'cCLUSTER', 'CLUSTER_INTERFACE_NAME')
|
||||||
self.cluster_host_interface = config.get(
|
self.cluster_host_interface = config.get(
|
||||||
|
@ -3029,6 +3030,10 @@ class ConfigAssistant():
|
||||||
'cCLUSTER', 'CLUSTER_BOND_POLICY')
|
'cCLUSTER', 'CLUSTER_BOND_POLICY')
|
||||||
self.cluster_host_subnet = IPNetwork(config.get(
|
self.cluster_host_subnet = IPNetwork(config.get(
|
||||||
'cCLUSTER', 'CLUSTER_SUBNET'))
|
'cCLUSTER', 'CLUSTER_SUBNET'))
|
||||||
|
else:
|
||||||
|
self.cluster_host_interface_name = \
|
||||||
|
self.management_interface_name
|
||||||
|
self.cluster_host_interface = self.management_interface
|
||||||
self.cluster_host_interface_configured = True
|
self.cluster_host_interface_configured = True
|
||||||
|
|
||||||
# External OAM network configuration
|
# External OAM network configuration
|
||||||
|
|
Loading…
Reference in New Issue