'Check all input params'

def check_params(self):

    if self.cfg_file:
        if (not self.get_cfg_filename_type(self.cfg_file)):
            self.module.fail_json(msg='Error:    Invalid    cfg    file    name    or    cfg    file    name    extension    (    *.cfg,    *.zip,    *.dat    ).')
    if self.software_file:
        if (not self.get_software_filename_type(self.software_file)):
            self.module.fail_json(msg='Error:    Invalid    software    file    name    or    software    file    name    extension    (    *.cc).')
    if self.patch_file:
        if (not self.get_pat_filename_type(self.patch_file)):
            self.module.fail_json(msg='Error:    Invalid    patch    file    name    or    patch    file    name    extension    (    *.PAT    ).')
    if self.slot:
        if self.slot.isdigit():
            if ((int(self.slot) <= 0) or (int(self.slot) > 16)):
                self.module.fail_json(msg='Error:    The    number    of    slot    is    not    in    the    range    from    1    to    16.')
        elif ((len(self.slot) <= 0) or (len(self.slot) > 32)):
            self.module.fail_json(msg='Error:    The    length    of    slot    is    not    in    the    range    from    1    to    32.')
