Create initial network depending on plugin agent type

Create 'local' network if neutron.plugin_agent is 'calico'.

Change-Id: Idec8c794320aadcc295718bccd21608946b1a3db
Closes-Bug: #1645779
Co-Authored-By: Alexander Saprykin <cutwatercore@gmail.com>
This commit is contained in:
Proskurin Kirill 2017-01-16 15:18:58 +00:00
parent 2116784de0
commit e29ee11b65
2 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,17 @@ service:
- neutron.conf
- ml2-conf.ini
- felix.cfg
# {% set int = neutron.bootstrap.internal %}
# {% if int.enable %}
# {% if neutron.plugin_agent == 'calico' %}
post:
- name: neutron-bootstrap-int-net-create
type: single
dependencies:
- neutron-server
command: openstack network create --provider-network-type local {{ int.net_name }}
# {% endif %}
# {% endif %}
files:
neutron.conf:
path: /etc/neutron/neutron.conf

View File

@ -32,11 +32,13 @@ service:
# {% set int = neutron.bootstrap.internal %}
# {% if int.enable %}
# {% if neutron.plugin_agent == 'vxlan' %}
- name: neutron-bootstrap-int-net-create
type: single
dependencies:
- neutron-server
command: openstack network create --provider-network-type vxlan --provider-segment 77 {{ int.net_name }}
# {% endif %}
- name: neutron-bootstrap-int-net-subnetpool-create
type: single
dependencies: