'Check all input params'

def check_params(self):

    if self.bridge_domain_id:
        if (not self.bridge_domain_id.isdigit()):
            self.module.fail_json(msg='Error:    The    parameter    of    bridge    domain    id    is    invalid.')
        if ((int(self.bridge_domain_id) > 16777215) or (int(self.bridge_domain_id) < 1)):
            self.module.fail_json(msg='Error:    The    bridge    domain    id    must    be    an    integer    between    1    and    16777215.')
    if (self.state == 'absent'):
        self.check_undo_params_if_exist()
    self.check_vni_bd()
    self.check_vpn_target_para()
    if (self.state == 'absent'):
        if self.route_distinguisher:
            if (not self.evpn_info['route_distinguisher']):
                self.module.fail_json(msg='Error:    Route    distinguisher    doesnot    have    been    configured.')
            elif (self.route_distinguisher != self.evpn_info['route_distinguisher']):
                self.module.fail_json(msg=('Error:    Current    route    distinguisher    value    is    %s.' % self.evpn_info['route_distinguisher']))
    if (self.state == 'present'):
        if self.route_distinguisher:
            if (self.evpn_info['route_distinguisher'] and (self.route_distinguisher != self.evpn_info['route_distinguisher'])):
                self.module.fail_json(msg='Error:    Route    distinguisher    has    already    been    configured.')
