'Check all input params'

def check_params(self):

    if (not self.trunk_id.isdigit()):
        self.module.fail_json(msg='The    parameter    of    trunk_id    is    invalid.')
    if (self.min_links and (not self.min_links.isdigit())):
        self.module.fail_json(msg='The    parameter    of    min_links    is    invalid.')
    if self.members:
        for mem in self.members:
            if (not get_interface_type(mem.replace('    ', ''))):
                self.module.fail_json(msg='The    parameter    of    members    is    invalid.')
        for mem_id in range(len(self.members)):
            self.members[mem_id] = self.members[mem_id].replace('    ', '').upper()
