Skip to content

Commit 6b114cd

Browse files
author
Rodolfo Alonso Hernandez
committed
Add support for Network QoS rule commands
Added following commands: - network qos rule create --type minimum-bandwidth dscp-marking limit-bandwidth - network qos rule delete - network qos rule list - network qos rule set - network qos rule show Closes-Bug: 1609472 Depends-On: I2e8869750024a8ccbc7777b95fe8ef6e26ec0885 Depends-On: Ife549ff6499217ca65e2554be8ef86ea7866b2d8 Change-Id: Ib3e1951f0917f5f23c8d9e0a380d19da2b3af5f0
1 parent 1957690 commit 6b114cd

10 files changed

Lines changed: 1814 additions & 73 deletions

File tree

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
================
2+
network qos rule
3+
================
4+
5+
A **Network QoS rule** specifies a rule defined in a Network QoS policy; its
6+
type is defined by the parameter 'type'. Can be assigned, within a Network QoS
7+
policy, to a port or a network. Each Network QoS policy can contain several
8+
rules, each of them
9+
10+
Network v2
11+
12+
network qos rule create
13+
-----------------------
14+
15+
Create new Network QoS rule
16+
17+
.. program:: network qos rule create
18+
.. code:: bash
19+
20+
os network qos rule create
21+
--type <type>
22+
[--max-kbps <max-kbps>]
23+
[--max-burst-kbits <max-burst-kbits>]
24+
[--dscp-marks <dscp-marks>]
25+
[--min-kbps <min-kbps>]
26+
[--ingress | --egress]
27+
<qos-policy>
28+
29+
.. option:: --type <type>
30+
31+
QoS rule type (minimum-bandwidth, dscp-marking, bandwidth-limit)
32+
33+
.. option:: --max-kbps <min-kbps>
34+
35+
Maximum bandwidth in kbps
36+
37+
.. option:: --max-burst-kbits <max-burst-kbits>
38+
39+
Maximum burst in kilobits, 0 means automatic
40+
41+
.. option:: --dscp-mark <dscp-mark>
42+
43+
DSCP mark: value can be 0, even numbers from 8-56, excluding 42, 44, 50,
44+
52, and 54
45+
46+
.. option:: --min-kbps <min-kbps>
47+
48+
Minimum guaranteed bandwidth in kbps
49+
50+
.. option:: --ingress
51+
52+
Ingress traffic direction from the project point of view
53+
54+
.. option:: --egress
55+
56+
Egress traffic direction from the project point of view
57+
58+
.. describe:: <qos-policy>
59+
60+
QoS policy that contains the rule (name or ID)
61+
62+
network qos rule delete
63+
-----------------------
64+
65+
Delete Network QoS rule
66+
67+
.. program:: network qos rule delete
68+
.. code:: bash
69+
70+
os network qos rule delete
71+
<qos-policy>
72+
<rule-id>
73+
74+
.. describe:: <qos-policy>
75+
76+
QoS policy that contains the rule (name or ID)
77+
78+
.. describe:: <rule-id>
79+
80+
Network QoS rule to delete (ID)
81+
82+
network qos rule list
83+
---------------------
84+
85+
List Network QoS rules
86+
87+
.. program:: network qos rule list
88+
.. code:: bash
89+
90+
os network qos rule list
91+
<qos-policy>
92+
93+
.. describe:: <qos-policy>
94+
95+
QoS policy that contains the rule (name or ID)
96+
97+
network qos rule set
98+
--------------------
99+
100+
Set Network QoS rule properties
101+
102+
.. program:: network qos rule set
103+
.. code:: bash
104+
105+
os network qos rule set
106+
[--max-kbps <max-kbps>]
107+
[--max-burst-kbits <max-burst-kbits>]
108+
[--dscp-marks <dscp-marks>]
109+
[--min-kbps <min-kbps>]
110+
[--ingress | --egress]
111+
<qos-policy>
112+
<rule-id>
113+
114+
.. option:: --max-kbps <min-kbps>
115+
116+
Maximum bandwidth in kbps
117+
118+
.. option:: --max-burst-kbits <max-burst-kbits>
119+
120+
Maximum burst in kilobits, 0 means automatic
121+
122+
.. option:: --dscp-mark <dscp-mark>
123+
124+
DSCP mark: value can be 0, even numbers from 8-56, excluding 42, 44, 50,
125+
52, and 54
126+
127+
.. option:: --min-kbps <min-kbps>
128+
129+
Minimum guaranteed bandwidth in kbps
130+
131+
.. option:: --ingress
132+
133+
Ingress traffic direction from the project point of view
134+
135+
.. option:: --egress
136+
137+
Egress traffic direction from the project point of view
138+
139+
.. describe:: <qos-policy>
140+
141+
QoS policy that contains the rule (name or ID)
142+
143+
.. describe:: <rule-id>
144+
145+
Network QoS rule to delete (ID)
146+
147+
network qos rule show
148+
---------------------
149+
150+
Display Network QoS rule details
151+
152+
.. program:: network qos rule show
153+
.. code:: bash
154+
155+
os network qos rule show
156+
<qos-policy>
157+
<rule-id>
158+
159+
.. describe:: <qos-policy>
160+
161+
QoS policy that contains the rule (name or ID)
162+
163+
.. describe:: <rule-id>
164+
165+
Network QoS rule to delete (ID)

doc/source/commands.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ referring to both Compute and Volume quotas.
113113
* ``network agent``: (**Network**) - A network agent is an agent that handles various tasks used to implement virtual networks
114114
* ``network meter``: (**Network**) - allow traffic metering in a network
115115
* ``network rbac``: (**Network**) - an RBAC policy for network resources
116+
* ``network qos rule``: (**Network**) - a QoS rule for network resources
116117
* ``network qos policy``: (**Network**) - a QoS policy for network resources
117118
* ``network qos rule type``: (**Network**) - list of QoS available rule types
118119
* ``network segment``: (**Network**) - a segment of a virtual network

0 commit comments

Comments
 (0)