参考了网络上其它朋友的方法。

修改Neutron配置文件,使其支持Qos

修改Neutron.conf

service_plugins = neutron.services.qos.qos_plugin.QoSPlugin

修改plugins/ml2/ml2_conf.ini

[ml2]
extension_drivers=qos

[agent]
extensions=qos

重启neutron服务

systemctl restart neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service

创建一个policy

neutron qos-policy-create test
openstack network qos policy create test

添加限速rule

neutron qos-bandwidth-limit-rule-createbw-limiter --max-kbps 700000 --max-burst-kbps 560000
openstack network qos rule create b67368e8-187b-4777-822c-1af3ed59a59e --max-kbps 20480 --max-burst-kbits 30720 --type bandwidth-limit

绑定Port

neutron port-update <port_id> --qos-policy test
openstack port set 32873801-a55c-4656-8147-0dd1b576d75a --qos-policy b67368e8-187b-4777-822c-1af3ed59a59e

绑定Network

neutron net-update <network_id> --qos-policy test

相关文章:

  • 2021-08-28
  • 2022-01-11
  • 2021-12-02
  • 2021-11-07
  • 2021-10-13
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-12
  • 2021-12-17
  • 2022-02-01
  • 2021-10-13
  • 2022-02-01
  • 2021-08-02
相关资源
相似解决方案