Each row in this table represents one QoS rule for a logical
switch that points to it through its qos_rules column. Two types
of QoS are supported: DSCP marking and metering. A match with the
highest-priority will have QoS applied to it. If the action
column is specified, then matching packets will have DSCP marking
applied. If the bandwdith column is specified, then matching
packets will have metering applied. action and bandwdith are not
exclusive, so both marking and metering by defined for the same
QoS entry. If no row matches, packets will not have any QoS
applied.
Summary:
priority integer, in range 0 to 32,767
direction string, either from-lport or
to-lport
match string
action map of string-integer pairs, key
must be dscp, value in range 0 to
63
bandwidth map of string-integer pairs, key
either burst or rate, value in
range 1 to 4,294,967,295
external_ids map of string-string pairs
Details:
priority: integer, in range 0 to 32,767
The QoS rule's priority. Rules with numerically higher
priority take precedence over those with lower. If two QoS
rules with the same priority both match, then the one
actually applied to a packet is undefined.
direction: string, either from-lport or to-lport
The value of this field is similar to ACL column in the
OVN Northbound database's ACL table.
match: string
The packets that the QoS rules should match, in the same
expression language used for the match column in the OVN
Southbound database's Logical_Flow table. The outport
logical port is only available in the to-lport direction
(the inport is available in both directions).
action: map of string-integer pairs, key must be dscp, value in
range 0 to 63
When specified, matching flows will have DSCP marking
applied.
• dscp: The value of this action should be in the
range of 0 to 63 (inclusive).
bandwidth: map of string-integer pairs, key either burst or rate,
value in range 1 to 4,294,967,295
When specified, matching packets will have bandwidth
metering applied. Traffic over the limit will be dropped.
• rate: The value of rate limit in kbps.
• burst: The value of burst rate limit in kilobits.
This is optional and needs to specify the rate.
external_ids: map of string-string pairs
See External IDs at the beginning of this document.