'Check all input params'

def check_params(self):

    if self.packet_priority:
        if (not self.packet_priority.isdigit()):
            self.module.fail_json(msg='Error:    The    parameter    of    packet    priority    is    invalid.')
        if ((int(self.packet_priority) > 7) or (int(self.packet_priority) < 0)):
            self.module.fail_json(msg='Error:    The    packet    priority    must    be    an    integer    between    0    and    7.')
    if self.logfile_max_num:
        if (not self.logfile_max_num.isdigit()):
            self.module.fail_json(msg='Error:    The    parameter    of    logfile_max_num    is    invalid.')
        if ((int(self.logfile_max_num) > 500) or (int(self.logfile_max_num) < 3)):
            self.module.fail_json(msg='Error:    The    logfile_max_num    must    be    an    integer    between    3    and    500.')
    if self.channel_id:
        if (not self.channel_id.isdigit()):
            self.module.fail_json(msg='Error:    The    parameter    of    channel_id    is    invalid.')
        if ((int(self.channel_id) > 9) or (int(self.channel_id) < 0)):
            self.module.fail_json(msg='Error:    The    channel_id    must    be    an    integer    between    0    and    9.')
    if self.channel_cfg_name:
        if ((len(self.channel_cfg_name) > 30) or (len(self.channel_cfg_name.replace('    ', '')) < 1)):
            self.module.fail_json(msg='Error:    channel_cfg_name    is    not    in    the    range    from    1    to    30.')
    if self.filter_feature_name:
        if ((len(self.filter_feature_name) > 31) or (len(self.filter_feature_name.replace('    ', '')) < 1)):
            self.module.fail_json(msg='Error:    filter_feature_name    is    not    in    the    range    from    1    to    31.')
    if self.filter_log_name:
        if ((len(self.filter_log_name) > 63) or (len(self.filter_log_name.replace('    ', '')) < 1)):
            self.module.fail_json(msg='Error:    filter_log_name    is    not    in    the    range    from    1    to    63.')
    if self.server_ip:
        if (not check_ip_addr(self.server_ip)):
            self.module.fail_json(msg=('Error:    The    %s    is    not    a    valid    ip    address' % self.server_ip))
    if self.source_ip:
        if (not check_ip_addr(self.source_ip)):
            self.module.fail_json(msg=('Error:    The    %s    is    not    a    valid    ip    address' % self.source_ip))
    if self.server_domain:
        if ((len(self.server_domain) > 255) or (len(self.server_domain.replace('    ', '')) < 1)):
            self.module.fail_json(msg='Error:    server_domain    is    not    in    the    range    from    1    to    255.')
    if self.vrf_name:
        if ((len(self.vrf_name) > 31) or (len(self.vrf_name.replace('    ', '')) < 1)):
            self.module.fail_json(msg='Error:    vrf_name    is    not    in    the    range    from    1    to    31.')
    if self.server_port:
        if (not self.server_port.isdigit()):
            self.module.fail_json(msg='Error:    The    parameter    of    server_port    is    invalid.')
        if ((int(self.server_port) > 65535) or (int(self.server_port) < 1)):
            self.module.fail_json(msg='Error:    The    server_port    must    be    an    integer    between    1    and    65535.')
    if self.channel_name:
        if ((len(self.channel_name) > 31) or (len(self.channel_name.replace('    ', '')) < 1)):
            self.module.fail_json(msg='Error:    channel_name    is    not    in    the    range    from    1    to    30.')
    if self.ssl_policy_name:
        if ((len(self.ssl_policy_name) > 23) or (len(self.ssl_policy_name.replace('    ', '')) < 1)):
            self.module.fail_json(msg='Error:    ssl_policy_name    is    not    in    the    range    from    1    to    23.')
