Add 'deployment_type' configuration parameter
Value of this parameter will be refered in the code to determine if containers are being launched inside virtual machines or on baremetal machines. Partially Implements blueprint containers-in-instances Change-Id: Icbd561504c9bc39dbf7ef4b0f97561882dd8b1c2
This commit is contained in:
parent
c6c12baebe
commit
d5e87557f1
|
@ -27,6 +27,10 @@ core_opts = [
|
|||
cfg.StrOpt('subnetpool_name_prefix',
|
||||
default='kuryrPool',
|
||||
help=_('Neutron subnetpool name will be prefixed by this.')),
|
||||
cfg.StrOpt('deployment_type',
|
||||
default='baremetal',
|
||||
help=_("baremetal or nested-containers are the supported"
|
||||
" values.")),
|
||||
]
|
||||
|
||||
neutron_group = cfg.OptGroup(
|
||||
|
|
|
@ -25,3 +25,5 @@ class ConfigurationTest(base.TestCase):
|
|||
cfg.CONF.neutron.default_subnetpool_v6)
|
||||
self.assertEqual('public',
|
||||
cfg.CONF.neutron.endpoint_type)
|
||||
self.assertEqual('baremetal',
|
||||
cfg.CONF.deployment_type)
|
||||
|
|
Loading…
Reference in New Issue