Jump to: navigation, search

Provider-network-partial-specs

Revision as of 15:02, 14 January 2014 by Cedric Brandily (talk | contribs) (Provider network partial attributes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Overview

Currently, all provider attributes for networks are chosen by:

  • neutron-server for tenant networks,
  • neutron admin for provider networks.

The aim of this functionality is to allow to the neutron admin to provide some provider network attributes and delegate when possible the choice of remaining provider attributes to neutron.

Use Cases

This functionality could be used when :

  • creating networks for bare metal instances: neutron admin creates provider-networks with provider:network_type=vlan and delegates to neutron-server provider:physical_network and provider:segmentation_id choices using tenant-network pools,
  • creating service oriented networks which imposes some requirements: neutron creates provider-networks with the previous requirements and delegates to neutron-server other provider attributes choices using tenant-network pools.

API impacts

This functionality will change the constraints on provider attributes on provider network create:

  • provider:network_type is required,
  • when provider:network_type=vlan, provider::physical_network and provider:segmentation_id become optional, provider:segmentation_id can be provided only if provider::physical_network is provided (otherwise raise a http bad request),
  • when provider:network_type=gre or vxlan, provider:segmentation_id becomes optional,
  • when provider:network_type=flat, provider::physical_network becomes optional (not sure for the moment),
  • when provider:network_type=local, no impact.

If some provider attributes are not provided, neutron will try to find in tenant network pools a network respecting provided provider attributes, if not network is found a http bad request (http code to discuss) is returned.

Implementation

(to discuss) Options :

* Provides alternative TypeDriver implementations for vlan/gre/vxlan/flat supporting to omit some provider attributes 
* Update current TypeDriver implementations to support it.