Extend qos DriverBase with validate_rule_for_port()
The openvswitch qos driver supports the min-bw qos rule only on
networks backed by physnets. Currently the qos driver interface does
not have a method that takes both the policy/rule and the network/port,
therefore we don't have enough information in the driver to tell if
we support the min-bw rule for a port or not. This change introduces
validate_rule_for_port(..., rule, port) so we have all the information
to tell.
The base method validate_rule_for_port() is concrete and returns True
for backwards compatibility.
Reviewed: https:/ /review. opendev. org/705694 /git.openstack. org/cgit/ openstack/ neutron- lib/commit/ ?id=6f3fb7fc819 9b8c374e6e97a2e 5a617a47b30671
Committed: https:/
Submitter: Zuul
Branch: master
commit 6f3fb7fc8199b8c 374e6e97a2e5a61 7a47b30671
Author: Bence Romsics <email address hidden>
Date: Tue Feb 4 14:02:22 2020 +0100
Extend qos DriverBase with validate_ rule_for_ port()
The openvswitch qos driver supports the min-bw qos rule only on rule_for_ port(.. ., rule, port) so we have all the information
networks backed by physnets. Currently the qos driver interface does
not have a method that takes both the policy/rule and the network/port,
therefore we don't have enough information in the driver to tell if
we support the min-bw rule for a port or not. This change introduces
validate_
to tell.
The base method validate_ rule_for_ port() is concrete and returns True
for backwards compatibility.
Change-Id: I58a47bb895bede 219cfeebbf0665a af01660ce89 /review. opendev. org/705695
Needed-By: https:/
Partial-Bug: #1861442
Related-Bug: #1819029