noc.peer.models.peer

Module Contents

class noc.peer.models.peer.Peer

Bases: noc.core.model.base.NOCModel

BGP Peering session

class Meta

Bases: object

verbose_name = Peer
verbose_name_plural = Peers
db_table = peer_peer
app_label = peer
peer_group
project
peering_point
local_asn
local_ip
local_backup_ip
remote_asn
remote_ip
remote_backup_ip
status
import_filter
local_pref
import_med
export_med
export_filter
description
rpsl_remark
tt
communities
max_prefixes
import_filter_name
export_filter_name
tags
rpsl
all_communities
effective_max_prefixes
effective_local_pref

Effective localpref: Peer specific or PeerGroup inherited

effective_import_med

Effective import med: Peer specific or PeerGroup inherited

effective_export_med

Effective export med: Peer specific or PeerGroup inherited

__str__(self)
save(self, *args, **kwargs)
get_rpsl(self)
classmethod get_peer(cls, address)

Get peer by address

Parameters:address (Str) – Remote address
Returns:Peer instance or None
touch_rpsl(self)
on_save(self)