Skip to content

Commit 29cdcb8

Browse files
authored
Create add_vrouter_flow_aging.md
1 parent 9d3001b commit 29cdcb8

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

add_vrouter_flow_aging.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Steps to add vrouter flow_aging parameters using API
2+
3+
1. Get UUID from the below command, say GLOBAL_UUID.
4+
```
5+
curl http://<controller-ip>:8082/global-vrouter-configs | python -mjson.tool
6+
```
7+
8+
2. Create the payload file(globaltemp.json), example for ICMP with timeout 180seconds
9+
```
10+
{
11+
"global-vrouter-config": {
12+
"flow_aging_timeout_list": {
13+
"flow_aging_timeout": [
14+
{
15+
"port": 0,
16+
"protocol": "icmp",
17+
"timeout_in_seconds": 180
18+
}
19+
]
20+
},
21+
"uuid": "GLOBAL_UUID"
22+
}
23+
}
24+
```
25+
3. Do a PUT operation, as below command
26+
```
27+
curl -X PUT -H "Content-Type: application/json; charset=UTF-8" -d @globaltemp.json \
28+
http://<controller-ip>:8082/global-vrouter-config/<GLOBAL_UUID>
29+
```
30+
4. Check if its updated, using below command
31+
```
32+
curl http://<controller-ip>:8082/global-vrouter-config/<GLOBAL_UUID> | python -mjson.tool
33+
```
34+
5. Create the payload file(globalnull.json), to remove all protocols
35+
```
36+
{
37+
"global-vrouter-config": {
38+
"flow_aging_timeout_list": null,
39+
"uuid": "GLOBAL_UUID"
40+
}
41+
}
42+
```
43+
6. Do a PUT operation, as below command
44+
```
45+
curl -X PUT -H "Content-Type: application/json; charset=UTF-8" -d @globalnull.json \
46+
http://<controller-ip>:8082/global-vrouter-config/<GLOBAL_UUID>

0 commit comments

Comments
 (0)