'get current configuration'

def get_current_config(self):

    flags = list()
    exp = '|    ignore-case    section    include    evn    bgp|host    collect    protocol    bgp'
    if self.vbdif_name:
        exp += ('|^interface    %s$' % self.vbdif_name)
    if self.bridge_domain_id:
        exp += ('|^bridge-domain    %s$' % self.bridge_domain_id)
    flags.append(exp)
    config = get_config(self.module, flags)
    return config
