'Activate or deactivate QoS.
enablestatus: true (activate)
enbalestatus: false (deactivate)'

def activate_deactivate_qos(self, qos_id, enablestatus):

    url = ('/ioclass/active/' + qos_id)
    data = {'TYPE': 230, 'ID': qos_id, 'ENABLESTATUS': enablestatus}
    result = self.call(url, data, 'PUT')
    self._assert_rest_result(result, _('Activate    or    deactivate    QoS    error.'))
