'get current configuration'

def get_current_config(self):

    flags = list()
    exp = ''
    if self.rate_limit:
        exp += ('assign    sflow    management-plane    export    rate-limit    %s' % self.rate_limit)
        if self.rate_limit_slot:
            exp += ('    slot    %s' % self.rate_limit_slot)
        exp += '$'
    if self.forward_enp_slot:
        if exp:
            exp += '|'
        exp += ('assign    forward    enp    sflow    enable    slot    %s$' % self.forward_enp_slot)
    if exp:
        exp = ('    |    ignore-case    include    ' + exp)
        flags.append(exp)
        return get_config(self.module, flags)
    else:
        return ''
