'Check all input params'

def check_params(self):

    if self.interface:
        intf_type = get_interface_type(self.interface)
        if (not intf_type):
            self.module.fail_json(msg=('Error:    Interface    name    of    %s    is    error.' % self.interface))
    if self.vpn_name:
        if ((len(self.vpn_name) < 1) or (len(self.vpn_name) > 31)):
            self.module.fail_json(msg='Error:    VPN    name    length    is    beetween    1    and    31.')
    if self.address:
        self.check_ipaddr_validate()
