'check whether the input ospf spf intelligent timer hold interval is valid'

def is_valid_spf_hold_interval(self):

    if (not self.spfholdinterval.isdigit()):
        return False
    if ((int(self.spfholdinterval) > 5000) or (int(self.spfholdinterval) < 1)):
        return False
    return True
