noc.phone.models.phonerange

Module Contents

noc.phone.models.phonerange.logger
noc.phone.models.phonerange.id_lock
noc.phone.models.phonerange._path_cache
class noc.phone.models.phonerange.PhoneRange

Bases: mongoengine.document.Document

meta
name
description
profile
state
dialplan
parent
from_number
to_number
supplier
project
administrative_domain
to_allocate_numbers
static_service_groups
effective_service_groups
static_client_groups
effective_client_groups
_id_cache
has_children
total_numbers

Total phone numbers in range

__str__(self)
classmethod get_by_id(cls, id)
get_path(self)

Returns list of parent range ids :return:

classmethod get_closest_range(cls, dialplan, from_number, to_number=None, exclude_range=None)

Find closest range enclosing given range :param dialplan: :param from_number: :param to_number: :param exclude_range: :return: Phone range or None

clean(self)
on_save(self)
on_delete(self)
iter_numbers(self)
allocate_numbers(self)
noc.phone.models.phonerange.allocate_numbers(range_id)