Add subnet_per_namespace config option

Change-Id: I0e2f3834bde465560b8d4c4ae375c38b41118000
Depends-on: I49e0f59008894078f9e40198873caa78767ef0b3
This commit is contained in:
Itzik Brown 2019-10-07 12:20:58 +03:00
parent 42c4d53441
commit 66958972da
2 changed files with 4 additions and 2 deletions

View File

@ -79,4 +79,6 @@ kuryr_k8s_opts = [
help="The label is used to identify the Kuryr controller pods"),
cfg.BoolOpt("prepopulation_enabled", default=False,
help="Whether prepopulation of ports is enabled"),
cfg.BoolOpt("subnet_per_namespace", default=False,
help="Whether there is a subnet per each namespace"),
]

View File

@ -37,8 +37,8 @@ class TestPortPoolScenario(base.BaseKuryrScenarioTest):
@classmethod
def skip_checks(cls):
super(TestPortPoolScenario, cls).skip_checks()
if not CONF.kuryr_kubernetes.namespace_enabled:
raise cls.skipException('Namespace driver and handler must be '
if not CONF.kuryr_kubernetes.subnet_per_namespace:
raise cls.skipException('Subnet per namespace must be '
'enabled to run these tests')
if not CONF.kuryr_kubernetes.port_pool_enabled:
raise cls.skipException(