'Check all input params'

def check_params(self):

    if (self.cur_config['bgp_exist'] == 'false'):
        self.module.fail_json(msg='Error:    BGP    view    doesnot    exist.')
    if self.bgp_instance:
        if ((len(self.bgp_instance) < 1) or (len(self.bgp_instance) > 31)):
            self.module.fail_json(msg='Error:    The    length    of    BGP    instance-name    must    be    between    1    or    a    string    of    1    to    and    31.')
    if self.as_number:
        if ((len(self.as_number) > 11) or (len(self.as_number) == 0)):
            self.module.fail_json(msg=('Error:    The    len    of    as_number    %s    is    out    of    [1    -    11].' % self.as_number))
    tmp_dict1 = dict(peer_type=self.peer_type, peer=self.peer, reflect_client=self.reflect_client)
    tmp_dict2 = dict(((k, v) for (k, v) in tmp_dict1.items() if (v is not None)))
    if ((len(tmp_dict2) != 0) and (len(tmp_dict2) != 3)):
        self.module.fail_json(msg='Error:    The    peer,    peer_type,    and    reflect_client    arguments    must    all    exist    or    not    exist.')
    if self.peer_type:
        if ((self.peer_type == 'ipv4_address') and (not self.check_is_ipv4_addr())):
            self.module.fail_json(msg='Error:    Illegal    IPv4    address.')
        elif ((self.peer_type == 'group_name') and self.check_is_ipv4_addr()):
            self.module.fail_json(msg='Error:    Ip    address    cannot    be    configured    as    group-name.')
