Beispiel #1
0
 def detach_network(self, network_id):
     LOG.info('%s(): caller(): %s', log_utils.get_fname(1),
              log_utils.get_fname(2))
     deleted = binding.QosPolicyNetworkBinding.delete_objects(
         self.obj_context, network_id=network_id)
     if not deleted:
         raise qos_exc.NetworkQosBindingNotFound(net_id=network_id,
                                                 policy_id=self.id)
Beispiel #2
0
 def detach_network(self, network_id):
     deleted = binding.QosPolicyNetworkBinding.delete_objects(
         self.obj_context, network_id=network_id)
     if not deleted:
         raise qos_exc.NetworkQosBindingNotFound(net_id=network_id,
                                                 policy_id=self.id)