After the IPflow routing function is enabled, the system will generate an IPflow route based on the source IP address in the packet forwarded using the route selected from two or more routes with the same priority. Subsequent packets from the same source IP address will always be forwarded using this IPflow route.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | enable | boolean | |
| default | expire | int | Sets the timeout value of the IPflow route. If an IPflow route is hit, this IPflow route will be retimed; if an IPflow route is not hit within the specified timeout value, this IPflow route will be deleted. |
| default | priority | uint32 | Sets the priority of the IPflow route. This priority is used in conjunction with the Eroute priority to determine the route matching order. Because the priority of the Eroute is higher than the default priority (1000) of the IPflow route, it is recommended to set the priority of the IPflow route to be greater than 1000 to ensure that it can take effect. |
| statistics | statistics | clitext | |
| stats | ip_overflow_num | StorableField | |
| stats | ipflow_hits | StorableField |
{
"IPFlow": {
"meta": {
"abstract": false,
"verbose_name": IPflow,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ip | ipaddr (Nested Field. It should be a dict.)
|
Format
{
"ipv4": xxxx
}
{
"ipv6": xxxx
}
|
{
"config_change": true|false,
"msg": <msg>
}
| Parameter | Type | Description |
|---|---|---|
| config_change | bool | Whether the action causes configuration change. |
| msg | sring | Empty when action is performed successfully, otherwise it represents the error info. |
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"config_change": true|false,
"msg": <msg>
}
| Parameter | Type | Description |
|---|---|---|
| config_change | bool | Whether the action causes configuration change. |
| msg | sring | Empty when action is performed successfully, otherwise it represents the error info. |
| Parameter | Type | Description |
|---|---|---|
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, statistics, stats, 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: enable, expire, priority, statistics, ip_overflow_num, ipflow_hits, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | enable | boolean | |
| default | expire | int | Sets the timeout value of the IPflow route. If an IPflow route is hit, this IPflow route will be retimed; if an IPflow route is not hit within the specified timeout value, this IPflow route will be deleted. |
| default | priority | uint32 | Sets the priority of the IPflow route. This priority is used in conjunction with the Eroute priority to determine the route matching order. Because the priority of the Eroute is higher than the default priority (1000) of the IPflow route, it is recommended to set the priority of the IPflow route to be greater than 1000 to ensure that it can take effect. |
| statistics | statistics | clitext | |
| stats | ip_overflow_num | StorableField | |
| stats | ipflow_hits | StorableField |
{
"IPFlow": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"IPFlow": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"IPFlow": {
<field>:<value>,
}
}
{
<field_name>:<value>
}
When field name is specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| field_name | URI | (optional) Target field name to update. Available field names are: enable, expire, priority, statistics, ip_overflow_num, ipflow_hits, |
| Field Name | Type | Description |
|---|---|---|
| enable | boolean | |
| expire | int | Sets the timeout value of the IPflow route. If an IPflow route is hit, this IPflow route will be retimed; if an IPflow route is not hit within the specified timeout value, this IPflow route will be deleted. |
| priority | uint32 | Sets the priority of the IPflow route. This priority is used in conjunction with the Eroute priority to determine the route matching order. Because the priority of the Eroute is higher than the default priority (1000) of the IPflow route, it is recommended to set the priority of the IPflow route to be greater than 1000 to ensure that it can take effect. |
All configuration fields and their values are replied:
{
"IPFlow": {
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}