'get current configuration'

def get_current_config(self, vni_id, peer_ip_list):

    flags = list()
    exp = '    |    include    vni    '
    exp += vni_id
    exp += '    head-end    peer-list    '
    for peer_ip in peer_ip_list:
        exp += ('|    exclude    %s    ' % peer_ip)
    flags.append(exp)
    return get_config(self.module, flags)
