From 48398e53478f0ec3d5058e8a62213717590db921 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Thu, 8 Jun 2017 14:30:10 +0100 Subject: [PATCH] Change allowed directions for QoS min-bw rule in SR-IOV Changed allowed directions for QoS minimum bandwidth rule in SR-IOV driver to only "egress". Currently this is the only supported direction for this rule in this backend. Closes-Bug: #1696679 Change-Id: Ia56146143e902663e9a47231773956ab2f035c8e --- neutron/services/qos/drivers/sriov/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/services/qos/drivers/sriov/driver.py b/neutron/services/qos/drivers/sriov/driver.py index 3883a70154f..5a99a66cb7c 100644 --- a/neutron/services/qos/drivers/sriov/driver.py +++ b/neutron/services/qos/drivers/sriov/driver.py @@ -36,7 +36,7 @@ SUPPORTED_RULES = { qos_consts.RULE_TYPE_MINIMUM_BANDWIDTH: { qos_consts.MIN_KBPS: { 'type:range': [0, constants.DB_INTEGER_MAX_VALUE]}, - qos_consts.DIRECTION: {'type:values': constants.VALID_DIRECTIONS} + qos_consts.DIRECTION: {'type:values': [constants.EGRESS_DIRECTION]} } }