Пример #1
0
 def test_lsn_delete(self):
     lsn_id = "foo_id"
     lsnlib.lsn_delete(self.cluster, lsn_id)
     self.mock_request.assert_called_once_with("DELETE",
                                               "/ws.v1/lservices-node/%s" %
                                               lsn_id,
                                               cluster=self.cluster)
Пример #2
0
 def lsn_delete(self, context, lsn_id):
     """Delete a LSN given its id."""
     try:
         lsn_api.lsn_delete(self.cluster, lsn_id)
     except (n_exc.NotFound, nsxlib.NvpApiClient.NvpApiException):
         LOG.warn(_('Unable to delete Logical Service Node %s'), lsn_id)
Пример #3
0
 def lsn_delete(self, context, lsn_id):
     """Delete a LSN given its id."""
     try:
         lsn_api.lsn_delete(self.cluster, lsn_id)
     except (n_exc.NotFound, nvplib.NvpApiClient.NvpApiException):
         LOG.warn(_('Unable to delete Logical Service Node %s'), lsn_id)
Пример #4
0
 def test_lsn_delete(self):
     lsn_id = "foo_id"
     lsnlib.lsn_delete(self.cluster, lsn_id)
     self.mock_request.assert_called_once_with(
         "DELETE",
         "/ws.v1/lservices-node/%s" % lsn_id, cluster=self.cluster)