Modifying QoS policy rules
You can modify QoS policy rules at runtime. Changes will take effect on all ports to which the policy is applied.
Prerequisites
- A QoS policy is created, as described in Creating QoS policies.
To edit a policy rule
Specify new parameter values, the policy name, and its rule ID with openstack network qos rule set
. For example:
# openstack --insecure network qos policy show policy1 +-------+---------------------------------------------------------------+ | Field | Value | +-------+---------------------------------------------------------------+ | <…> | | | name | policy1 | | rules | [{u'max_kbps': 3000, u'direction': u'ingress', | | | u'qos_policy_id': u'8e2511c9-7db5-456c-b8ee-939f7729d981', | | | u'type': u'bandwidth_limit', u'max_burst_kbps': 2400, | | | u'id': u'6f036f09-d952-420d-986b-27c7eb14b2da'}] | | <…> | | +-------+---------------------------------------------------------------+ # openstack --insecure network qos rule set --max-kbps 2000 --max-burst-kbits 1600 \
--ingress policy1 6f036f09-d952-420d-986b-27c7eb14b2da