Exemplo n.º 1
0
 def attach_router(self, router_id):
     router_binding_obj = binding.QosPolicyRouterGatewayIPBinding(
         self.obj_context, policy_id=self.id, router_id=router_id)
     try:
         router_binding_obj.create()
     except db_exc.DBReferenceError as e:
         raise qos_exc.RouterQosBindingError(policy_id=self.id,
                                             router_id=router_id,
                                             db_error=e)
Exemplo n.º 2
0
 def attach_router(self, router_id):
     LOG.info('%s(): caller(): %s', log_utils.get_fname(1),
              log_utils.get_fname(2))
     router_binding_obj = binding.QosPolicyRouterGatewayIPBinding(
         self.obj_context, policy_id=self.id, router_id=router_id)
     try:
         router_binding_obj.create()
     except db_exc.DBReferenceError as e:
         raise qos_exc.RouterQosBindingError(policy_id=self.id,
                                             router_id=router_id,
                                             db_error=e)