'Get current configuration'

def get_current_config(self):

    if (not self.as_number):
        self.module.fail_json(msg='Error:    The    value    of    as-number    cannot    be    empty.')
    self.cur_config['bgp_exist'] = False
    self.cur_config['bgp_evpn_enable'] = 'disable'
    self.cur_config['reflect_client'] = 'disable'
    self.cur_config['policy_vpn_target'] = 'disable'
    self.cur_config['peer_type'] = None
    self.cur_config['peer'] = None
    self.config = self.get_config_in_bgp_view()
    if (not self.is_bgp_view_exist()):
        return
    self.cur_config['bgp_exist'] = True
    if (not self.is_l2vpn_family_evpn_exist()):
        return
    self.cur_config['bgp_evpn_enable'] = 'enable'
    self.bgp_evpn_config = self.get_config_in_bgp_evpn_view()
    if self.is_reflect_client_exist():
        self.cur_config['reflect_client'] = 'enable'
        self.cur_config['peer_type'] = self.peer_type
        self.cur_config['peer'] = self.peer
    if self.is_policy_vpn_target_exist():
        self.cur_config['policy_vpn_target'] = 'enable'
