Example #1
0
 def detach_router(self, router_id):
     LOG.info('%s(): caller(): %s', log_utils.get_fname(1),
              log_utils.get_fname(2))
     deleted = binding.QosPolicyRouterGatewayIPBinding.delete_objects(
         self.obj_context, router_id=router_id)
     if not deleted:
         raise qos_exc.RouterQosBindingNotFound(router_id=router_id,
                                                policy_id=self.id)
Example #2
0
 def detach_router(self, router_id):
     deleted = binding.QosPolicyRouterGatewayIPBinding.delete_objects(
         self.obj_context, router_id=router_id)
     if not deleted:
         raise qos_exc.RouterQosBindingNotFound(router_id=router_id,
                                                policy_id=self.id)