Skip to content

Latest commit

 

History

History
46 lines (44 loc) · 1.3 KB

add_vrouter_flow_aging.md

File metadata and controls

46 lines (44 loc) · 1.3 KB

Steps to add vrouter flow_aging parameters using API

  1. Get UUID from the below command, say GLOBAL_UUID.
curl  http://<controller-ip>:8082/global-vrouter-configs | python -mjson.tool
  1. Create the payload file(globaltemp.json), example for ICMP with timeout 180seconds
{
    "global-vrouter-config": {
        "flow_aging_timeout_list": {
            "flow_aging_timeout": [
                {
                    "port": 0,
                    "protocol": "icmp",
                    "timeout_in_seconds": 180
                }
            ]
        },
        "uuid": "GLOBAL_UUID"
    }
}
  1. Do a PUT operation, as below command
curl -X PUT -H "Content-Type: application/json; charset=UTF-8" -d @globaltemp.json \
http://<controller-ip>:8082/global-vrouter-config/<GLOBAL_UUID>
  1. Check if its updated, using below command
curl  http://<controller-ip>:8082/global-vrouter-config/<GLOBAL_UUID> | python -mjson.tool
  1. Create the payload file(globalnull.json), to remove all protocols
{
    "global-vrouter-config": {
        "flow_aging_timeout_list": null,
        "uuid": "GLOBAL_UUID"
    }
}
  1. Do a PUT operation, as below command
curl -X PUT -H "Content-Type: application/json; charset=UTF-8" -d @globalnull.json \
http://<controller-ip>:8082/global-vrouter-config/<GLOBAL_UUID>