fixed tests, moved compute network config call, added notes, made inject option into a boolean

This commit is contained in:
Vishvananda Ishaya
2010-08-04 15:44:23 -07:00
parent 2f1ffcfb6f
commit 99cfb17985
2 changed files with 10 additions and 15 deletions

View File

@@ -23,7 +23,6 @@
from nova import flags
from nova import twistd
from nova import utils
from nova.network import service
@@ -34,8 +33,4 @@ if __name__ == '__main__':
twistd.serve(__file__)
if __name__ == '__builtin__':
t = FLAGS.network_type
if t == 'flat':
application = service.FlatNetworkService.create()
elif t == 'vlan':
application = service.VlanNetworkService.create()
application = service.type_to_class(FLAGS.network_type).create()