コード例 #1
0
 def __init__(self, vswitch_api, nb_api, neutron_server_notifier=None):
     super(RyuDFAdapter, self).__init__()
     self.dispatcher = dispatcher.AppDispatcher(cfg.CONF.df.apps_list)
     self.vswitch_api = vswitch_api
     self.nb_api = nb_api
     self.neutron_server_notifier = neutron_server_notifier
     self._datapath = None
     self.table_handlers = {}
     self.first_connect = True
コード例 #2
0
ファイル: ryu_base_app.py プロジェクト: rski/dragonflow
 def __init__(self, db_store=None, vswitch_api=None, nb_api=None):
     super(RyuDFAdapter, self).__init__(db_store=db_store,
                                        vswitch_api=vswitch_api,
                                        nb_api=nb_api)
     self.dispatcher = dispatcher.AppDispatcher('dragonflow.controller',
                                                cfg.CONF.df.apps_list)
     self.db_store = db_store
     self.vswitch_api = vswitch_api
     self.nb_api = nb_api
     self._datapath = None
     self.table_handlers = {}
コード例 #3
0
 def __init__(self, chassis_name):
     self.next_network_id = 0
     self.db_store = db_store.DbStore()
     self.nb_api = None
     self.vswitch_api = None
     self.chassis_name = chassis_name
     self.ip = cfg.CONF.df.local_ip
     self.tunnel_type = cfg.CONF.df.tunnel_type
     self.sync_finished = False
     kwargs = dict(db_store=self.db_store)
     self.dispatcher = dispatcher.AppDispatcher('dragonflow.controller',
                                                cfg.CONF.df.apps_list,
                                                kwargs)
コード例 #4
0
 def __init__(self, switch_backend, nb_api,
              db_change_callback,
              neutron_server_notifier=None):
     super(OsKenDFAdapter, self).__init__()
     #通过配置的app_list获得dispatcher对象
     self.dispatcher = dispatcher.AppDispatcher(cfg.CONF.df.apps_list)
     self.vswitch_api = switch_backend.vswitch_api
     self.nb_api = nb_api
     self.switch_backend = switch_backend
     self.neutron_server_notifier = neutron_server_notifier
     self._datapath = None
     self.table_handlers = {}
     self.first_connect = True
     self.db_change_callback = db_change_callback
コード例 #5
0
ファイル: ryu_base_app.py プロジェクト: gampel/dragonflow
 def __init__(self,
              vswitch_api,
              nb_api,
              db_change_callback,
              neutron_server_notifier=None):
     super(RyuDFAdapter, self).__init__()
     self.dispatcher = dispatcher.AppDispatcher(cfg.CONF.df.apps_list)
     self.vswitch_api = vswitch_api
     self.nb_api = nb_api
     self.neutron_server_notifier = neutron_server_notifier
     self._datapath = None
     self.table_handlers = {}
     self.first_connect = True
     self.db_change_callback = db_change_callback
     self._new_dp = new_dp.Datapath(new_dp_layout.get_datapath_layout())
コード例 #6
0
 def setUp(self):
     super(TestAppDispatcher, self).setUp()
     self.dispatcher = dispatcher.AppDispatcher("")