Removed fuel from Genesis master since fuel has moved to repo fuel.
[genesis.git] / compass / deploy / ansible / roles / nova-controller / templates / ml2_conf.ini
1 [ml2]
2 # (ListOpt) List of network type driver entrypoints to be loaded from
3 # the neutron.ml2.type_drivers namespace.
4 #
5 # type_drivers = local,flat,vlan,gre,vxlan
6 # Example: type_drivers = flat,vlan,gre,vxlan
7 type_drivers = {{ NEUTRON_TYPE_DRIVERS |join(",") }}
8
9 # (ListOpt) Ordered list of network_types to allocate as tenant
10 # networks. The default value 'local' is useful for single-box testing
11 # but provides no connectivity between hosts.
12 #
13 # tenant_network_types = local
14 # Example: tenant_network_types = vlan,gre,vxlan
15 tenant_network_types = {{ NEUTRON_TENANT_NETWORK_TYPES |join(",") }}
16
17 # (ListOpt) Ordered list of networking mechanism driver entrypoints
18 # to be loaded from the neutron.ml2.mechanism_drivers namespace.
19 # mechanism_drivers =
20 # Example: mechanism_drivers = openvswitch,mlnx
21 # Example: mechanism_drivers = arista
22 # Example: mechanism_drivers = cisco,logger
23 # Example: mechanism_drivers = openvswitch,brocade
24 # Example: mechanism_drivers = linuxbridge,brocade
25 mechanism_drivers = {{ NEUTRON_MECHANISM_DRIVERS |join(",") }}
26
27 [ml2_type_flat]
28 # (ListOpt) List of physical_network names with which flat networks
29 # can be created. Use * to allow flat networks with arbitrary
30 # physical_network names.
31 #
32 flat_networks = external
33 # Example:flat_networks = physnet1,physnet2
34 # Example:flat_networks = *
35
36 [ml2_type_vlan]
37 # (ListOpt) List of <physical_network>[:<vlan_min>:<vlan_max>] tuples
38 # specifying physical_network names usable for VLAN provider and
39 # tenant networks, as well as ranges of VLAN tags on each
40 # physical_network available for allocation as tenant networks.
41 #
42 network_vlan_ranges =
43 # Example: network_vlan_ranges = physnet1:1000:2999,physnet2
44
45 [ml2_type_gre]
46 # (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE tunnel IDs that are available for tenant network allocation
47 tunnel_id_ranges = 1:1000
48
49 [ml2_type_vxlan]
50 # (ListOpt) Comma-separated list of <vni_min>:<vni_max> tuples enumerating
51 # ranges of VXLAN VNI IDs that are available for tenant network allocation.
52 #
53 vni_ranges = 1001:4095
54
55 # (StrOpt) Multicast group for the VXLAN interface. When configured, will
56 # enable sending all broadcast traffic to this multicast group. When left
57 # unconfigured, will disable multicast VXLAN mode.
58 #
59 vxlan_group = 239.1.1.1
60 # Example: vxlan_group = 239.1.1.1
61
62 [securitygroup]
63 # Controls if neutron security group is enabled or not.
64 # It should be false when you use nova security group.
65 # enable_security_group = True
66 firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
67 enable_security_group = True
68
69 [database]
70 connection = mysql://neutron:{{ NEUTRON_DBPASS }}@{{ db_host }}/neutron?charset=utf8
71
72 [ovs]
73 local_ip = {{ internal_ip }}
74 {% if 'openvswitch' in NEUTRON_MECHANISM_DRIVERS %}
75 integration_bridge = br-int
76 tunnel_bridge = br-tun
77 tunnel_id_ranges = 1001:4095
78 tunnel_type = {{ NEUTRON_TUNNEL_TYPES |join(",") }}
79 bridge_mappings = {{ neutron_ovs_bridge_mappings | default("external:br-ex") }}
80 {% endif %}
81
82 [agent]
83 root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
84 tunnel_types = {{ NEUTRON_TUNNEL_TYPES |join(",") }}
85 {% if 'vxlan' in NEUTRON_TUNNEL_TYPES %}
86 vxlan_udp_port = 4789
87 {% endif %}
88 l2_population = False
89
90 [odl]
91 {% if 'opendaylight' in NEUTRON_MECHANISM_DRIVERS %}
92 network_vlan_ranges = 1001:4095
93 tunnel_id_ranges = 1001:4095
94 tun_peer_patch_port = patch-int
95 int_peer_patch_port = patch-tun
96 tenant_network_type = vxlan
97 tunnel_bridge = br-tun
98 integration_bridge = br-int
99 controllers = 10.1.0.15:8080:admin:admin
100 {% endif %}
101
102 [ml2_odl]
103 {% if 'opendaylight' in NEUTRON_MECHANISM_DRIVERS %}
104 username = {{ odl_username }}
105 password = {{ odl_password }}
106 url = http://{{ controller }}:{{ odl_api_port }}/controller/nb/v2/neutron
107 {% endif %}
108