Jump to: navigation, search

Difference between revisions of "Neutron/RoutedProviderNetworks"

(Created page with "== Routed Provider Network == '''This page is a HUGE work in progress!''' As I've been working on routed networks patches, I decided that I should share how I am setting up...")
 
(Replaced content with "== Routed Provider Network == Let's take this discussion to the [https://etherpad.openstack.org/p/routed-provider-networks-notes etherpad].")
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Routed Provider Network ==
 
== Routed Provider Network ==
  
'''This page is a HUGE work in progress!'''
+
Let's take this discussion to the [https://etherpad.openstack.org/p/routed-provider-networks-notes etherpad].
 
 
As I've been working on routed networks patches, I decided that I should share how I am setting up my environment and using them.
 
 
 
=== Segment CRUD ===
 
 
 
There first thing is to enable segment CRUD.  [https://review.openstack.org/#/c/296603 This patch] is what you need.  It is a service plugin that isn't enabled by default.  First, edit
 
you have the patch, edit ''/etc/neutron/neutron.conf'' and append ''segments'' to the list of ''service_plugins''.  Here's mine:
 
 
 
: service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin, segments
 
 
 
Since ''segments'' is defined in ''setup.cfg'', you actually need to reinstall neutron for this to work.  In devstack, I just do this:
 
 
 
: $ cd /opt/stack/neutron
 
: $ sudo pip install -e file://$PWD
 
 
 
There is one more change you need to do assuming you're going to use vlans and ML2.  You need to edit ''/etc/neutron/plugins/ml2/ml2_conf.ini'' to add your physnets and vlan ranges.  I just use the same vlan segment id for each segment.  But, the physnet has to be different for each segment.
 
 
 
: [ml2_type_vlan]
 
: network_vlan_ranges = segment-1:2000:2000, segment-2:2000:2000
 
 
 
At this point, restart the neutron service and then you should be able to create a multi-segmented network.  [http://paste.openstack.org/show/495985/ This paste shows a details request / response]. Note that it is not possible to create a multi-segmented network using the python-neutronclient at this time.  It is also not yet possible to create or delete segments on an existing network.
 
 
 
=== Associating Subnets to Segments ===
 

Latest revision as of 18:09, 3 May 2016

Routed Provider Network

Let's take this discussion to the etherpad.