'get end state info'

def get_end_state(self):

    config = self.get_current_config()
    evn_bgp_exist = is_config_exist(config, 'evn    bgp')
    if evn_bgp_exist:
        self.end_state['evn_bgp'] = 'enable'
    else:
        self.end_state['evn_bgp'] = 'disable'
    if evn_bgp_exist:
        if is_config_exist(config, 'server    enable'):
            self.end_state['evn_server'] = 'enable'
        else:
            self.end_state['evn_server'] = 'disable'
        self.end_state['evn_source_ip'] = get_evn_srouce(config)
        self.end_state['evn_peer_ip'] = get_evn_peers(config)
        self.end_state['evn_reflect_client'] = get_evn_reflect_client(config)
    if is_config_exist(config, 'arp    collect    host    enable'):
        self.end_state['host_collect_protocol'] = 'enable'
    else:
        self.end_state['host_collect_protocol'] = 'disable'
    if is_config_exist(config, 'host    collect    protocol    bgp'):
        self.end_state['host_collect_protocol'] = 'bgp'
    else:
        self.end_state['host_collect_protocol'] = None
    if is_config_exist(config, 'arp    broadcast-suppress    enable'):
        self.end_state['arp_suppress'] = 'enable'
    else:
        self.end_state['arp_suppress'] = 'disable'
