Move packet_rate_limit type to neutron-lib
These are the TODO works of: neutron/services/qos/constants.py neutron/extensions/qos_pps_rule.py Related-bug: #1912460 Change-Id: I295d8004efd563a5044631ec504d4eb9ae1be55d
This commit is contained in:
parent
83bc3878eb
commit
8ca7087ed9
@ -17,6 +17,7 @@ import copy
|
||||
|
||||
from neutron_lib.api import converters
|
||||
from neutron_lib.api.definitions import qos as qos_apidef
|
||||
from neutron_lib.api.definitions import qos_bw_minimum_ingress
|
||||
from neutron_lib import constants
|
||||
from neutron_lib.db import constants as db_const
|
||||
from neutron_lib.services.qos import constants as qos_const
|
||||
@ -31,6 +32,7 @@ DESCRIPTION = 'Add QoS Rule Type Packet per Second'
|
||||
UPDATED_TIMESTAMP = '2021-05-12T10:00:00-00:00'
|
||||
RESOURCE_ATTRIBUTE_MAP = {}
|
||||
PACKET_RATE_LIMIT_RULES = 'packet_rate_limit_rules'
|
||||
RESOURCE_NAME = 'packet_rate_limit_rule'
|
||||
SUB_RES_ATTR_MAP = copy.deepcopy(
|
||||
qos_apidef.SUB_RESOURCE_ATTRIBUTE_MAP)
|
||||
SUB_RES_ATTR_MAP.update({
|
||||
@ -69,6 +71,8 @@ SUB_RES_ATTR_MAP.update({
|
||||
}),
|
||||
}
|
||||
})
|
||||
SUB_RES_ATTR_MAP.update(
|
||||
qos_bw_minimum_ingress.SUB_RESOURCE_ATTRIBUTE_MAP)
|
||||
SUB_RESOURCE_ATTRIBUTE_MAP = SUB_RES_ATTR_MAP
|
||||
ACTION_MAP = {}
|
||||
REQUIRED_EXTENSIONS = [qos_apidef.ALIAS]
|
||||
|
@ -16,9 +16,11 @@
|
||||
RULE_TYPE_BANDWIDTH_LIMIT = 'bandwidth_limit'
|
||||
RULE_TYPE_DSCP_MARKING = 'dscp_marking'
|
||||
RULE_TYPE_MINIMUM_BANDWIDTH = 'minimum_bandwidth'
|
||||
RULE_TYPE_PACKET_RATE_LIMIT = 'packet_rate_limit'
|
||||
VALID_RULE_TYPES = [RULE_TYPE_BANDWIDTH_LIMIT,
|
||||
RULE_TYPE_DSCP_MARKING,
|
||||
RULE_TYPE_MINIMUM_BANDWIDTH,
|
||||
RULE_TYPE_PACKET_RATE_LIMIT,
|
||||
]
|
||||
|
||||
# Names of rules' attributes
|
||||
|
Loading…
x
Reference in New Issue
Block a user