noc.peer.models.prefixlistcache

Module Contents

class noc.peer.models.prefixlistcache.PrefixListCachePrefix

Bases: mongoengine.document.EmbeddedDocument

meta
prefix
min
max
__str__(self)
class noc.peer.models.prefixlistcache.PrefixListCache

Bases: mongoengine.document.Document

Prepared prefix-list cache. Can hold IPv4/IPv6 prefixes at same time. Prefixes are stored sorted

meta
peering_point
name
prefixes
changed
pushed
__str__(self)
cmp_prefixes(self, prefixes)

Compare cached prefixes with a list of (prefix, min, max)