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)
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])