本文整理汇总了Python中neutron.db.api.register_models函数的典型用法代码示例。如果您正苦于以下问题:Python register_models函数的具体用法?Python register_models怎么用?Python register_models使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了register_models函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: setUp
def setUp(self):
self.context = context.Context('fake', 'fake', is_admin=False)
super(QuarkIPAddressFunctionalTest, self).setUp()
cfg.CONF.set_override('connection', 'sqlite://', 'database')
neutron_db_api.configure_db()
neutron_db_api.register_models(models.BASEV2)
开发者ID:mohanraj1311,项目名称:quark,代码行数:7,代码来源:test_ip_addresses.py
示例2: setUp
def setUp(self):
super(TestDBAPI, self).setUp()
configure_mappers()
cfg.CONF.set_override('connection', 'sqlite://', 'database')
neutron_db_api.configure_db()
neutron_db_api.register_models(models.BASEV2)
开发者ID:mohanraj1311,项目名称:quark,代码行数:7,代码来源:test_db_api.py
示例3: __init__
def __init__(self):
"""Initialization for the loadbalancer service plugin."""
qdbapi.register_models()
self.service_type_manager = st_db.ServiceTypeManager.get_instance()
self._load_drivers()
#self._crdclient = crdclient.Client(username=cfg.CONF.ml2_fslsdn.crd_user_name,
# password=cfg.CONF.ml2_fslsdn.crd_password,
# tenant_name=cfg.CONF.ml2_fslsdn.crd_tenant_name,
# auth_url=cfg.CONF.ml2_fslsdn.crd_auth_url)
self._crdclient = CrdClient()
开发者ID:Open-SFC,项目名称:neutron,代码行数:11,代码来源:fsl_plugin.py
示例4: __init__
def __init__(self):
qdbapi.register_models()
super(L3VRouterPlugin, self).__init__()
self.initialize()
self.router_scheduler = importutils.import_object(
cfg.CONF.router_scheduler_driver)
# TODO(yamahata):XXX
# for backlogging of non-scheduled routers
self._setup_backlog_handling()
self._setup_device_handling()
开发者ID:manjeetbhatia,项目名称:test_l3,代码行数:11,代码来源:l3_vrouter_plugin.py
示例5: __init__
def __init__(self):
"""Do the initialization for the firewall service plugin here."""
qdbapi.register_models()
self.endpoints = [FirewallCallbacks(self)]
self.conn = rpc_compat.create_connection(new=True)
self.conn.create_consumer(
topics.FIREWALL_PLUGIN, self.endpoints, fanout=False)
self.conn.consume_in_threads()
self.agent_rpc = FirewallAgentApi(
topics.L3_AGENT,
cfg.CONF.host
)
开发者ID:brucezy,项目名称:neutron,代码行数:15,代码来源:fwaas_plugin.py
示例6: setUp
def setUp(self):
super(TestNVPDriver, self).setUp()
if not hasattr(self, 'driver'):
self.driver = quark.drivers.nvp_driver.NVPDriver()
cfg.CONF.set_override('connection', 'sqlite://', 'database')
cfg.CONF.set_override('max_rules_per_group', 3, 'NVP')
cfg.CONF.set_override('max_rules_per_port', 1, 'NVP')
self.driver.max_ports_per_switch = 0
db_api.configure_db()
db_api.register_models(models.BASEV2)
self.lswitch_uuid = "12345678-1234-1234-1234-123456781234"
self.context.tenant_id = "tid"
self.lport_uuid = "12345678-0000-0000-0000-123456781234"
self.net_id = "12345678-1234-1234-1234-123412341234"
self.port_id = "12345678-0000-0000-0000-123412341234"
self.profile_id = "12345678-0000-0000-0000-000000000000"
self.d_pkg = "quark.drivers.nvp_driver.NVPDriver"
self.max_spanning = 3
self.driver.limits.update({'max_rules_per_group': 3,
'max_rules_per_port': 2})
开发者ID:mohanraj1311,项目名称:quark,代码行数:23,代码来源:test_nvp_driver.py
示例7: __init__
def __init__(self):
"""Initialization for the loadbalancer service plugin."""
qdbapi.register_models()
self._load_drivers()
开发者ID:CiscoSystems,项目名称:quantum,代码行数:5,代码来源:plugin.py
示例8: __init__
def __init__(self):
"""Do the initialization for the vpn service plugin here."""
qdbapi.register_models()
开发者ID:CampHarmony,项目名称:neutron,代码行数:3,代码来源:vpn_db.py
示例9: _initialize_db
def _initialize_db(self):
db.configure_db()
db.register_models(models_v2.model_base.BASEV2)
开发者ID:ArifovicH,项目名称:neutron,代码行数:3,代码来源:servicetype_db.py
示例10: __init__
def __init__(self):
super(ApicL3ServicePlugin, self).__init__()
qdbapi.register_models(base=model_base.BASEV2)
self.manager = apic_manager.APICManager()
开发者ID:gjholler,项目名称:neutron,代码行数:4,代码来源:l3_apic.py
示例11: __init__
def __init__(self):
qdbapi.register_models(base=model_base.BASEV2)
self.setup_rpc()
self.router_scheduler = importutils.import_object(
cfg.CONF.router_scheduler_driver)
开发者ID:aaaaatoz,项目名称:neutron,代码行数:5,代码来源:l3_router_plugin.py
示例12: __init__
def __init__(self):
"""Initialization for the loadbalancer service plugin."""
qdbapi.register_models()
self.service_type_manager = st_db.ServiceTypeManager.get_instance()
self._load_drivers()
开发者ID:ChengZuo,项目名称:neutron,代码行数:6,代码来源:plugin.py
示例13: __init__
def __init__(self):
neutron_db_api.configure_db()
neutron_db_api.register_models(base=models.BASEV2)
开发者ID:blamarvt,项目名称:quark,代码行数:3,代码来源:plugin.py
示例14: __init__
def __init__(self):
LOG.info("Starting quark plugin")
neutron_db_api.configure_db()
neutron_db_api.register_models(base=models.BASEV2)
开发者ID:blamarvt,项目名称:quark-1,代码行数:4,代码来源:plugin.py
示例15: __init__
def __init__(self):
dbapi.register_models()
self.meter_rpc = metering_rpc_agent_api.MeteringAgentNotifyAPI()
开发者ID:JoeMido,项目名称:neutron,代码行数:4,代码来源:metering_db.py
注:本文中的neutron.db.api.register_models函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论