networkapi.api_neighbor package

Subpackages

Submodules

networkapi.api_neighbor.models module

class networkapi.api_neighbor.models.BgpType[source]
ebgp = ('E', 'EBGP')
ibgp = ('I', 'IBGP')
list_type = (('I', 'IBGP'), ('E', 'EBGP'))
class networkapi.api_neighbor.models.NeighborV4(*args, **kwargs)[source]

Bases: networkapi.models.BaseModel.BaseModel

NeighborV4(id, local_asn_id, remote_asn_id, local_ip_id, remote_ip_id, peer_group_id, virtual_interface, created, password, maximum_hops, timer_keepalive, timer_timeout, description, soft_reconfiguration, community, remove_private_as, next_hop_self, kind)

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception NeighborV4.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

NeighborV4.check_if_local_ip_and_local_asn_shares_at_least_one_equipment()[source]
NeighborV4.check_if_local_ip_vrf_is_the_same_as_remote_ip_vrf()[source]
NeighborV4.check_if_neighbor_already_deployed()[source]
NeighborV4.check_if_neighbor_is_not_duplicated()[source]
NeighborV4.check_if_peer_group_environments_has_local_ip_environment()[source]
NeighborV4.check_if_remote_ip_and_remote_asn_shares_at_least_one_equipment()[source]
NeighborV4.create_v4(neighbor, user)[source]

Create NeighborV4.

NeighborV4.delete_v4()[source]

Delete NeighborV4.

NeighborV4.deploy()[source]

Deploy NeighborV4.

classmethod NeighborV4.get_by_pk(id)[source]

Get NeighborV4 by id.

Returns:

NeighborV4.

Raises:
  • NeighborV4NotFoundError – NeighborV4 not registered.
  • NeighborV4Error – Failed to search for the NeighborV4.
  • OperationalError – Lock wait timeout exceeded
NeighborV4.get_kind_display(*moreargs, **morekwargs)
NeighborV4.local_asn
NeighborV4.local_ip
NeighborV4.log = <celery.utils.log.ProcessAwareLogger object at 0x7fdee2ec44d0>
NeighborV4.objects = <networkapi.models.BaseManager.BaseManager object at 0x7fdee2ec49d0>
NeighborV4.peer_group
NeighborV4.remote_asn
NeighborV4.remote_ip
NeighborV4.undeploy()[source]

Undeploy NeighborV4.

NeighborV4.update_v4(neighbor, user)[source]

Update NeighborV4.

NeighborV4.validate_neighbor_v4(user)[source]
class networkapi.api_neighbor.models.NeighborV6(*args, **kwargs)[source]

Bases: networkapi.models.BaseModel.BaseModel

NeighborV6(id, local_asn_id, remote_asn_id, local_ip_id, remote_ip_id, peer_group_id, virtual_interface, created, password, maximum_hops, timer_keepalive, timer_timeout, description, soft_reconfiguration, community, remove_private_as, next_hop_self, kind)

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception NeighborV6.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

NeighborV6.check_if_local_ip_and_local_asn_shares_at_least_one_equipment()[source]
NeighborV6.check_if_local_ip_vrf_is_the_same_as_remote_ip_vrf()[source]
NeighborV6.check_if_neighbor_already_deployed()[source]
NeighborV6.check_if_neighbor_is_not_duplicated()[source]
NeighborV6.check_if_peer_group_environments_has_local_ip_environment()[source]
NeighborV6.check_if_remote_ip_and_remote_asn_shares_at_least_one_equipment()[source]
NeighborV6.create_v4(neighbor, user)[source]

Create NeighborV6.

NeighborV6.delete_v4()[source]

Delete NeighborV6.

NeighborV6.deploy()[source]

Deploy NeighborV6.

classmethod NeighborV6.get_by_pk(id)[source]

Get NeighborV6 by id.

Returns:

NeighborV6.

Raises:
  • NeighborV6NotFoundError – NeighborV6 not registered.
  • NeighborV6Error – Failed to search for the NeighborV6.
  • OperationalError – Lock wait timeout exceeded
NeighborV6.get_kind_display(*moreargs, **morekwargs)
NeighborV6.local_asn
NeighborV6.local_ip
NeighborV6.log = <celery.utils.log.ProcessAwareLogger object at 0x7fdee2ecc210>
NeighborV6.objects = <networkapi.models.BaseManager.BaseManager object at 0x7fdee2ecc710>
NeighborV6.peer_group
NeighborV6.remote_asn
NeighborV6.remote_ip
NeighborV6.undeploy()[source]

Deploy NeighborV6.

NeighborV6.update_v4(neighbor, user)[source]

Update NeighborV6.

NeighborV6.validate_neighbor_v6(user)[source]
networkapi.api_neighbor.models.check_permissions_in_peer_group(neighbor, user)[source]
networkapi.api_neighbor.models.get_neighbors_list_config_bgp(list_config_bgp, equipment)[source]
networkapi.api_neighbor.models.get_neighbors_route_map(route_map, equipment)[source]

networkapi.api_neighbor.urls module

Module contents