示例#1
0
 def get_router(self, context, id, fields=None):
     flavor = meta_db_v2.get_flavor_by_router(context.session, id)
     plugin = self._get_l3_plugin(flavor)
     router = plugin.get_router(context, id, fields)
     if not fields or FLAVOR_ROUTER in fields:
         self._extend_router_dict(context, router)
     return router
 def get_router(self, context, id, fields=None):
     flavor = meta_db_v2.get_flavor_by_router(context.session, id)
     plugin = self._get_l3_plugin(flavor)
     router = plugin.get_router(context, id, fields)
     if not fields or FLAVOR_ROUTER in fields:
         self._extend_router_dict(context, router)
     return router
示例#3
0
 def delete_router(self, context, id):
     flavor = meta_db_v2.get_flavor_by_router(context.session, id)
     plugin = self._get_l3_plugin(flavor)
     return plugin.delete_router(context, id)
示例#4
0
 def _get_flavor_by_router_id(self, context, router_id):
     return meta_db_v2.get_flavor_by_router(context.session, router_id)
 def update_router(self, context, id, router):
     flavor = meta_db_v2.get_flavor_by_router(id)
     plugin = self._get_l3_plugin(flavor)
     return plugin.update_router(context, id, router)
 def _get_flavor_by_router_id(self, router_id):
     return meta_db_v2.get_flavor_by_router(router_id)
 def delete_router(self, context, id):
     flavor = meta_db_v2.get_flavor_by_router(context.session, id)
     plugin = self._get_l3_plugin(flavor)
     return plugin.delete_router(context, id)
 def _get_flavor_by_router_id(self, context, router_id):
     return meta_db_v2.get_flavor_by_router(context.session, router_id)
示例#9
0
 def update_router(self, context, id, router):
     flavor = meta_db_v2.get_flavor_by_router(id)
     plugin = self._get_l3_plugin(flavor)
     return plugin.update_router(context, id, router)
示例#10
0
 def _get_flavor_by_router_id(self, router_id):
     return meta_db_v2.get_flavor_by_router(router_id)