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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user