'Check all input params'

def check_params(self):

    if ((self.auth_mode and (self.auth_mode != 'none') and (not self.auth_pwd)) or (self.auth_pwd and (not self.auth_mode))):
        self.module.fail_json(msg='Error:    auth_mode    and    auth_pwd    must    both    exist    or    not    exist.')
    if ((self.dldp_conf['dldpEnable'] == 'disable') and (not self.enable)):
        if (self.work_mode or self.reset or self.internal or self.auth_mode):
            self.module.fail_json(msg='Error:    when    DLDP    is    already    disabled    globally,    work_mode,    time_internal    auth_mode    and    reset    parameters    are    not    expected    to    configure.')
    if ((self.enable == 'disable') and (self.work_mode or self.internal or self.reset or self.auth_mode)):
        self.module.fail_json(msg='Error:    when    using    enable=disable,    work_mode,    time_internal    auth_mode    and    reset    parameters    are    not    expected    to    configure.')
    if self.internal:
        if (not self.internal.isdigit()):
            self.module.fail_json(msg='Error:    time_interval    must    be    digit.')
        if ((int(self.internal) < 1) or (int(self.internal) > 100)):
            self.module.fail_json(msg='Error:    The    value    of    time_internal    should    be    between    1    and    100.')
    if self.auth_pwd:
        if ('?' in self.auth_pwd):
            self.module.fail_json(msg='Error:    The    auth_pwd    string    excludes    a    question    mark    (?).')
        if ((len(self.auth_pwd) != 24) and (len(self.auth_pwd) != 32) and (len(self.auth_pwd) != 48) and (len(self.auth_pwd) != 108) and (len(self.auth_pwd) != 128)):
            if ((len(self.auth_pwd) < 1) or (len(self.auth_pwd) > 16)):
                self.module.fail_json(msg='Error:    The    value    is    a    string    of    1    to    16    case-sensitive    plaintexts    or    24/32/48/108/128    case-sensitive    encrypted    characters.')
