'Check all input params'

def check_params(self):

    if self.dfs_group_id:
        if (self.dfs_group_id != '1'):
            self.module.fail_json(msg='Error:    The    value    of    dfs_group_id    must    be    1.')
    if self.nickname:
        if (not self.nickname.isdigit()):
            self.module.fail_json(msg='Error:    The    value    of    nickname    is    an    integer.')
        if ((int(self.nickname) < 1) or (int(self.nickname) > 65471)):
            self.module.fail_json(msg='Error:    The    nickname    is    not    in    the    range    from    1    to    65471.')
    if self.pseudo_nickname:
        if (not self.pseudo_nickname.isdigit()):
            self.module.fail_json(msg='Error:    The    value    of    pseudo_nickname    is    an    integer.')
        if ((int(self.pseudo_nickname) < 1) or (int(self.pseudo_nickname) > 65471)):
            self.module.fail_json(msg='Error:    The    pseudo_nickname    is    not    in    the    range    from    1    to    65471.')
    if self.pseudo_priority:
        if (not self.pseudo_priority.isdigit()):
            self.module.fail_json(msg='Error:    The    value    of    pseudo_priority    is    an    integer.')
        if ((int(self.pseudo_priority) < 128) or (int(self.pseudo_priority) > 255)):
            self.module.fail_json(msg='Error:    The    pseudo_priority    is    not    in    the    range    from    128    to    255.')
    if self.ip_address:
        if (not is_valid_address(self.ip_address)):
            self.module.fail_json(msg=('Error:    The    %s    is    not    a    valid    ip    address.' % self.ip_address))
    if self.vpn_instance_name:
        if ((len(self.vpn_instance_name) > 31) or (len(self.vpn_instance_name.replace('    ', '')) < 1)):
            self.module.fail_json(msg='Error:    The    length    of    vpn_instance_name    is    not    in    the    range    from    1    to    31.')
    if self.priority_id:
        if (not self.priority_id.isdigit()):
            self.module.fail_json(msg='Error:    The    value    of    priority_id    is    an    integer.')
        if ((int(self.priority_id) < 1) or (int(self.priority_id) > 254)):
            self.module.fail_json(msg='Error:    The    priority_id    is    not    in    the    range    from    1    to    254.')
    if self.peer_link_id:
        if (self.peer_link_id != '1'):
            self.module.fail_json(msg='Error:    The    value    of    peer_link_id    must    be    1.')
    if self.eth_trunk_id:
        if (not self.eth_trunk_id.isdigit()):
            self.module.fail_json(msg='Error:    The    value    of    eth_trunk_id    is    an    integer.')
        if ((int(self.eth_trunk_id) < 0) or (int(self.eth_trunk_id) > 511)):
            self.module.fail_json(msg='Error:    The    value    of    eth_trunk_id    is    not    in    the    range    from    0    to    511.')
