Example #1
0
    def get_split_nodes(self):
        """
        Return all available next segments in a split cable path.
        """
        rearport = path_node_to_object(self.path[-1])

        return FrontPort.objects.filter(rear_port=rearport)
Example #2
0
 def last_node(self):
     """
     Return either the destination or the last node within the path.
     """
     return self.destination or path_node_to_object(self.path[-1])