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:
Vikas Choudhary 2016-08-29 16:06:31 +05:30 committed by Antoni Segura Puimedon
parent c6c12baebe
commit d5e87557f1
2 changed files with 6 additions and 0 deletions

View File

@ -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(

View File

@ -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)