noc.main.models.prefixtable

Module Contents

class noc.main.models.prefixtable.PrefixTable

Bases: noc.core.model.base.NOCModel

class Meta

Bases: object

verbose_name
verbose_name_plural
db_table = main_prefixtable
app_label = main
ordering = ['name']
name
description
__str__(self)
match(self, prefix)

Check the prefix is inside Prefix Table

Parameters:prefix (str) – Prefix
Return type:bool
__contains__(self, other)

Usage: “prefix” in table

class noc.main.models.prefixtable.PrefixTablePrefix

Bases: noc.core.model.base.NOCModel

class Meta

Bases: object

verbose_name
verbose_name_plural
app_label = main
db_table = main_prefixtableprefix
unique_together = [['table', 'afi', 'prefix']]
ordering = ['table', 'afi', 'prefix']
table
afi
prefix
__str__(self)
save(self, *args, **kwargs)