noc.ip.models.address

Module Contents

class noc.ip.models.address.Address

Bases: noc.core.model.base.NOCModel

class Meta

Bases: object

verbose_name
verbose_name_plural
db_table = ip_address
app_label = ip
unique_together = [['vrf', 'afi', 'address']]
prefix
vrf
afi
address
profile
name
fqdn
project
mac
auto_update_mac
managed_object
subinterface
description
tags
tt
state
allocated_till
ipv6_transition
source
csv_ignored_fields = ['prefix']
short_description

First line of description

is_ipv4
is_ipv6
__str__(self)
iter_changed_datastream(self, changed_fields=None)
classmethod get_afi(cls, address)
classmethod get_collision(cls, vrf, address)

Check VRFGroup restrictions :param vrf: :param address: :return: VRF already containing address or None :rtype: VRF or None

save(self, *args, **kwargs)

Override default save() method to set AFI, parent prefix, and check VRF group restrictions :param kwargs: :return:

clean(self)

Field validation :return:

get_index(self)

Full-text search

classmethod get_search_result_url(cls, obj_id)