Huge network refactor, Round I

Made network into its own binary
Made simple network a plugabble class
Fixed unittests
Moved various classes around
Moved mac generation into network class
This commit is contained in:
Vishvananda Ishaya
2010-08-03 14:31:47 -07:00
parent c02dc69e72
commit e163a8475d
4 changed files with 146 additions and 115 deletions

View File

@@ -21,12 +21,19 @@
Twistd daemon for the nova network nodes.
"""
from nova import flags
from nova import twistd
from nova.network import service
from nova import utils
FLAGS = flags.FLAGS
flags.DEFINE_string('network_service',
'nova.network.service.VlanNetworkService',
'Service Class for Networking')
if __name__ == '__main__':
twistd.serve(__file__)
if __name__ == '__builtin__':
application = service.NetworkService.create()
application = utils.import_class(FLAGS.network_service).create()