noc.core.topology.segment

Module Contents

noc.core.topology.segment.logger
class noc.core.topology.segment.SegmentTopology(segment, node_hints=None, link_hints=None, force_spring=False)

Bases: noc.core.topology.base.BaseTopology

get_role(self, mo)

Find uplinks basing on segment hierarchy. Any object with parent segment is uplink :return:

Find uplinks basing on Managed Object’s level. Top-leveled objects are returned. :return:

All segment objects are uplinks :return:

Segment’s Object with lesser address is uplink :return:

Segment’s Object with greater address is uplink :return:

load(self)

Load all managed objects from segment

Yields ObjectUplinks items for segment

Returns:ObjectUplinks items