'get end state info'

def get_end_state(self):

    config = self.get_current_config()
    if (not config):
        return
    if is_config_exist(config, 'dfs-group    1'):
        self.end_state['dfs_id'] = '1'
        self.end_state['dfs_source_ip'] = get_dfs_source_ip(config)
        self.end_state['dfs_source_vpn'] = get_dfs_source_vpn(config)
        self.end_state['dfs_udp_port'] = get_dfs_udp_port(config)
        if is_config_exist(config, 'active-active-gateway'):
            self.end_state['dfs_all_active'] = 'enable'
            self.end_state['dfs_peers'] = get_dfs_peers(config)
        else:
            self.end_state['dfs_all_active'] = 'disable'
    if self.vpn_instance:
        self.end_state['vpn_instance'] = get_ip_vpn(config)
        self.end_state['vpn_vni'] = get_ip_vpn_vni(config)
    if self.vbdif_name:
        self.end_state['vbdif_name'] = self.vbdif_name
        self.end_state['vbdif_mac'] = get_vbdif_mac(config)
        self.end_state['vbdif_bind_vpn'] = get_vbdif_vpn(config)
        if is_config_exist(config, 'arp    distribute-gateway    enable'):
            self.end_state['arp_distribute_gateway'] = 'enable'
        else:
            self.end_state['arp_distribute_gateway'] = 'disable'
        if is_config_exist(config, 'arp    direct-route    enable'):
            self.end_state['arp_direct_route'] = 'enable'
        else:
            self.end_state['arp_direct_route'] = 'disable'
