Merge "Add traffic control constants"

This commit is contained in:
Zuul 2019-02-13 15:14:58 +00:00 committed by Gerrit Code Review
commit 3133add2c9
2 changed files with 20 additions and 1 deletions

View File

@ -12,7 +12,6 @@
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# TODO(salv-orlando): Verify if a single set of operational
# status constants is achievable
NET_STATUS_ACTIVE = 'ACTIVE'
@ -334,6 +333,17 @@ VALID_DIRECTIONS = (INGRESS_DIRECTION, EGRESS_DIRECTION)
PROVISIONAL_IPV6_PD_PREFIX = '::/64'
# Traffic control
TC_QDISC_TYPE_HTB = 'htb'
TC_QDISC_TYPE_TBF = 'tbf'
TC_QDISC_TYPE_INGRESS = 'ingress'
TC_QDISC_TYPES = (TC_QDISC_TYPE_HTB, TC_QDISC_TYPE_TBF, TC_QDISC_TYPE_INGRESS)
TC_QDISC_INGRESS_ID = 'ffff:'
TC_QDISC_PARENTS = {'root': 0xffffffff,
'ingress': 0xfffffff1}
class Sentinel(object):
"""A constant object that does not change even when copied."""

View File

@ -0,0 +1,9 @@
---
features:
- |
Adds traffic control related constants:
* Qdisc types: ``htb``, ``tbf`` and ``ingress``, used in Neutron ``tc_lib``
* Qdisc ID: for ``ingress`` type, because this one is specific only for
ingress traffic.
* Qdisc parents: for ``root`` and ``ingress`` types.