How to update and set or unset a QOS Policy by python module
Hello, By using the following commands I can set/unset a port: openstack port set --qos-policy qos_policy_name "network_id" openstack port unset --qos-policy "network_id" But the issue is I cannot find the proper way to set/unset a port. I see this document: https://docs.openstack.org/openstacksdk/latest/user/proxies/network.html And I see the module has this method: *conn.network.update_port* But I don't see any more documents to see how to do that and what parameters are required. Can you help me?
Hello, I found the way: To set: conn.network.update_port(port='port_id', qos_policy_id='qos_policy_id') To unset: conn.network.update_port(port='port_id', qos_policy_id=None) On Fri, 14 Jun 2024 at 13:43, Saeed <s.fazl73@gmail.com> wrote:
Hello,
By using the following commands I can set/unset a port:
openstack port set --qos-policy qos_policy_name "network_id" openstack port unset --qos-policy "network_id"
But the issue is I cannot find the proper way to set/unset a port.
I see this document: https://docs.openstack.org/openstacksdk/latest/user/proxies/network.html And I see the module has this method: *conn.network.update_port* But I don't see any more documents to see how to do that and what parameters are required.
Can you help me?
participants (1)
-
Saeed