'Check all input params'

def check_params(self):

    if (self.ospf == ''):
        self.module.fail_json(msg='Error:    The    ospf    process    id    should    not    be    null.')
    if self.ospf:
        if (not self.is_valid_ospf_process_id()):
            self.module.fail_json(msg='Error:    The    ospf    process    id    should    between    1    -    4294967295.')
    if (self.route_id == ''):
        self.module.fail_json(msg='Error:    The    ospf    route    id    length    should    not    be    null.')
    if self.route_id:
        if (not self.is_valid_ospf_route_id()):
            self.module.fail_json(msg='Error:    The    ospf    route    id    length    should    between    0    -    20,i.e.10.1.1.1.')
    if (self.vrf == ''):
        self.module.fail_json(msg='Error:    The    ospf    vpn    instance    length    should    not    be    null.')
    if self.vrf:
        if (not self.is_valid_vrf_name()):
            self.module.fail_json(msg='Error:    The    ospf    vpn    instance    length    should    between    0    -    31,but    can    not    contain    "    "    or    "?".')
    if (self.description == ''):
        self.module.fail_json(msg='Error:    The    ospf    description    should    not    be    null.')
    if self.description:
        if (not self.is_valid_description()):
            self.module.fail_json(msg='Error:    The    ospf    description    length    should    between    1    -    80,but    can    not    contain    "?".')
    if (self.bandwidth == ''):
        self.module.fail_json(msg='Error:    The    ospf    bandwidth    reference    should    not    be    null.')
    if self.bandwidth:
        if (not self.is_valid_bandwidth()):
            self.module.fail_json(msg='Error:    The    ospf    bandwidth    reference    should    between    1    -    2147483648.')
    if (self.lsaalflag is True):
        if (not self.is_valid_lsa_arrival_interval()):
            self.module.fail_json(msg='Error:    The    ospf    lsa    arrival    interval    should    between    0    -    10000.')
        if (self.lsaamaxinterval or self.lsaastartinterval or self.lsaaholdinterval):
            self.module.fail_json(msg='Error:    Non-Intelligent    Timer    and    Intelligent    Timer    Interval    of    lsa-arrival-interval    can    not    configured    at    the    same    time.')
    if (self.lsaalflag is False):
        if self.lsaainterval:
            self.module.fail_json(msg='Error:    The    parameter    of    lsa    arrival    interval    command    is    invalid,    because    LSA    arrival    interval    can    not    be    config    when    the    LSA    arrival    flag    is    not    set.')
        if ((self.lsaamaxinterval == '') or (self.lsaastartinterval == '') or (self.lsaaholdinterval == '')):
            self.module.fail_json(msg='Error:    The    ospf    lsa    arrival    intervals    should    not    be    null.')
        if self.lsaamaxinterval:
            if (not self.isvalidlsamaxarrivalinterval()):
                self.module.fail_json(msg='Error:    The    ospf    lsa    arrival    max    interval    should    between    1    -    10000.')
        if self.lsaastartinterval:
            if (not self.isvalidlsastartarrivalinterval()):
                self.module.fail_json(msg='Error:    The    ospf    lsa    arrival    start    interval    should    between    1    -    1000.')
        if self.lsaaholdinterval:
            if (not self.isvalidlsaholdarrivalinterval()):
                self.module.fail_json(msg='Error:    The    ospf    lsa    arrival    hold    interval    should    between    1    -    5000.')
    if (self.lsaointervalflag is True):
        if (self.lsaointerval or self.lsaomaxinterval or self.lsaostartinterval or self.lsaoholdinterval):
            self.module.fail_json(msg='Error:    Interval    for    other-type    and    Instantly    Flag    of    lsa-originate-interval    can    not    configured    at    the    same    time.')
    if (self.lsaointerval == ''):
        self.module.fail_json(msg='Error:    The    ospf    lsa    originate    interval    should    should    not    be    null.')
    if self.lsaointerval:
        if (not self.is_valid_lsa_originate_interval()):
            self.module.fail_json(msg='Error:    The    ospf    lsa    originate    interval    should    between    0    -    10    s.')
    if ((self.lsaomaxinterval == '') or (self.lsaostartinterval == '') or (self.lsaoholdinterval == '')):
        self.module.fail_json(msg='Error:    The    ospf    lsa    originate    intelligent    intervals    should    should    not    be    null.')
    if self.lsaomaxinterval:
        if (not self.isvalidlsaoriginatemaxinterval()):
            self.module.fail_json(msg='Error:    The    ospf    lsa    originate    max    interval    should    between    1    -    10000    ms.')
    if self.lsaostartinterval:
        if (not self.isvalidlsaostartinterval()):
            self.module.fail_json(msg='Error:    The    ospf    lsa    originate    start    interval    should    between    0    -    1000    ms.')
    if self.lsaoholdinterval:
        if (not self.isvalidlsaoholdinterval()):
            self.module.fail_json(msg='Error:    The    ospf    lsa    originate    hold    interval    should    between    1    -    5000    ms.')
    if (self.spfintervaltype == ''):
        self.module.fail_json(msg='Error:    The    ospf    spf    interval    type    should    should    not    be    null.')
    if (self.spfintervaltype == 'intelligent-timer'):
        if ((self.spfinterval is not None) or (self.spfintervalmi is not None)):
            self.module.fail_json(msg='Error:    Interval    second    and    interval    millisecond    of    spf-schedule-interval    can    not    configured    if    use    intelligent    timer.')
        if ((self.spfmaxinterval == '') or (self.spfstartinterval == '') or (self.spfholdinterval == '')):
            self.module.fail_json(msg='Error:    The    ospf    spf    intelligent    timer    intervals    should    should    not    be    null.')
        if (self.spfmaxinterval and (not self.is_valid_spf_max_interval())):
            self.module.fail_json(msg='Error:    The    ospf    spf    max    interval    of    intelligent    timer    should    between    1    -    20000    ms.')
        if (self.spfstartinterval and (not self.is_valid_spf_start_interval())):
            self.module.fail_json(msg='Error:    The    ospf    spf    start    interval    of    intelligent    timer    should    between    1    -    1000    ms.')
        if (self.spfholdinterval and (not self.is_valid_spf_hold_interval())):
            self.module.fail_json(msg='Error:    The    ospf    spf    hold    interval    of    intelligent    timer    should    between    1    -    5000    ms.')
    if (self.spfintervaltype == 'timer'):
        if (self.spfintervalmi is not None):
            self.module.fail_json(msg='Error:    Interval    second    and    interval    millisecond    of    spf-schedule-interval    can    not    configured    at    the    same    time.')
        if (self.spfmaxinterval or self.spfstartinterval or self.spfholdinterval):
            self.module.fail_json(msg='Error:    Interval    second    and    interval    intelligent    of    spf-schedule-interval    can    not    configured    at    the    same    time.')
        if ((self.spfinterval == '') or (self.spfinterval is None)):
            self.module.fail_json(msg='Error:    The    ospf    spf    timer    intervals    should    should    not    be    null.')
        if (not self.is_valid_spf_interval()):
            self.module.fail_json(msg='Error:    Interval    second    should    between    1    -    10    s.')
    if (self.spfintervaltype == 'millisecond'):
        if (self.spfinterval is not None):
            self.module.fail_json(msg='Error:    Interval    millisecond    and    interval    second    of    spf-schedule-interval    can    not    configured    at    the    same    time.')
        if (self.spfmaxinterval or self.spfstartinterval or self.spfholdinterval):
            self.module.fail_json(msg='Error:    Interval    millisecond    and    interval    intelligent    of    spf-schedule-interval    can    not    configured    at    the    same    time.')
        if ((self.spfintervalmi == '') or (self.spfintervalmi is None)):
            self.module.fail_json(msg='Error:    The    ospf    spf    millisecond    intervals    should    should    not    be    null.')
        if (not self.is_valid_spf_milli_interval()):
            self.module.fail_json(msg='Error:    Interval    millisecond    should    between    1    -    10000    ms.')
