networkapi.api_network package

Submodules

networkapi.api_network.exceptions module

exception networkapi.api_network.exceptions.CannotRemoveDHCPRelayFromActiveNetwork(detail=None)[source]

Bases: rest_framework.exceptions.APIException

default_detail = 'Cannot remove DHCPRelay IP from an active network.'
status_code = 400
exception networkapi.api_network.exceptions.DHCPRelayAlreadyExistsError(ip_id, network_id)[source]

Bases: rest_framework.exceptions.APIException

default_detail = 'DHCPRelayIP with giver parameters already found.'
status_code = 400
exception networkapi.api_network.exceptions.DHCPRelayNotFoundError(version='', id=None)[source]

Bases: rest_framework.exceptions.APIException

default_detail = 'No DHCPRelayIPv4 found.'
status_code = 400
exception networkapi.api_network.exceptions.EquipmentIDNotInCorrectEnvException(detail=None)[source]

Bases: rest_framework.exceptions.APIException

default_detail = 'Equipments are not part of network environment.'
status_code = 400
exception networkapi.api_network.exceptions.IncorrectNetworkRouterRegistryException(detail=None)[source]

Bases: rest_framework.exceptions.APIException

default_detail = 'Equipment IPs not correctly registered. In case of multiple gateways, they should have a registered IP other than the gateway.'
status_code = 400
exception networkapi.api_network.exceptions.IncorrectRedundantGatewayRegistryException(detail=None)[source]

Bases: rest_framework.exceptions.APIException

default_detail = 'Equipment IPs not correctly registered. Equipments should have first IP of network allocated for them as gateways.'
status_code = 400
exception networkapi.api_network.exceptions.InvalidInputException(detail=None)[source]

Bases: rest_framework.exceptions.APIException

default_detail = 'Invalid input.'
status_code = 400
exception networkapi.api_network.exceptions.InvalidNetworkIDException(detail=None)[source]

Bases: rest_framework.exceptions.APIException

default_detail = 'Invalid Network ID.'
status_code = 400
exception networkapi.api_network.exceptions.NetworkAlreadyActive(detail=None)[source]

Bases: rest_framework.exceptions.APIException

default_detail = 'Already Active Network. Nothing to do.'
status_code = 400
exception networkapi.api_network.exceptions.NetworkConflictException(detail='One of the equipment associated with the environment of this Vlan is also associated with other environment that has a network with the same track, add filters in environments if necessary.')[source]

Bases: rest_framework.exceptions.APIException

default_detail = 'One of the equipment associated with the environment of this Vlan is also associated with other environment that has a network with the same track, add filters in environments if necessary.'
status_code = 400
exception networkapi.api_network.exceptions.NetworkTemplateException(detail=None)[source]

Bases: rest_framework.exceptions.APIException

default_detail = 'No network configuration templates found for equipments.'
status_code = 400
exception networkapi.api_network.exceptions.NoEnvironmentRoutersFoundException(detail=None)[source]

Bases: rest_framework.exceptions.APIException

default_detail = 'No environment routers found for network configuration.'
status_code = 400

networkapi.api_network.facade module

networkapi.api_network.models module

class networkapi.api_network.models.DHCPRelayIPv4(id, ipv4_id, networkipv4_id)[source]

Bases: networkapi.models.BaseModel.BaseModel

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

create(ipv4_id, networkipv4_id)[source]
classmethod get_by_pk(id)[source]

Get DHCPRelayIPv4 by id.

@return: DHCPRelayIPv4

@raise DHCPRelayNotFoundError: DHCPRelayIPv4 is not registered. @raise OperationalError: Lock wait timeout exceed

ipv4
log = <celery.utils.log.ProcessAwareLogger object>
networkipv4
objects = <networkapi.models.BaseManager.BaseManager object>
class networkapi.api_network.models.DHCPRelayIPv6(id, ipv6_id, networkipv6_id)[source]

Bases: networkapi.models.BaseModel.BaseModel

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

create(ipv6_id, networkipv6_id)[source]
classmethod get_by_pk(id)[source]

Get DHCPRelayIPv6 by id.

@return: DHCPRelayIPv6

@raise DHCPRelayNotFoundError: DHCPRelayIPv6 is not registered. @raise OperationalError: Lock wait timeout exceed

ipv6
log = <celery.utils.log.ProcessAwareLogger object>
networkipv6
objects = <networkapi.models.BaseManager.BaseManager object>

networkapi.api_network.permissions module

networkapi.api_network.serializers module

networkapi.api_network.urls module

networkapi.api_network.views module

Module contents