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¶
networkapi.api_network.facade module¶
networkapi.api_network.models module¶
- class networkapi.api_network.models.DHCPRelayIPv4(*args, **kwargs)[source]¶
Bases: networkapi.models.BaseModel.BaseModel
DHCPRelayIPv4(id, ipv4_id, networkipv4_id)
- exception DoesNotExist¶
Bases: django.core.exceptions.ObjectDoesNotExist
- exception DHCPRelayIPv4.MultipleObjectsReturned¶
Bases: django.core.exceptions.MultipleObjectsReturned
- classmethod DHCPRelayIPv4.get_by_pk(id)[source]¶
Get DHCPRelayIPv4 by id.
@return: DHCPRelayIPv4
@raise DHCPRelayNotFoundError: DHCPRelayIPv4 is not registered. @raise OperationalError: Lock wait timeout exceed
- DHCPRelayIPv4.ipv4¶
- DHCPRelayIPv4.log = <celery.utils.log.ProcessAwareLogger object at 0x7fdee2ecc690>¶
- DHCPRelayIPv4.networkipv4¶
- DHCPRelayIPv4.objects = <networkapi.models.BaseManager.BaseManager object at 0x7fdee2eccb10>¶
- class networkapi.api_network.models.DHCPRelayIPv6(*args, **kwargs)[source]¶
Bases: networkapi.models.BaseModel.BaseModel
DHCPRelayIPv6(id, ipv6_id, networkipv6_id)
- exception DoesNotExist¶
Bases: django.core.exceptions.ObjectDoesNotExist
- exception DHCPRelayIPv6.MultipleObjectsReturned¶
Bases: django.core.exceptions.MultipleObjectsReturned
- classmethod DHCPRelayIPv6.get_by_pk(id)[source]¶
Get DHCPRelayIPv6 by id.
@return: DHCPRelayIPv6
@raise DHCPRelayNotFoundError: DHCPRelayIPv6 is not registered. @raise OperationalError: Lock wait timeout exceed
- DHCPRelayIPv6.ipv6¶
- DHCPRelayIPv6.log = <celery.utils.log.ProcessAwareLogger object at 0x7fdee2ecca10>¶
- DHCPRelayIPv6.networkipv6¶
- DHCPRelayIPv6.objects = <networkapi.models.BaseManager.BaseManager object at 0x7fdee2ecced0>¶