networkapi.api_vip_request package¶
Subpackages¶
Submodules¶
networkapi.api_vip_request.exceptions module¶
-
exception
networkapi.api_vip_request.exceptions.
AlreadyVipRequestException
(detail=None)[source]¶ Bases:
rest_framework.exceptions.APIException
-
default_detail
= 'Vip with ipv4 or ipv6 already exists.'¶
-
status_code
= 400¶
-
-
exception
networkapi.api_vip_request.exceptions.
CreatedVipRequestValuesException
(msg=None)[source]¶ Bases:
rest_framework.exceptions.APIException
-
default_detail
= 'Vip Request already created. Cannot change values.'¶
-
status_code
= 400¶
-
-
exception
networkapi.api_vip_request.exceptions.
EnvironmentVipDoesNotExistException
(detail=None)[source]¶ Bases:
rest_framework.exceptions.APIException
-
default_detail
= 'Environment Vip Does Not Exist.'¶
-
status_code
= 404¶
-
-
exception
networkapi.api_vip_request.exceptions.
InvalidIdVipRequestException
(detail=None)[source]¶ Bases:
rest_framework.exceptions.APIException
-
default_detail
= 'Invalid id for Vip Request.'¶
-
status_code
= 400¶
-
-
exception
networkapi.api_vip_request.exceptions.
IpNotFoundByEnvironment
(msg='Environment of Ip is different of environment of vip request. Look the association of network of IP with environment vip')[source]¶ Bases:
rest_framework.exceptions.APIException
-
default_detail
= 'Environment of Ip is different of environment of vip request. Look the association of network of IP with environment vip'¶
-
status_code
= 400¶
-
-
exception
networkapi.api_vip_request.exceptions.
ServerPoolMemberDiffEnvironmentVipException
(msg=None)[source]¶ Bases:
rest_framework.exceptions.APIException
-
default_detail
= 'Server Pool Member is associated with different environment vip of vip request.'¶
-
status_code
= 400¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipConstraintCreated
(msg=None)[source]¶ Bases:
rest_framework.exceptions.APIException
-
default_detail
= 'Vip request can not be deleted because it is created in equipment.'¶
-
status_code
= 400¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipRequestAlreadyCreated
(msg=None)[source]¶ Bases:
rest_framework.exceptions.APIException
-
default_detail
= 'Vip Request already created.'¶
-
status_code
= 400¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipRequestDSCPError
(msg)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 500¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipRequestDSCPNotFoundError
(msg)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 404¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipRequestDoesNotExistException
(msg=None)[source]¶ Bases:
rest_framework.exceptions.APIException
-
default_detail
= 'Vip Request Does Not Exist.'¶
-
status_code
= 404¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipRequestError
(msg)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 500¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipRequestNotCreated
(msg=None)[source]¶ Bases:
rest_framework.exceptions.APIException
-
default_detail
= 'Vip Request not created.'¶
-
status_code
= 400¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipRequestNotFoundError
(msg)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 404¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipRequestOptionVipError
(msg)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 500¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipRequestOptionVipNotFoundError
(msg)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 404¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipRequestPortError
(msg)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 500¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipRequestPortNotFoundError
(msg)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 404¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipRequestPortOptionVipError
(msg)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 500¶
-
-
exception
networkapi.api_vip_request.exceptions.
VipRequestPortOptionVipNotFoundError
(msg)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 404¶
-
networkapi.api_vip_request.models module¶
-
class
networkapi.api_vip_request.models.
VipRequest
(id, created, ipv4_id, ipv6_id, environmentvip_id, business, service, name)[source]¶ Bases:
networkapi.models.BaseModel.BaseModel
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
default_names
¶ Decorator that converts a method with a single self argument into a property cached on the instance. # https://github.com/django/django/blob/2456ffa42c33d63b54579eae0f5b9cf2a8cd3714/django/utils/functional.py#L38-50
-
delete_v3
(bypass_ipv4=False, bypass_ipv6=False, sync=True)[source]¶ Delete Vip Request.
- @raise VipConstraintCreated: Vip request can not be deleted
- because it is created in equipment.
-
dscp
¶ Decorator that converts a method with a single self argument into a property cached on the instance. # https://github.com/django/django/blob/2456ffa42c33d63b54579eae0f5b9cf2a8cd3714/django/utils/functional.py#L38-50
-
environmentvip
¶
-
equipments
¶ Decorator that converts a method with a single self argument into a property cached on the instance. # https://github.com/django/django/blob/2456ffa42c33d63b54579eae0f5b9cf2a8cd3714/django/utils/functional.py#L38-50
-
classmethod
get_by_pk
(id)[source]¶ “Get Vip Request by id.
@return: Vip Request.
@raise VipRequestNotFoundError: Vip Request not registered. @raise VipRequestError: Failed to search for the Vip Request. @raise OperationalError: Lock wait timeout exceeded.
-
groups_permissions
¶ Decorator that converts a method with a single self argument into a property cached on the instance. # https://github.com/django/django/blob/2456ffa42c33d63b54579eae0f5b9cf2a8cd3714/django/utils/functional.py#L38-50
-
ipv4
¶
-
ipv6
¶
-
log
= <celery.utils.log.ProcessAwareLogger object>¶
-
objects
= <networkapi.models.BaseManager.BaseManager object>¶
-
options
¶ Decorator that converts a method with a single self argument into a property cached on the instance. # https://github.com/django/django/blob/2456ffa42c33d63b54579eae0f5b9cf2a8cd3714/django/utils/functional.py#L38-50
-
ports
¶ Decorator that converts a method with a single self argument into a property cached on the instance. # https://github.com/django/django/blob/2456ffa42c33d63b54579eae0f5b9cf2a8cd3714/django/utils/functional.py#L38-50
-
viprequestdscp_set
¶
-
viprequestoptionvip_set
¶
-
viprequestport_set
¶
-
exception
-
class
networkapi.api_vip_request.models.
VipRequestDSCP
(id, vip_request_id, dscp)[source]¶ Bases:
networkapi.models.BaseModel.BaseModel
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
classmethod
get_by_pk
(id)[source]¶ “Get Vip Request DSCP by id.
@return: Vip Request DSCP.
@raise VipRequestDscpNotFoundError: Vip Request DSCP not registered. @raise VipRequestDscpError: Failed to search for the Vip Request DSCP. @raise OperationalError: Lock wait timeout exceeded.
-
log
= <celery.utils.log.ProcessAwareLogger object>¶
-
objects
= <networkapi.models.BaseManager.BaseManager object>¶
-
vip_request
¶
-
exception
-
class
networkapi.api_vip_request.models.
VipRequestOptionVip
(id, vip_request_id, optionvip_id)[source]¶ Bases:
networkapi.models.BaseModel.BaseModel
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
cache_group
¶ Decorator that converts a method with a single self argument into a property cached on the instance. # https://github.com/django/django/blob/2456ffa42c33d63b54579eae0f5b9cf2a8cd3714/django/utils/functional.py#L38-50
-
classmethod
get_by_kind
(vip_request_id, kind)[source]¶ “Get Vip Request Option Vip by Vip Request and kind.
@return: Vip Request Option Vip.
@raise VipRequestOptionVipNotFoundError: Vip Request Option Vip not registered. @raise VipRequestOptionVipError: Failed to search for the Vip Request Option Vip. @raise OperationalError: Lock wait timeout exceeded.
-
classmethod
get_by_pk
(id)[source]¶ “Get Vip Request Option Vip by id.
@return: Vip Request Option Vip.
@raise VipRequestOptionVipNotFoundError: Vip Request Option Vip not registered. @raise VipRequestOptionVipError: Failed to search for the Vip Request Option Vip. @raise OperationalError: Lock wait timeout exceeded.
-
log
= <celery.utils.log.ProcessAwareLogger object>¶
-
objects
= <networkapi.models.BaseManager.BaseManager object>¶
-
optionvip
¶
-
persistence
¶ Decorator that converts a method with a single self argument into a property cached on the instance. # https://github.com/django/django/blob/2456ffa42c33d63b54579eae0f5b9cf2a8cd3714/django/utils/functional.py#L38-50
-
timeout
¶ Decorator that converts a method with a single self argument into a property cached on the instance. # https://github.com/django/django/blob/2456ffa42c33d63b54579eae0f5b9cf2a8cd3714/django/utils/functional.py#L38-50
-
traffic_return
¶ Decorator that converts a method with a single self argument into a property cached on the instance. # https://github.com/django/django/blob/2456ffa42c33d63b54579eae0f5b9cf2a8cd3714/django/utils/functional.py#L38-50
-
vip_request
¶
-
exception
-
class
networkapi.api_vip_request.models.
VipRequestPort
(id, vip_request_id, port, identifier)[source]¶ Bases:
networkapi.models.BaseModel.BaseModel
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
classmethod
get_by_pk
(id)[source]¶ “Get Vip Request Port by id.
@return: Vip Request Port.
@raise VipRequestPortNotFoundError: Vip Request Port not registered. @raise VipRequestPortError: Failed to search for the Vip Request Port. @raise OperationalError: Lock wait timeout exceeded.
-
log
= <celery.utils.log.ProcessAwareLogger object>¶
-
objects
= <networkapi.models.BaseManager.BaseManager object>¶
-
options
¶ Decorator that converts a method with a single self argument into a property cached on the instance. # https://github.com/django/django/blob/2456ffa42c33d63b54579eae0f5b9cf2a8cd3714/django/utils/functional.py#L38-50
-
pools
¶ Decorator that converts a method with a single self argument into a property cached on the instance. # https://github.com/django/django/blob/2456ffa42c33d63b54579eae0f5b9cf2a8cd3714/django/utils/functional.py#L38-50
-
vip_request
¶
-
viprequestportoptionvip_set
¶
-
viprequestportpool_set
¶
-
exception
-
class
networkapi.api_vip_request.models.
VipRequestPortOptionVip
(id, vip_request_port_id, optionvip_id)[source]¶ Bases:
networkapi.models.BaseModel.BaseModel
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
classmethod
get_by_pk
(id)[source]¶ “Get Vip Request Port Option Vip by id.
@return: Vip Request Port Option Vip.
@raise VipRequestPortOptionVipNotFoundError: Vip Request Port Option Vip not registered. @raise VipRequestPortOptionVipError: Failed to search for the Vip Request Port Option Vip. @raise OperationalError: Lock wait timeout exceeded.
-
log
= <celery.utils.log.ProcessAwareLogger object>¶
-
objects
= <networkapi.models.BaseManager.BaseManager object>¶
-
optionvip
¶
-
vip_request_port
¶
-
exception
-
class
networkapi.api_vip_request.models.
VipRequestPortPool
(id, vip_request_port_id, optionvip_id, server_pool_id, val_optionvip, order)[source]¶ Bases:
networkapi.models.BaseModel.BaseModel
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
classmethod
get_by_pk
(id)[source]¶ “Get Vip Request Port Pool by id.
@return: Vip Request Port Pool.
@raise VipRequestPortPoolNotFoundError: Vip Request Port Pool not registered. @raise VipRequestPortPoolError: Failed to search for the Vip Request Port Pool. @raise OperationalError: Lock wait timeout exceeded.
-
l7_rule
¶ Decorator that converts a method with a single self argument into a property cached on the instance. # https://github.com/django/django/blob/2456ffa42c33d63b54579eae0f5b9cf2a8cd3714/django/utils/functional.py#L38-50
-
log
= <celery.utils.log.ProcessAwareLogger object>¶
-
objects
= <networkapi.models.BaseManager.BaseManager object>¶
-
optionvip
¶
-
server_pool
¶
-
vip_request_port
¶
-
exception