Integrate QoS constants change
patch I4f10ef3c1cbaa2a868de2b8e3abc4c39eb1f44c7 broke our code Change-Id: Ib24866e9e2f4d3f0412cc2e793ecb4711cb10732
This commit is contained in:
parent
ad425b90b1
commit
ffacfe0b24
@ -152,7 +152,7 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
|
||||
"router_availability_zone"]
|
||||
|
||||
supported_qos_rule_types = [qos_consts.RULE_TYPE_BANDWIDTH_LIMIT,
|
||||
qos_consts.RULE_TYPE_DSCP_MARK]
|
||||
qos_consts.RULE_TYPE_DSCP_MARKING]
|
||||
|
||||
__native_bulk_support = True
|
||||
__native_pagination_support = True
|
||||
|
@ -142,7 +142,7 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
|
||||
"security-group-logging"]
|
||||
|
||||
supported_qos_rule_types = [qos_consts.RULE_TYPE_BANDWIDTH_LIMIT,
|
||||
qos_consts.RULE_TYPE_DSCP_MARK]
|
||||
qos_consts.RULE_TYPE_DSCP_MARKING]
|
||||
|
||||
@resource_registry.tracked_resources(
|
||||
network=models_v2.Network,
|
||||
|
@ -80,7 +80,7 @@ class NsxVQosRule(object):
|
||||
self.peakBandwidth = self.averageBandwidth
|
||||
# burstSize: kbps (neutron) -> Bytes (nsxv)
|
||||
self.burstSize = rule_obj['max_burst_kbps'] * 128
|
||||
if rule_obj['type'] == qos_consts.RULE_TYPE_DSCP_MARK:
|
||||
if rule_obj['type'] == qos_consts.RULE_TYPE_DSCP_MARKING:
|
||||
self.dscpMarkEnabled = True
|
||||
self.dscpMarkValue = rule_obj['dscp_mark']
|
||||
|
||||
|
@ -80,7 +80,7 @@ class TestQosNsxVNotification(test_plugin.NsxVPluginV2TestCase,
|
||||
'dscp_marking_rule': {
|
||||
'id': uuidutils.generate_uuid(),
|
||||
'dscp_mark': 22,
|
||||
'type': qos_consts.RULE_TYPE_DSCP_MARK}}
|
||||
'type': qos_consts.RULE_TYPE_DSCP_MARKING}}
|
||||
|
||||
self.policy = policy_object.QosPolicy(
|
||||
self.ctxt, **self.policy_data['policy'])
|
||||
|
Loading…
Reference in New Issue
Block a user