Add mode 2 to supported LAG mode for cluster interface

LAG mode 2 should be supported because AE balanced mode
should be supported for the cluster-host interface. Thus
the supported_lag_mode for cluser network should be
[1, 2, 4].

Co-Authored-By: Huifeng Le<huifeng.le@intel.com>

Change-Id: I0b81c963705820a9fec6225dac1cee2a14bbe030
Closes-Bug: #1819738
Story: #2004273
This commit is contained in:
mid_one 2019-03-28 19:29:52 +08:00
parent dc6c342746
commit 1207bd850e

View File

@ -816,7 +816,7 @@ class ConfigValidator(object):
(cluster_prefix, str(self.cluster_network.cidr)))
if self.cluster_network.logical_interface.lag_interface:
supported_lag_mode = [1, 4]
supported_lag_mode = [1, 2, 4]
if (self.cluster_network.logical_interface.lag_mode not in
supported_lag_mode):
raise ConfigFail(