75e75b03b3
Bug 1216576 The documentation discusses how the router resources is extended and provides information concerning how to enable or disable SNAT using the Neutron API. Change-Id: I20f2913495558dd40b1d9ffa59797a97a342bf49
55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
POST /v2.0/routers
|
|
Accept: application/json
|
|
{
|
|
"router":
|
|
{
|
|
"name": "another_router",
|
|
"admin_state_up": true,
|
|
"external_gateway_info": {
|
|
"network_id": "3c5bcddd-6af9-4e6b-9c3e-c153e521cab8"}
|
|
}
|
|
}
|
|
|
|
HTTP/1.1 201 OK
|
|
Content-Type: application/json; charset=UTF-8
|
|
{
|
|
"router":
|
|
{
|
|
"status": "ACTIVE",
|
|
"external_gateway_info": {
|
|
"network_id": "3c5bcddd-6af9-4e6b-9c3e-c153e521cab8",
|
|
"enable_snat": true}
|
|
"name": "another_router",
|
|
"admin_state_up": true,
|
|
"tenant_id": "6b96ff0cb17a4b859e1e575d221683d3",
|
|
"id": "8604a0de-7f6b-409a-a47c-a1cc7bc77b2e"
|
|
}
|
|
}
|
|
|
|
|
|
PUT /v2.0/routers
|
|
Accept: application/json
|
|
{
|
|
"router":
|
|
{
|
|
"external_gateway_info": {
|
|
"network_id": "3c5bcddd-6af9-4e6b-9c3e-c153e521cab8",
|
|
"enable_snat": false}
|
|
}
|
|
}
|
|
|
|
HTTP/1.1 200 OK
|
|
Content-Type: application/json; charset=UTF-8
|
|
{
|
|
"router":
|
|
{
|
|
"status": "ACTIVE",
|
|
"external_gateway_info": {
|
|
"network_id": "3c5bcddd-6af9-4e6b-9c3e-c153e521cab8",
|
|
"enable_snat": false}
|
|
"name": "another_router",
|
|
"admin_state_up": true,
|
|
"tenant_id": "6b96ff0cb17a4b859e1e575d221683d3",
|
|
"id": "8604a0de-7f6b-409a-a47c-a1cc7bc77b2e"
|
|
}
|
|
} |