Пример #1
0
 def test_lsn_port_delete(self):
     lsn_id = "foo_lsn_id"
     lsn_port_id = "foo_port_id"
     lsnlib.lsn_port_delete(self.cluster, lsn_id, lsn_port_id)
     self.mock_request.assert_called_once_with(
         "DELETE",
         "/ws.v1/lservices-node/%s/lport/%s" % (lsn_id, lsn_port_id),
         cluster=self.cluster)
Пример #2
0
 def test_lsn_port_delete(self):
     lsn_id = "foo_lsn_id"
     lsn_port_id = "foo_port_id"
     lsnlib.lsn_port_delete(self.cluster, lsn_id, lsn_port_id)
     self.mock_request.assert_called_once_with(
         "DELETE",
         "/ws.v1/lservices-node/%s/lport/%s" % (lsn_id, lsn_port_id),
         cluster=self.cluster)
Пример #3
0
 def lsn_port_delete(self, context, lsn_id, lsn_port_id):
     """Delete a LSN port from the Logical Service Node."""
     try:
         lsn_api.lsn_port_delete(self.cluster, lsn_id, lsn_port_id)
     except (n_exc.NotFound, nsxlib.NvpApiClient.NvpApiException):
         LOG.warn(_('Unable to delete LSN Port %s'), lsn_port_id)
Пример #4
0
 def lsn_port_delete(self, context, lsn_id, lsn_port_id):
     """Delete a LSN port from the Logical Service Node."""
     try:
         lsn_api.lsn_port_delete(self.cluster, lsn_id, lsn_port_id)
     except (n_exc.NotFound, nvplib.NvpApiClient.NvpApiException):
         LOG.warn(_('Unable to delete LSN Port %s'), lsn_port_id)