]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Moved the configuration variables.
authorJason Zhang <zhesen@nttmcl.com>
Mon, 4 Mar 2013 19:45:22 +0000 (11:45 -0800)
committerJason Zhang <zhesen@nttmcl.com>
Wed, 6 Mar 2013 02:50:52 +0000 (18:50 -0800)
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

quantum/agent/dhcp_agent.py
quantum/agent/linux/interface.py
quantum/debug/debug_agent.py

index 89aa5604dc68e860510c813194434dd9df769c0a..f19156a6eb0f958b84e43dfc9013126119954a26 100644 (file)
@@ -455,19 +455,6 @@ class NetworkCache(object):
 
 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."))
     ]
index 496f0905450e457a55f3a94087b4f0a62486ae0e..b07cbbd57fa5453e036c10b97e3618aef67e451b 100644 (file)
@@ -42,7 +42,20 @@ OPTS = [
     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")),
 ]
 
 
index 156eec416dab27799dcd439d486677addfc4c6ce..e841f3a3e58ab811bc58a5e435bc08e6c706fcab 100644 (file)
@@ -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',