'Judge whether configuration has existed'

def judge_if_config_exist(self):

    if (self.bgp_evpn_enable and (self.bgp_evpn_enable != self.cur_config['bgp_evpn_enable'])):
        return False
    if ((self.bgp_evpn_enable == 'disable') and (self.cur_config['bgp_evpn_enable'] == 'disable')):
        return True
    if (self.reflect_client and (self.reflect_client == 'enable')):
        if (self.peer_type and (self.peer_type != self.cur_config['peer_type'])):
            return False
        if (self.peer and (self.peer != self.cur_config['peer'])):
            return False
    if (self.reflect_client and (self.reflect_client != self.cur_config['reflect_client'])):
        return False
    if (self.policy_vpn_target and (self.policy_vpn_target != self.cur_config['policy_vpn_target'])):
        return False
    return True
