'Check all input params'

def check_params(self):

    if self.default_ip:
        if (not check_default_ip(self.default_ip)):
            self.module.fail_json(msg='Error:    Default    ip    is    invalid.')
    if (self.tos_exp_dynamic is not None):
        if ((self.tos_exp_dynamic < 0) or (self.tos_exp_dynamic > 7)):
            self.module.fail_json(msg='Error:    Session    tos_exp_dynamic    is    not    ranges    from    0    to    7.')
    if (self.tos_exp_static is not None):
        if ((self.tos_exp_static < 0) or (self.tos_exp_static > 7)):
            self.module.fail_json(msg='Error:    Session    tos_exp_static    is    not    ranges    from    0    to    7.')
    if (self.damp_init_wait_time is not None):
        if ((self.damp_init_wait_time < 1) or (self.damp_init_wait_time > 3600000)):
            self.module.fail_json(msg='Error:    Session    damp_init_wait_time    is    not    ranges    from    1    to    3600000.')
    if (self.damp_max_wait_time is not None):
        if ((self.damp_max_wait_time < 1) or (self.damp_max_wait_time > 3600000)):
            self.module.fail_json(msg='Error:    Session    damp_max_wait_time    is    not    ranges    from    1    to    3600000.')
    if (self.damp_second_wait_time is not None):
        if ((self.damp_second_wait_time < 1) or (self.damp_second_wait_time > 3600000)):
            self.module.fail_json(msg='Error:    Session    damp_second_wait_time    is    not    ranges    from    1    to    3600000.')
    if (self.delay_up_time is not None):
        if ((self.delay_up_time < 1) or (self.delay_up_time > 600)):
            self.module.fail_json(msg='Error:    Session    delay_up_time    is    not    ranges    from    1    to    600.')
