'check whether the input ospf spf interval is valid'

def is_valid_spf_interval(self):

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