networkapi.api_vip_request package

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
exception networkapi.api_vip_request.exceptions.VipRequestPortPoolError(msg)[source]

Bases: rest_framework.exceptions.APIException

status_code = 500
exception networkapi.api_vip_request.exceptions.VipRequestPortPoolNotFoundError(msg)[source]

Bases: rest_framework.exceptions.APIException

status_code = 404

networkapi.api_vip_request.models module

class networkapi.api_vip_request.models.VipRequest(*args, **kwargs)[source]

Bases: networkapi.models.BaseModel.BaseModel

VipRequest(id, created, ipv4_id, ipv6_id, environmentvip_id, business, service, name)

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception VipRequest.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

VipRequest.create_v3(vip_map, user)[source]

Creates Vip Request.

VipRequest.default_names[source]

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

VipRequest.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.
VipRequest.dscp[source]

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

VipRequest.environmentvip
VipRequest.equipments[source]

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 VipRequest.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.

VipRequest.get_dscp()[source]
VipRequest.groups_permissions[source]

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

VipRequest.ipv4
VipRequest.ipv6
VipRequest.log = <celery.utils.log.ProcessAwareLogger object at 0x7fdee2df1a10>
VipRequest.objects = <networkapi.models.BaseManager.BaseManager object at 0x7fdee2def310>
VipRequest.options[source]

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

VipRequest.ports[source]

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

VipRequest.update_v3(vip_map, user, permit_created=False)[source]

Updates Vip Request.

VipRequest.validate_save(vip_request, permit_created=False)[source]
VipRequest.viprequestdscp_set
VipRequest.viprequestoptionvip_set
VipRequest.viprequestport_set
class networkapi.api_vip_request.models.VipRequestDSCP(*args, **kwargs)[source]

Bases: networkapi.models.BaseModel.BaseModel

VipRequestDSCP(id, vip_request_id, dscp)

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception VipRequestDSCP.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

VipRequestDSCP.create_v3(dscp_map)[source]
classmethod VipRequestDSCP.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.

VipRequestDSCP.log = <celery.utils.log.ProcessAwareLogger object at 0x7fdee2df7a10>
VipRequestDSCP.objects = <networkapi.models.BaseManager.BaseManager object at 0x7fdee2e01150>
VipRequestDSCP.vip_request
class networkapi.api_vip_request.models.VipRequestOptionVip(*args, **kwargs)[source]

Bases: networkapi.models.BaseModel.BaseModel

VipRequestOptionVip(id, vip_request_id, optionvip_id)

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception VipRequestOptionVip.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

VipRequestOptionVip.cache_group[source]

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

VipRequestOptionVip.create_v3(option_map)[source]
classmethod VipRequestOptionVip.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 VipRequestOptionVip.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.

VipRequestOptionVip.log = <celery.utils.log.ProcessAwareLogger object at 0x7fdee2def090>
VipRequestOptionVip.objects = <networkapi.models.BaseManager.BaseManager object at 0x7fdee2def950>
VipRequestOptionVip.optionvip
VipRequestOptionVip.persistence[source]

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

VipRequestOptionVip.timeout[source]

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

VipRequestOptionVip.traffic_return[source]

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

VipRequestOptionVip.vip_request
class networkapi.api_vip_request.models.VipRequestPort(*args, **kwargs)[source]

Bases: networkapi.models.BaseModel.BaseModel

VipRequestPort(id, vip_request_id, port, identifier)

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception VipRequestPort.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

VipRequestPort.create_v3(vip_port_map)[source]
classmethod VipRequestPort.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.

VipRequestPort.log = <celery.utils.log.ProcessAwareLogger object at 0x7fdee2def750>
VipRequestPort.objects = <networkapi.models.BaseManager.BaseManager object at 0x7fdee2deff10>
VipRequestPort.options[source]

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

VipRequestPort.pools[source]

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

VipRequestPort.update_v3(vip_port_map)[source]
VipRequestPort.vip_request
VipRequestPort.viprequestportoptionvip_set
VipRequestPort.viprequestportpool_set
class networkapi.api_vip_request.models.VipRequestPortOptionVip(*args, **kwargs)[source]

Bases: networkapi.models.BaseModel.BaseModel

VipRequestPortOptionVip(id, vip_request_port_id, optionvip_id)

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception VipRequestPortOptionVip.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

VipRequestPortOptionVip.create_v3(option_map)[source]
classmethod VipRequestPortOptionVip.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.

VipRequestPortOptionVip.log = <celery.utils.log.ProcessAwareLogger object at 0x7fdee2defd50>
VipRequestPortOptionVip.objects = <networkapi.models.BaseManager.BaseManager object at 0x7fdee2df7510>
VipRequestPortOptionVip.optionvip
VipRequestPortOptionVip.vip_request_port
class networkapi.api_vip_request.models.VipRequestPortPool(*args, **kwargs)[source]

Bases: networkapi.models.BaseModel.BaseModel

VipRequestPortPool(id, vip_request_port_id, optionvip_id, server_pool_id, val_optionvip, order)

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception VipRequestPortPool.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

VipRequestPortPool.create_v3(pool_map)[source]
classmethod VipRequestPortPool.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.

VipRequestPortPool.l7_rule[source]

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

VipRequestPortPool.log = <celery.utils.log.ProcessAwareLogger object at 0x7fdee2df72d0>
VipRequestPortPool.objects = <networkapi.models.BaseManager.BaseManager object at 0x7fdee2df7c50>
VipRequestPortPool.optionvip
VipRequestPortPool.server_pool
VipRequestPortPool.update_v3(pool_map)[source]
VipRequestPortPool.vip_request_port

networkapi.api_vip_request.permissions module

networkapi.api_vip_request.urls module

Module contents