The QoS filter rule classifies the matching packets to a specified queue for processing.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | queue | asso | |
| default | src_ip | ip4addr | |
| default | src_mask | string | |
| default | src_port | uint32 | |
| default | des_ip | ip4addr | |
| default | des_mask | string | |
| default | des_port | uint32 | |
| default | protocol | enum | Available values:
|
| default | priority | uint32 | The larger the value, the higher the priority. When two QoS filter rules with the same priority are matched, the QoS filter rules will be hit in the round robin method. |
| statistics | hits | StorableField |
{
"QosFilter": {
"meta": {
"abstract": false,
"verbose_name": QoS Filter,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| queue | asso | |
| src_ip | ip4addr | |
| src_mask | string | |
| src_port | uint32 | |
| des_ip | ip4addr | |
| des_mask | string | |
| des_port | uint32 | |
| protocol | enum | Available values:
|
| priority | uint32 | The larger the value, the higher the priority. When two QoS filter rules with the same priority are matched, the QoS filter rules will be hit in the round robin method. |
{
"QosFilter": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"QosFilter": [
{
"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, statistics, 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: name, queue, src_ip, src_mask, src_port, des_ip, des_mask, des_port, protocol, priority, hits, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | queue | asso | |
| default | src_ip | ip4addr | |
| default | src_mask | string | |
| default | src_port | uint32 | |
| default | des_ip | ip4addr | |
| default | des_mask | string | |
| default | des_port | uint32 | |
| default | protocol | enum | Available values:
|
| default | priority | uint32 | The larger the value, the higher the priority. When two QoS filter rules with the same priority are matched, the QoS filter rules will be hit in the round robin method. |
| statistics | hits | StorableField |
{
"QosFilter": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"QosFilter": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"QosFilter": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"QosFilter": {
"instance_id":<instance_id>,
"queue":<value>
}
}