Add support for onos
Co-Authored-By: caowei <cao.wei@99cloud.net> Co-Authored-By: yuqian <yu.qian@99cloud.net> Change-Id: If8143b720203fe75cf586248f1fa1d3fde34c750 blueprint: onos-support
This commit is contained in:
parent
97dcee4c98
commit
5f3cbd8360
@ -491,6 +491,7 @@ enable_neutron_sfc: "no"
|
|||||||
enable_neutron_infoblox_ipam_agent: "no"
|
enable_neutron_infoblox_ipam_agent: "no"
|
||||||
enable_nova_serialconsole_proxy: "no"
|
enable_nova_serialconsole_proxy: "no"
|
||||||
enable_octavia: "no"
|
enable_octavia: "no"
|
||||||
|
enable_onos: "no"
|
||||||
enable_opendaylight: "no"
|
enable_opendaylight: "no"
|
||||||
enable_openvswitch: "{{ neutron_plugin_agent != 'linuxbridge' | bool }}"
|
enable_openvswitch: "{{ neutron_plugin_agent != 'linuxbridge' | bool }}"
|
||||||
enable_ovs_dpdk: "no"
|
enable_ovs_dpdk: "no"
|
||||||
@ -697,7 +698,7 @@ neutron_tenant_network_types: "vxlan"
|
|||||||
|
|
||||||
# valid values: ["dvr", "dvr_no_external"]
|
# valid values: ["dvr", "dvr_no_external"]
|
||||||
neutron_compute_dvr_mode: "dvr"
|
neutron_compute_dvr_mode: "dvr"
|
||||||
computes_need_external_bridge: "{{ enable_neutron_dvr | bool and (neutron_compute_dvr_mode == 'dvr' or inventory_hostname in groups['external-compute']) or enable_neutron_provider_networks | bool or enable_opendaylight | bool and neutron_plugin_agent != 'vmware_dvs' }}"
|
computes_need_external_bridge: "{{ enable_neutron_dvr | bool and (neutron_compute_dvr_mode == 'dvr' or inventory_hostname in groups['external-compute']) or enable_neutron_provider_networks | bool or enable_opendaylight | bool and neutron_plugin_agent != 'vmware_dvs' and not enable_onos | bool }}"
|
||||||
|
|
||||||
# Default DNS resolvers for virtual networks
|
# Default DNS resolvers for virtual networks
|
||||||
neutron_dnsmasq_dns_servers: "1.1.1.1,8.8.8.8,8.8.4.4"
|
neutron_dnsmasq_dns_servers: "1.1.1.1,8.8.8.8,8.8.4.4"
|
||||||
|
@ -15,7 +15,7 @@ neutron_services:
|
|||||||
neutron-openvswitch-agent:
|
neutron-openvswitch-agent:
|
||||||
container_name: "neutron_openvswitch_agent"
|
container_name: "neutron_openvswitch_agent"
|
||||||
image: "{{ neutron_openvswitch_agent_image_full }}"
|
image: "{{ neutron_openvswitch_agent_image_full }}"
|
||||||
enabled: "{{ neutron_plugin_agent == 'openvswitch' }}"
|
enabled: "{{ neutron_plugin_agent == 'openvswitch' and not enable_onos | bool }}"
|
||||||
privileged: True
|
privileged: True
|
||||||
host_in_groups: >-
|
host_in_groups: >-
|
||||||
{{
|
{{
|
||||||
@ -80,7 +80,7 @@ neutron_services:
|
|||||||
container_name: "neutron_dhcp_agent"
|
container_name: "neutron_dhcp_agent"
|
||||||
image: "{{ neutron_dhcp_agent_image_full }}"
|
image: "{{ neutron_dhcp_agent_image_full }}"
|
||||||
privileged: True
|
privileged: True
|
||||||
enabled: "{{ neutron_plugin_agent not in [ 'vmware_nsxv', 'vmware_nsxv3' ] }}"
|
enabled: "{{ neutron_plugin_agent not in [ 'vmware_nsxv', 'vmware_nsxv3' ] and not enable_onos | bool }}"
|
||||||
group: "neutron-dhcp-agent"
|
group: "neutron-dhcp-agent"
|
||||||
host_in_groups: "{{ inventory_hostname in groups['neutron-dhcp-agent'] }}"
|
host_in_groups: "{{ inventory_hostname in groups['neutron-dhcp-agent'] }}"
|
||||||
volumes:
|
volumes:
|
||||||
@ -93,7 +93,7 @@ neutron_services:
|
|||||||
container_name: "neutron_l3_agent"
|
container_name: "neutron_l3_agent"
|
||||||
image: "{{ neutron_l3_agent_image_full }}"
|
image: "{{ neutron_l3_agent_image_full }}"
|
||||||
privileged: True
|
privileged: True
|
||||||
enabled: "{{ neutron_plugin_agent not in ['vmware_nsxv', 'vmware_nsxv3', 'vmware_dvs'] and not enable_opendaylight_l3 | bool }}"
|
enabled: "{{ neutron_plugin_agent not in ['vmware_nsxv', 'vmware_nsxv3', 'vmware_dvs'] and not enable_opendaylight_l3 | bool and not enable_onos | bool }}"
|
||||||
host_in_groups: >-
|
host_in_groups: >-
|
||||||
{{
|
{{
|
||||||
inventory_hostname in groups['neutron-l3-agent']
|
inventory_hostname in groups['neutron-l3-agent']
|
||||||
@ -133,7 +133,7 @@ neutron_services:
|
|||||||
container_name: "neutron_metadata_agent"
|
container_name: "neutron_metadata_agent"
|
||||||
image: "{{ neutron_metadata_agent_image_full }}"
|
image: "{{ neutron_metadata_agent_image_full }}"
|
||||||
privileged: True
|
privileged: True
|
||||||
enabled: "{{ neutron_plugin_agent not in [ 'vmware_nsxv', 'vmware_nsxv3' ] }}"
|
enabled: "{{ neutron_plugin_agent not in [ 'vmware_nsxv', 'vmware_nsxv3' ] and not enable_onos | bool }}"
|
||||||
host_in_groups: >-
|
host_in_groups: >-
|
||||||
{{
|
{{
|
||||||
inventory_hostname in groups['neutron-metadata-agent']
|
inventory_hostname in groups['neutron-metadata-agent']
|
||||||
@ -376,3 +376,9 @@ notification_drivers:
|
|||||||
enabled: "{{ enable_opendaylight_qos | bool }}"
|
enabled: "{{ enable_opendaylight_qos | bool }}"
|
||||||
|
|
||||||
neutron_notification_drivers: "{{ notification_drivers|selectattr('enabled', 'equalto', true)|list }}"
|
neutron_notification_drivers: "{{ notification_drivers|selectattr('enabled', 'equalto', true)|list }}"
|
||||||
|
|
||||||
|
############
|
||||||
|
# Onos
|
||||||
|
############
|
||||||
|
onos_url: "127.0.0.1"
|
||||||
|
onos_username: "username"
|
||||||
|
@ -7,6 +7,8 @@ tenant_network_types = {{ neutron_tenant_network_types }}
|
|||||||
{% if neutron_plugin_agent == "openvswitch" %}
|
{% if neutron_plugin_agent == "openvswitch" %}
|
||||||
{% if enable_hyperv | bool %}
|
{% if enable_hyperv | bool %}
|
||||||
mechanism_drivers = openvswitch,hyperv
|
mechanism_drivers = openvswitch,hyperv
|
||||||
|
{% elif enable_onos | bool %}
|
||||||
|
mechanism_drivers = onos_ml2
|
||||||
{% else %}
|
{% else %}
|
||||||
mechanism_drivers = openvswitch,l2population
|
mechanism_drivers = openvswitch,l2population
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -34,6 +36,13 @@ password = {{ opendaylight_password }}
|
|||||||
port_binding_controller = {{ opendaylight_port_binding_type }}
|
port_binding_controller = {{ opendaylight_port_binding_type }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if enable_onos | bool %}
|
||||||
|
[onos]
|
||||||
|
url_path = {{ onos_url }}
|
||||||
|
username = {{ onos_username }}
|
||||||
|
password = {{ onos_password }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
[ml2_type_vlan]
|
[ml2_type_vlan]
|
||||||
{% if enable_ironic | bool %}
|
{% if enable_ironic | bool %}
|
||||||
network_vlan_ranges = physnet1
|
network_vlan_ranges = physnet1
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
when:
|
when:
|
||||||
- inventory_hostname in groups["network"]
|
- inventory_hostname in groups["network"]
|
||||||
or (inventory_hostname in groups["compute"] and computes_need_external_bridge | bool )
|
or (inventory_hostname in groups["compute"] and computes_need_external_bridge | bool )
|
||||||
|
- not enable_onos | bool
|
||||||
with_together:
|
with_together:
|
||||||
- "{{ neutron_bridge_name.split(',') }}"
|
- "{{ neutron_bridge_name.split(',') }}"
|
||||||
- "{{ neutron_external_interface.split(',') }}"
|
- "{{ neutron_external_interface.split(',') }}"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"command": "start-ovsdb-server 127.0.0.1",
|
"command": "start-ovsdb-server {% if enable_onos | bool %} 0.0.0.0 {% else %} 127.0.0.1 {% endif %}",
|
||||||
"config_files": [
|
"config_files": [
|
||||||
{
|
{
|
||||||
"source": "{{ container_config_directory }}/start-ovsdb-server",
|
"source": "{{ container_config_directory }}/start-ovsdb-server",
|
||||||
|
@ -248,6 +248,7 @@ kolla_internal_vip_address: "10.10.10.254"
|
|||||||
#enable_nova_fake: "no"
|
#enable_nova_fake: "no"
|
||||||
#enable_nova_serialconsole_proxy: "no"
|
#enable_nova_serialconsole_proxy: "no"
|
||||||
#enable_octavia: "no"
|
#enable_octavia: "no"
|
||||||
|
#enable_onos: "no"
|
||||||
#enable_opendaylight: "no"
|
#enable_opendaylight: "no"
|
||||||
#enable_openvswitch: "{{ neutron_plugin_agent != 'linuxbridge' }}"
|
#enable_openvswitch: "{{ neutron_plugin_agent != 'linuxbridge' }}"
|
||||||
#enable_ovs_dpdk: "no"
|
#enable_ovs_dpdk: "no"
|
||||||
|
@ -259,3 +259,8 @@ xenserver_password:
|
|||||||
####################
|
####################
|
||||||
prometheus_mysql_exporter_database_password:
|
prometheus_mysql_exporter_database_password:
|
||||||
prometheus_alertmanager_password:
|
prometheus_alertmanager_password:
|
||||||
|
|
||||||
|
############
|
||||||
|
# Onos
|
||||||
|
############
|
||||||
|
onos_password:
|
||||||
|
5
releasenotes/notes/onos-support-2ea385cceb8104d6.yaml
Normal file
5
releasenotes/notes/onos-support-2ea385cceb8104d6.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Add onos support, Networking-onos is Neutron’s sub-project to provide
|
||||||
|
connectivity between Neutron/Neutron’s sub-project’s and ONOS.
|
Loading…
Reference in New Issue
Block a user