# Copyright 2017 The Openstack-Helm Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# MVP values for neutron using Linux Bridge.
# This file contains overrides to launch a MVP deployment of neutron using
# Linux Bridge for the OpenStack-Helm gates, and local development use.
# It should be kept to the bare minimum required for this purpose.

network:
  backend: linuxbridge
  interface:
    tunnel: docker0

manifests:
  daemonset_lb_agent: true
  daemonset_ovs_agent: false
  daemonset_ovs_db: false
  daemonset_ovs_vswitchd: false

dependencies:
  dhcp:
    daemonset:
      - neutron-lb-agent
  l3:
    daemonset:
      - neutron-lb-agent
  metadata:
    daemonset:
      - neutron-lb-agent

conf:
  neutron:
    default:
      oslo:
        log:
          debug: false
      neutron:
        agent:
          interface_driver: linuxbridge
        db:
          l3_ha: False
          min_l3_agents_per_router: 1
          max_l3_agents_per_router: 1
          l3_ha_network_type: vxlan
          dhcp_agents_per_network: 1
  ml2_conf:
    ml2:
      neutron:
        ml2:
          mechanism_drivers: linuxbridge, l2population
    ml2_type_flat:
      neutron:
        ml2:
          flat_networks: public
  dhcp_agent:
    default:
      neutron:
        base:
          agent:
            interface_driver: linuxbridge
  l3_agent:
    default:
      neutron:
        base:
          agent:
            interface_driver: linuxbridge
  linuxbridge_agent:
    linux_bridge:
      neutron:
        ml2:
          linuxbridge:
            agent:
              bridge_mappings: "public:br-ex"
