Skip to content

Commit

Permalink
Moved the configuration variables.
Browse files Browse the repository at this point in the history
Moved the configuration variables from dhcp agent
to linux interface so l3-agent works with
Metadriver.

Also removed the unnecessary configuration variables
from quantum debug agent because of the above
modification.

Fixes: bug #1138757

Change-Id: Ib23fee18a08ef1c531feb05d98c9a76f5385a4ff
  • Loading branch information
zzs committed Mar 6, 2013
1 parent 99761bc commit e91818b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 27 deletions.
13 changes: 0 additions & 13 deletions quantum/agent/dhcp_agent.py
Expand Up @@ -455,19 +455,6 @@ def get_state(self):

class DeviceManager(object):
OPTS = [
cfg.StrOpt('admin_user',
help=_("Admin username")),
cfg.StrOpt('admin_password',
help=_("Admin password"),
secret=True),
cfg.StrOpt('admin_tenant_name',
help=_("Admin tenant name")),
cfg.StrOpt('auth_url',
help=_("Authentication URL")),
cfg.StrOpt('auth_strategy', default='keystone',
help=_("The type of authentication to use")),
cfg.StrOpt('auth_region',
help=_("Authentication region")),
cfg.StrOpt('interface_driver',
help=_("The driver used to manage the virtual interface."))
]
Expand Down
15 changes: 14 additions & 1 deletion quantum/agent/linux/interface.py
Expand Up @@ -42,7 +42,20 @@
cfg.StrOpt('network_device_mtu',
help=_('MTU setting for device.')),
cfg.StrOpt('meta_flavor_driver_mappings',
help=_('Mapping between flavor and LinuxInterfaceDriver'))
help=_('Mapping between flavor and LinuxInterfaceDriver')),
cfg.StrOpt('admin_user',
help=_("Admin username")),
cfg.StrOpt('admin_password',
help=_("Admin password"),
secret=True),
cfg.StrOpt('admin_tenant_name',
help=_("Admin tenant name")),
cfg.StrOpt('auth_url',
help=_("Authentication URL")),
cfg.StrOpt('auth_strategy', default='keystone',
help=_("The type of authentication to use")),
cfg.StrOpt('auth_region',
help=_("Authentication region")),
]


Expand Down
13 changes: 0 additions & 13 deletions quantum/debug/debug_agent.py
Expand Up @@ -37,19 +37,6 @@ class QuantumDebugAgent():

OPTS = [
# Needed for drivers
cfg.StrOpt('admin_user',
help=_("Admin user")),
cfg.StrOpt('admin_password',
help=_("Admin password"),
secret=True),
cfg.StrOpt('admin_tenant_name',
help=_("Admin tenant name")),
cfg.StrOpt('auth_url',
help=_("Authentication URL")),
cfg.StrOpt('auth_strategy', default='keystone',
help=_("The type of authentication to use")),
cfg.StrOpt('auth_region',
help=_("Authentication region")),
cfg.BoolOpt('use_namespaces', default=True,
help=_("Use Linux network namespaces")),
cfg.StrOpt('interface_driver',
Expand Down

0 comments on commit e91818b

Please sign in to comment.