File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
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>
You can’t perform that action at this time.
0 commit comments