'check whether the input ospf lsa start arrival interval is valid'

def isvalidlsastartarrivalinterval(self):

    if (not self.lsaastartinterval.isdigit()):
        return False
    if ((int(self.lsaastartinterval) > 1000) or (int(self.lsaastartinterval) < 0)):
        return False
    return True
