Exemplo n.º 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)
Exemplo n.º 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, api_exc.NsxApiException):
         LOG.warn(_('Unable to delete Logical Service Node %s'), lsn_id)
Exemplo n.º 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, api_exc.NsxApiException):
         LOG.warn(_('Unable to delete Logical Service Node %s'), lsn_id)
Exemplo n.º 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)