~openstack-charmers/charms/trusty/neutron-api/snabbswitch

« back to all changes in this revision

Viewing changes to templates/liberty/neutron.conf

  • Committer: Edward Hope-Morley
  • Date: 2015-10-23 09:20:10 UTC
  • mfrom: (39.2.114 neutron-api-274709)
  • Revision ID: edward.hope-morley@canonical.com-20151023092010-mjo2mw2h28ta9hh5
synced /next and ch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# liberty
 
2
###############################################################################
 
3
# [ WARNING ]
 
4
# Configuration file maintained by Juju. Local changes may be overwritten.
 
5
# Restart trigger {{ restart_trigger }}
 
6
###############################################################################
 
7
[DEFAULT]
 
8
verbose = {{ verbose }}
 
9
debug = {{ debug }}
 
10
use_syslog = {{ use_syslog }}
 
11
state_path = /var/lib/neutron
 
12
bind_host = {{ bind_host }}
 
13
auth_strategy = keystone
 
14
notification_driver = neutron.openstack.common.notifier.rpc_notifier
 
15
api_workers = {{ workers }}
 
16
rpc_workers = {{ workers }}
 
17
 
 
18
router_distributed = {{ enable_dvr }}
 
19
 
 
20
l3_ha = {{ l3_ha }}
 
21
{% if l3_ha -%}
 
22
max_l3_agents_per_router = {{ max_l3_agents_per_router }}
 
23
min_l3_agents_per_router = {{ min_l3_agents_per_router }}
 
24
{% endif -%}
 
25
 
 
26
{% if neutron_bind_port -%}
 
27
bind_port = {{ neutron_bind_port }}
 
28
{% else -%}
 
29
bind_port = 9696
 
30
{% endif -%}
 
31
 
 
32
{% if core_plugin -%}
 
33
core_plugin = {{ core_plugin }}
 
34
{% if service_plugins -%}
 
35
service_plugins = {{ service_plugins }}
 
36
{% else -%}
 
37
{% if neutron_plugin in ['ovs', 'ml2', 'Calico'] -%}
 
38
service_plugins = router,firewall,lbaas,vpnaas,metering
 
39
{% endif -%}
 
40
{% endif -%}
 
41
{% endif -%}
 
42
 
 
43
{% if neutron_security_groups -%}
 
44
allow_overlapping_ips = True
 
45
{% if neutron_plugin == 'Calico' -%}
 
46
neutron_firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
 
47
{% else -%}
 
48
neutron_firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
 
49
{% endif -%}
 
50
{% endif -%}
 
51
 
 
52
{% if neutron_plugin == 'Calico' -%}
 
53
dhcp_agents_per_network = 1000
 
54
{% endif -%}
 
55
 
 
56
notify_nova_on_port_status_changes = True
 
57
notify_nova_on_port_data_changes = True
 
58
nova_url = {{ nova_url }}
 
59
nova_region_name = {{ region }}
 
60
{% if auth_host -%}
 
61
nova_admin_username = {{ admin_user }}
 
62
nova_admin_tenant_id = {{ admin_tenant_id }}
 
63
nova_admin_password = {{ admin_password }}
 
64
nova_admin_auth_url = {{ auth_protocol }}://{{ auth_host }}:{{ auth_port }}/v2.0
 
65
{% endif -%}
 
66
 
 
67
{% if sections and 'DEFAULT' in sections -%}
 
68
{% for key, value in sections['DEFAULT'] -%}
 
69
{{ key }} = {{ value }}
 
70
{% endfor -%}
 
71
{% endif %}
 
72
 
 
73
{% include "section-zeromq" %}
 
74
 
 
75
[quotas]
 
76
{% if quota_driver -%}
 
77
quota_driver = {{ quota_driver }}
 
78
{% else -%}
 
79
quota_driver = neutron.db.quota_db.DbQuotaDriver
 
80
{% endif -%}
 
81
{% if neutron_security_groups -%}
 
82
quota_items = network,subnet,port,security_group,security_group_rule
 
83
quota_security_group = {{ quota_security_group }}
 
84
quota_security_group_rule = {{ quota_security_group_rule }}
 
85
{% else -%}
 
86
quota_items = network,subnet,port
 
87
{% endif -%}
 
88
quota_network = {{ quota_network }}
 
89
quota_subnet = {{ quota_subnet }}
 
90
quota_port = {{ quota_port }}
 
91
quota_vip = {{ quota_vip }}
 
92
quota_pool = {{ quota_pool }}
 
93
quota_member = {{ quota_member }}
 
94
quota_health_monitors = {{ quota_health_monitors }}
 
95
quota_router = {{ quota_router }}
 
96
quota_floatingip = {{ quota_floatingip }}
 
97
 
 
98
[agent]
 
99
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
 
100
 
 
101
{% include "section-keystone-authtoken" %}
 
102
 
 
103
{% include "parts/section-database" %}
 
104
 
 
105
{% include "section-rabbitmq-oslo" %}
 
106
 
 
107
[oslo_concurrency]
 
108
lock_path = $state_path/lock