Exemplo n.º 1
0
 def attach_port(self, port_id):
     port_binding_obj = binding.QosPolicyPortBinding(
         self.obj_context, policy_id=self.id, port_id=port_id)
     try:
         port_binding_obj.create()
     except db_exc.DBReferenceError as e:
         raise qos_exc.PortQosBindingError(policy_id=self.id,
                                           port_id=port_id,
                                           db_error=e)
Exemplo n.º 2
0
 def attach_port(self, port_id):
     LOG.info('%s(): caller(): %s', log_utils.get_fname(1),
              log_utils.get_fname(2))
     port_binding_obj = binding.QosPolicyPortBinding(self.obj_context,
                                                     policy_id=self.id,
                                                     port_id=port_id)
     try:
         port_binding_obj.create()
     except db_exc.DBReferenceError as e:
         raise qos_exc.PortQosBindingError(policy_id=self.id,
                                           port_id=port_id,
                                           db_error=e)