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:
parent
2116784de0
commit
e29ee11b65
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user