'Check all input params'

def check_params(self):

    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:
        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 self.is_valid_v4addr(self.area)):
            self.module.fail_json(msg='Error:    area    id    is    invalid.')
        if self.addr:
            if (not self.is_valid_v4addr(self.addr)):
                self.module.fail_json(msg='Error:    network    addr    is    invalid.')
            if (not self.mask.isdigit()):
                self.module.fail_json(msg='Error:    network    mask    is    not    digit.')
            if ((int(self.mask) < 0) or (int(self.mask) > 32)):
                self.module.fail_json(msg='Error:    network    mask    is    invalid.')
        if ((self.state == 'present') and 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:
                    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.state == 'present') and self.max_load_balance):
        if (not self.max_load_balance.isdigit()):
            self.module.fail_json(msg='Error:    max_load_balance    is    not    digit.')
        if ((int(self.max_load_balance) < 1) or (int(self.max_load_balance) > 64)):
            self.module.fail_json(msg='Error:    max_load_balance    is    not    in    the    range    from    1    to    64.')
    if self.nexthop_addr:
        if (not self.is_valid_v4addr(self.nexthop_addr)):
            self.module.fail_json(msg='Error:    nexthop_addr    is    invalid.')
        if (not self.nexthop_weight.isdigit()):
            self.module.fail_json(msg='Error:    nexthop_weight    is    not    digit.')
        if ((int(self.nexthop_weight) < 1) or (int(self.nexthop_weight) > 254)):
            self.module.fail_json(msg='Error:    nexthop_weight    is    not    in    the    range    from    1    to    254.')
    if self.addr:
        self.convert_ip_to_network()
