1
# Copyright 2015 Radware LTD.
3
# Licensed under the Apache License, Version 2.0 (the "License"); you may
4
# not use this file except in compliance with the License. You may obtain
5
# a copy of the License at
7
# http://www.apache.org/licenses/LICENSE-2.0
9
# Unless required by applicable law or agreed to in writing, software
10
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
# License for the specific language governing permissions and limitations
16
from neutron.i18n import _LE
18
from neutron_lbaas.common import exceptions
21
class RadwareLBaasV2Exception(exceptions.LbaasException):
22
message = _LE('An unknown exception occurred in '
23
'Radware LBaaS v2 provider.')
26
class AuthenticationMissing(RadwareLBaasV2Exception):
27
message = _LE('vDirect user/password missing. '
28
'Specify in configuration file, under [radwarev2] section')
31
class WorkflowTemplateMissing(RadwareLBaasV2Exception):
32
message = _LE('Workflow template %(workflow_template)s is missing '
33
'on vDirect server. Upload missing workflow')
36
class RESTRequestFailure(RadwareLBaasV2Exception):
37
message = _LE('REST request failed with status %(status)s. '
38
'Reason: %(reason)s, Description: %(description)s. '
39
'Success status codes are %(success_codes)s')
42
class UnsupportedEntityOperation(RadwareLBaasV2Exception):
43
message = _LE('%(operation)s operation is not supported for %(entity)s.')