summaryrefslogtreecommitdiff
path: root/bin/nova-dhcpbridge
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-02-23 11:20:52 -0800
committerVishvananda Ishaya <vishvananda@gmail.com>2011-02-23 11:20:52 -0800
commit3c09d486f862de7069b848e8124787cfbf4247f8 (patch)
tree104b578d57a5be15f81c52fa22802253eb0d78ad /bin/nova-dhcpbridge
parent489f325b8161a70f0f7288135ad04c331bcbbe90 (diff)
downloadnova-3c09d486f862de7069b848e8124787cfbf4247f8.tar.gz
use flags for sqlite db names and fix flags in dhcpbridge
Diffstat (limited to 'bin/nova-dhcpbridge')
-rwxr-xr-xbin/nova-dhcpbridge13
1 files changed, 1 insertions, 12 deletions
diff --git a/bin/nova-dhcpbridge b/bin/nova-dhcpbridge
index 04a1771f05..3dd9de3673 100755
--- a/bin/nova-dhcpbridge
+++ b/bin/nova-dhcpbridge
@@ -105,18 +105,7 @@ def main():
logging.setup()
interface = os.environ.get('DNSMASQ_INTERFACE', 'br0')
if int(os.environ.get('TESTING', '0')):
- FLAGS.fake_rabbit = True
- FLAGS.network_size = 16
- FLAGS.connection_type = 'fake'
- FLAGS.fake_network = True
- FLAGS.auth_driver = 'nova.auth.dbdriver.DbDriver'
- FLAGS.num_networks = 5
- path = os.path.abspath(os.path.join(os.path.dirname(__file__),
- '..',
- 'nova',
- 'tests',
- 'tests.sqlite'))
- FLAGS.sql_connection = 'sqlite:///%s' % path
+ from nova.tests import fake_flags
action = argv[1]
if action in ['add', 'del', 'old']:
mac = argv[2]