The QoS interface policy enforces bandwidth control in the specified direction of the interface.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | interface | asso | |
| default | direction | enum | Available values:
|
| default | bandwidth | GroupField | Specifies the maximum bandwidth allowed in the specified direction of the interface. The bandwidth is shared by all QoS queues in the specified direction of the interface. |
| default | enable | boolean | |
| default | queue | asso |
{
"QosInterface": {
"meta": {
"abstract": false,
"verbose_name": QoS Interface,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| interface | asso | ||||||||||||||||||||||
| direction | enum | Available values:
|
|||||||||||||||||||||
| bandwidth | GroupField (Nested Field. It should be a dict.)
|
Specifies the maximum bandwidth allowed in the specified direction of the interface. The bandwidth is shared by all QoS queues in the specified direction of the interface. | |||||||||||||||||||||
| enable | boolean |
{
"QosInterface": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"QosInterface": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: interface, direction, bandwidth, enable, queue, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | interface | asso | |
| default | direction | enum | Available values:
|
| default | bandwidth | GroupField | Specifies the maximum bandwidth allowed in the specified direction of the interface. The bandwidth is shared by all QoS queues in the specified direction of the interface. |
| default | enable | boolean | |
| default | queue | asso |
{
"QosInterface": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"QosInterface": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"QosInterface": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
{
<field_name>:<value>
}
When field name is not specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_name | URI | (optional) Target field name to update. Available field names are: enable, |
| Field Name | Type | Description |
|---|---|---|
| enable | boolean |
All configuration fields and their values are replied:
{
"QosInterface": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"QosInterface": {
"instance_id":<instance_id>,
"interface":<value>
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"QosInterface": {
"instance_id":<instance_id>,
"queue":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| bandwidth | GroupField | Specifies the maximum bandwidth allowed for the queue. |
| priority | enum | Specifies the priority of the QoS queue policy. The larger the value, the higher the priority.Available values:
|
| borrow_bandwidth | boolean | Specifies whether the queue can borrow bandwidth from its parent queue. |
| default_queue | boolean | Specifies whether to function as the default queue when the packets do not match any other queue in QoS queue policies. |
| direction | enum | Available values:
|
{
"QosRootQueue": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}