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

def is_valid_spf_max_interval(self):

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