'Check all input params'

def check_params(self):

    self.interface = self.interface.replace('    ', '').upper()
    if (not get_interface_type(self.interface)):
        self.module.fail_json(msg='Error:    interface    is    invalid.')
    if (not self.process_id.isdigit()):
        self.module.fail_json(msg='Error:    process_id    is    not    digit.')
    if ((int(self.process_id) < 1) or (int(self.process_id) > 4294967295)):
        self.module.fail_json(msg='Error:    process_id    must    be    an    integer    between    1    and    4294967295.')
    if self.area.isdigit():
        if ((int(self.area) < 0) or (int(self.area) > 4294967295)):
            self.module.fail_json(msg='Error:    area    id    (Integer)    must    be    between    0    and    4294967295.')
    elif (not is_valid_v4addr(self.area)):
        self.module.fail_json(msg='Error:    area    id    is    invalid.')
    if (self.state == 'present'):
        if self.auth_mode:
            if (self.auth_mode == 'simple'):
                if (self.auth_text_simple and (len(self.auth_text_simple) > 8)):
                    self.module.fail_json(msg='Error:    auth_text_simple    is    not    in    the    range    from    1    to    8.')
            if (self.auth_mode in ['hmac-sha256', 'hmac-sha256', 'md5']):
                if (self.auth_key_id and (not self.auth_text_md5)):
                    self.module.fail_json(msg='Error:    auth_key_id    and    auth_text_md5    should    be    set    at    the    same    time.')
                if ((not self.auth_key_id) and self.auth_text_md5):
                    self.module.fail_json(msg='Error:    auth_key_id    and    auth_text_md5    should    be    set    at    the    same    time.')
                if self.auth_key_id:
                    if (not self.auth_key_id.isdigit()):
                        self.module.fail_json(msg='Error:    auth_key_id    is    not    digit.')
                    if ((int(self.auth_key_id) < 1) or (int(self.auth_key_id) > 255)):
                        self.module.fail_json(msg='Error:    auth_key_id    is    not    in    the    range    from    1    to    255.')
                if (self.auth_text_md5 and (len(self.auth_text_md5) > 255)):
                    self.module.fail_json(msg='Error:    auth_text_md5    is    not    in    the    range    from    1    to    255.')
    if self.cost:
        if (not self.cost.isdigit()):
            self.module.fail_json(msg='Error:    cost    is    not    digit.')
        if ((int(self.cost) < 1) or (int(self.cost) > 65535)):
            self.module.fail_json(msg='Error:    cost    is    not    in    the    range    from    1    to    65535')
    if self.hello_interval:
        if (not self.hello_interval.isdigit()):
            self.module.fail_json(msg='Error:    hello_interval    is    not    digit.')
        if ((int(self.hello_interval) < 1) or (int(self.hello_interval) > 65535)):
            self.module.fail_json(msg='Error:    hello_interval    is    not    in    the    range    from    1    to    65535')
    if self.dead_interval:
        if (not self.dead_interval.isdigit()):
            self.module.fail_json(msg='Error:    dead_interval    is    not    digit.')
        if ((int(self.dead_interval) < 1) or (int(self.dead_interval) > 235926000)):
            self.module.fail_json(msg='Error:    dead_interval    is    not    in    the    range    from    1    to    235926000')
