Esempio n. 1
0
 def lsn_port_save(self, context, lsn_port_id, subnet_id, mac_addr, lsn_id):
     """Save LSN Port information to the DB."""
     try:
         lsn_db.lsn_port_add_for_lsn(context, lsn_port_id, subnet_id,
                                     mac_addr, lsn_id)
     except db_exc.DBError:
         err_msg = _('Unable to save LSN port for subnet %s') % subnet_id
         LOG.exception(err_msg)
         raise p_exc.NvpPluginException(err_msg=err_msg)
Esempio n. 2
0
 def lsn_port_save(self, context, lsn_port_id, subnet_id, mac_addr, lsn_id):
     """Save LSN Port information to the DB."""
     try:
         lsn_db.lsn_port_add_for_lsn(
             context, lsn_port_id, subnet_id, mac_addr, lsn_id)
     except db_exc.DBError:
         err_msg = _('Unable to save LSN port for subnet %s') % subnet_id
         LOG.exception(err_msg)
         raise p_exc.NvpPluginException(err_msg=err_msg)