def get_sequence_index(nodeid):
    for x in range(len(messageSequenceList)):
        if (messageSequenceList[x].nodeid == nodeid):
            return x
    return (- 1)
def get_sequence_index(nodeid):
    for x in range(len(messageSequenceList)):
        if (messageSequenceList[x].nodeid == nodeid):
            return x
    return (- 1)