Merge "finish routes api ref"
This commit is contained in:
commit
09fedafb43
@ -10,6 +10,13 @@ appropriate external gateway.
|
|||||||
|
|
||||||
This resource is provided when ``router`` extension is enabled.
|
This resource is provided when ``router`` extension is enabled.
|
||||||
|
|
||||||
|
Extra routes extension (``extraroute``)
|
||||||
|
=======================================
|
||||||
|
|
||||||
|
The extra route extension (``extraroute``) extends ``router`` resources adding
|
||||||
|
a ``routes`` attribute that contains an array of route objects. Each route
|
||||||
|
object has a ``destination`` and ``nexthop`` attribute representing the route.
|
||||||
|
|
||||||
List routers
|
List routers
|
||||||
============
|
============
|
||||||
|
|
||||||
@ -233,6 +240,7 @@ Request
|
|||||||
- external_fixed_ips: router-external_fixed_ips
|
- external_fixed_ips: router-external_fixed_ips
|
||||||
- router_id: router_id
|
- router_id: router_id
|
||||||
- description: description-request
|
- description: description-request
|
||||||
|
- routes: router-routes-request
|
||||||
|
|
||||||
Request Example
|
Request Example
|
||||||
---------------
|
---------------
|
||||||
|
@ -25,7 +25,12 @@
|
|||||||
"id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
|
"id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
|
||||||
"name": "router1",
|
"name": "router1",
|
||||||
"revision_number": 1,
|
"revision_number": 1,
|
||||||
"routes": [],
|
"routes": [
|
||||||
|
{
|
||||||
|
"destination": "179.24.1.0/24",
|
||||||
|
"nexthop": "172.24.3.99"
|
||||||
|
}
|
||||||
|
],
|
||||||
"status": "ACTIVE",
|
"status": "ACTIVE",
|
||||||
"project_id": "0bd18306d801447bb457a46252d82d13",
|
"project_id": "0bd18306d801447bb457a46252d82d13",
|
||||||
"tenant_id": "0bd18306d801447bb457a46252d82d13"
|
"tenant_id": "0bd18306d801447bb457a46252d82d13"
|
||||||
|
@ -8,6 +8,12 @@
|
|||||||
"ip_address": "172.24.4.6",
|
"ip_address": "172.24.4.6",
|
||||||
"subnet_id": "b930d7f6-ceb7-40a0-8b81-a425dd994ccf"
|
"subnet_id": "b930d7f6-ceb7-40a0-8b81-a425dd994ccf"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"routes": [
|
||||||
|
{
|
||||||
|
"destination": "179.24.1.0/24",
|
||||||
|
"nexthop": "172.24.3.99"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,12 @@
|
|||||||
"id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
|
"id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
|
||||||
"name": "router1",
|
"name": "router1",
|
||||||
"revision_number": 3,
|
"revision_number": 3,
|
||||||
"routes": [],
|
"routes": [
|
||||||
|
{
|
||||||
|
"destination": "179.24.1.0/24",
|
||||||
|
"nexthop": "172.24.3.99"
|
||||||
|
}
|
||||||
|
],
|
||||||
"status": "ACTIVE",
|
"status": "ACTIVE",
|
||||||
"project_id": "0bd18306d801447bb457a46252d82d13",
|
"project_id": "0bd18306d801447bb457a46252d82d13",
|
||||||
"tenant_id": "0bd18306d801447bb457a46252d82d13"
|
"tenant_id": "0bd18306d801447bb457a46252d82d13"
|
||||||
|
@ -26,7 +26,12 @@
|
|||||||
"id": "915a14a6-867b-4af7-83d1-70efceb146f9",
|
"id": "915a14a6-867b-4af7-83d1-70efceb146f9",
|
||||||
"name": "router2",
|
"name": "router2",
|
||||||
"revision_number": 1,
|
"revision_number": 1,
|
||||||
"routes": [],
|
"routes": [
|
||||||
|
{
|
||||||
|
"destination": "179.24.1.0/24",
|
||||||
|
"nexthop": "172.24.3.99"
|
||||||
|
}
|
||||||
|
],
|
||||||
"status": "ACTIVE",
|
"status": "ACTIVE",
|
||||||
"project_id": "0bd18306d801447bb457a46252d82d13",
|
"project_id": "0bd18306d801447bb457a46252d82d13",
|
||||||
"tenant_id": "0bd18306d801447bb457a46252d82d13"
|
"tenant_id": "0bd18306d801447bb457a46252d82d13"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user