'configure assign'

def config_assign(self):

    if self.rate_limit:
        cmd = ('assign    sflow    management-plane    export    rate-limit    %s' % self.rate_limit)
        if self.rate_limit_slot:
            cmd += ('    slot    %s' % self.rate_limit_slot)
        exist = is_config_exist(self.config, cmd)
        if ((self.state == 'present') and (not exist)):
            self.cli_add_command(cmd)
        elif ((self.state == 'absent') and exist):
            self.cli_add_command(cmd, undo=True)
    if self.forward_enp_slot:
        cmd = ('assign    forward    enp    sflow    enable    slot    %s' % self.forward_enp_slot)
        exist = is_config_exist(self.config, cmd)
        if ((self.state == 'present') and (not exist)):
            self.cli_add_command(cmd)
        elif ((self.state == 'absent') and exist):
            self.cli_add_command(cmd, undo=True)
