The Flow:

1. ip_block created in Melange(through nova-manage) and associated with quantum network as usual

2. Static routes are associated with the ip block created in step 1 in Melange as follows:

To create static_routes, you will need to POST to this path: /ipam/tenants/<tenant_id>/ip_blocks/<ip_block_id>/ip_routes with a body like:

3. VM creation in compute calls allocate_for_instance on quantum network manager (as usual).

4. Quantum network manager calls ipam.get_v4_ips_by_interface (or v6_ips) as usual for ip address information. Along with ip address, block and gateway info, we return the list of static routes in this call. This would allow the network_info dict to be constructed along with the static_routes information as well.

Eg: GET /ipam/tenants/<tenant_id>/networks/<quantum_net_id>/interfaces/<virt_interface_id>/ip_allocations

RESPONSE:

{

}

Wiki: Melange/StaticRoutes (last edited 2011-12-09 13:40:53 by TroyToman)