noc.inv.models.networksegment

Module Contents

noc.inv.models.networksegment.id_lock
noc.inv.models.networksegment._path_cache
class noc.inv.models.networksegment.VLANTranslation

Bases: mongoengine.document.EmbeddedDocument

filter
rule
parent_vlan
class noc.inv.models.networksegment.NetworkSegment

Bases: mongoengine.document.Document

meta
name
parent
profile
description
management_vlan_policy
management_vlan
multicast_vlan_policy
multicast_vlan
settings
tags
selector
sibling
is_redundant
lost_redundancy
vlan_border
vlan_translation
allocation_group
l2_mtu
adm_domains
horizontal_transit_policy
enable_horizontal_transit
direct_objects
direct_services
direct_subscribers
total_objects
total_services
total_subscribers
remote_system
remote_id
bi_id
_id_cache
_bi_id_cache
_border_cache
_vlan_domains_cache
_vlan_domains_mo_cache
DISCOVERY_JOB = noc.services.discovery.jobs.segment.job.SegmentDiscoveryJob
effective_settings

Returns dict with effective settings

has_loop

Check if object creates loop

managed_objects
has_children
__str__(self)
classmethod get_by_id(cls, id)
classmethod get_by_bi_id(cls, id)
get_path(self)

Returns list of parent segment ids :return:

clean(self)
get_siblings(self, seen=None)
run_discovery(self)

Run discovery on whole segment

set_redundancy(self, status)

Change interface redundancy status :param status: :return:

set_lost_redundancy(self, status)
get_direct_summary(self)
get_summary(self)
classmethod update_summary(cls, network_segment)

Update summaries :return:

update_access(self)
get_horizontal_transit_policy(self)
get_management_vlan(self)

Returns Management VLAN for segment :return: vlan (integer) or None

get_multicast_vlan(self)

Returns Multicast VLAN for segment :return: vlan (integer) or None

get_nested_ids(self)

Return id of this and all nested segments :return:

ensure_discovery_jobs(self)
on_save(self)
classmethod get_border_segment(cls, segment)

Proceed up until vlan border :return:

classmethod iter_vlan_domain_segments(cls, segment)

Get all segments related to same VLAN domains :param segment: :return:

classmethod get_vlan_domain_segments(cls, segment)

Get list of all segments related to same VLAN domains :param segment: :return:

classmethod get_vlan_domain_object_ids(cls, segment)

Get list of all managed object ids belonging to same VLAN domain :param segment: :return:

get_total_summary(self, ids=None, parent_id=None)
Parameters:
  • ids – Network segment ID list
  • parent_id – Parent ID filter value
Returns: