noc.ip.models.addressrange

Module Contents

class noc.ip.models.addressrange.AddressRange

Bases: noc.core.model.base.NOCModel

class Meta

Bases: object

verbose_name
db_table = ip_addressrange
app_label = ip
unique_together = [['vrf', 'afi', 'from_address', 'to_address']]
name
is_active
vrf
afi
from_address
to_address
description
is_locked
action
fqdn_template
reverse_nses
tags
tt
allocated_till
short_description

First line of description

addresses

Generator returning all addresses in range

overlapping_ranges

Returns a queryset with overlapped ranges :return:

__str__(self)
iter_changed_datastream(self, changed_fields=None)
clean(self)

Field validation

save(self, *args, **kwargs)
classmethod get_overlapping_ranges(cls, vrf, afi, from_address, to_address)

Returns a list of overlapping ranges :param vrf: :param afi: :param from_address: :param to_address: :return:

classmethod address_is_locked(cls, vrf, afi, address)

Check wrether address is locked by any range