'Check all input params'

def check_params(self):

    if self.dfs_id:
        if (not self.dfs_id.isdigit()):
            self.module.fail_json(msg='Error:    DFS    id    is    not    digit.')
        if (int(self.dfs_id) != 1):
            self.module.fail_json(msg='Error:    DFS    is    not    1.')
    if self.dfs_source_ip:
        if (not is_valid_v4addr(self.dfs_source_ip)):
            self.module.fail_json(msg='Error:    dfs_source_ip    is    invalid.')
        if (self.dfs_source_vpn and (not self.is_valid_ip_vpn(self.dfs_source_vpn))):
            self.module.fail_json(msg='Error:    dfs_source_vpn    is    invalid.')
    if (self.dfs_source_vpn and (not self.dfs_source_ip)):
        self.module.fail_json(msg='Error:    dfs_source_vpn    and    dfs_source_ip    must    set    at    the    same    time.')
    if self.dfs_udp_port:
        if (not self.dfs_udp_port.isdigit()):
            self.module.fail_json(msg='Error:    dfs_udp_port    id    is    not    digit.')
        if ((int(self.dfs_udp_port) < 1025) or (int(self.dfs_udp_port) > 65535)):
            self.module.fail_json(msg='dfs_udp_port    is    not    ranges    from    1025    to    65535.')
    if self.dfs_peer_ip:
        if (not is_valid_v4addr(self.dfs_peer_ip)):
            self.module.fail_json(msg='Error:    dfs_peer_ip    is    invalid.')
        if (self.dfs_peer_vpn and (not self.is_valid_ip_vpn(self.dfs_peer_vpn))):
            self.module.fail_json(msg='Error:    dfs_peer_vpn    is    invalid.')
    if (self.dfs_peer_vpn and (not self.dfs_peer_ip)):
        self.module.fail_json(msg='Error:    dfs_peer_vpn    and    dfs_peer_ip    must    set    at    the    same    time.')
    if (self.vpn_instance and (not self.is_valid_ip_vpn(self.vpn_instance))):
        self.module.fail_json(msg='Error:    vpn_instance    is    invalid.')
    if self.vpn_vni:
        if (not self.vpn_vni.isdigit()):
            self.module.fail_json(msg='Error:    vpn_vni    id    is    not    digit.')
        if ((int(self.vpn_vni) < 1) or (int(self.vpn_vni) > 16000000)):
            self.module.fail_json(msg='vpn_vni    is    not        ranges    from    1    to    16000000.')
    if (bool(self.vpn_instance) != bool(self.vpn_vni)):
        self.module.fail_json(msg='Error:    vpn_instance    and    vpn_vni    must    set    at    the    same    time.')
    if self.vbdif_name:
        self.vbdif_name = self.vbdif_name.replace('    ', '').lower().capitalize()
        if (not self.is_valid_vbdif(self.vbdif_name)):
            self.module.fail_json(msg='Error:    vbdif_name    is    invalid.')
    if self.vbdif_mac:
        mac = mac_format(self.vbdif_mac)
        if (not mac):
            self.module.fail_json(msg='Error:    vbdif_mac    is    invalid.')
        self.vbdif_mac = mac
    if (self.vbdif_bind_vpn and (not self.is_valid_ip_vpn(self.vbdif_bind_vpn))):
        self.module.fail_json(msg='Error:    vbdif_bind_vpn    is    invalid.')
    if self.dfs_id:
        if (self.vpn_vni or (self.arp_distribute_gateway == 'enable')):
            self.module.fail_json(msg='Error:    All-Active    Gateways    or    Distributed    Gateway    config    can    not    set    at    the    same    time.')
