noc.core.topology.goal.managedobject

Module Contents

class noc.core.topology.goal.managedobject.ManagedObjectGoal(obj)

Bases: noc.core.topology.goal.base.BaseGoal

SEGMENT_COST_MULTIPLIER = 100
HORIZONTAL_COST = 10
segment_cost_estimate(self, neighbor, current=None)
cost_estimate(self, neighbor, current=None)
is_goal(self, obj)
_init_weights(self, start)

Initialize segment path from starting node

Parameters:start – Starting node Managed Object
Returns:
static get_segment_path(start, goal)

Returns a list of segments laying between two management objects :param start: Managed Object instance :param goal: Managed Object instance :return: List of NetworkSegments