Skip to content

Instantly share code, notes, and snippets.

@AlexYangYu
Last active August 29, 2015 13:57
Show Gist options
  • Save AlexYangYu/9782496 to your computer and use it in GitHub Desktop.
Save AlexYangYu/9782496 to your computer and use it in GitHub Desktop.
Neutron conf
/etc/neutron.conf
[DEFAULT]
debug = False
verbos = False
state_path = /var/lib/neutron
lock_path = $state_path/lock
#core_plugin = neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2
core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin
service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin
notification_driver = neutron.openstack.common.notifier.rpc_notifier
allow_overlapping_ips = True
rabbitmq_host = 10.22.203.21
[quotas]
[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
[keystone_authtoken]
auth_host = 10.22.203.21
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = neutron
admin_password = service_pass
signing_dir = /var/lib/neutron/keystone-signing
[database]
connection = mysql://neutronUser:[email protected]/neutron
[service_providers]
#service_provider = LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
/etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]
type_drivers = local,flat,vlan,gre,vxlan
tenant_network_types = vxlan
mechanism_drivers = openvswitch,linuxbridge,l2population
[database]
sql_connection=mysql://neutronUser:[email protected]/neutron
[securitygroup]
firewall_driver=neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
#firewall_deiver = neutron.agent.firewall.NoopFirewallDriver
[ml2_type_flat]
flat_networks = phy-129
[ml2_type_vlan]
[ml2_type_gre]
#tunnel_id_ranges = 1:1000
[ml2_type_vxlan]
vni_ranges=1:10000
vxlan_group = 239.1.1.1
/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
[ovs]
debug = True
verbose = True
tenant_network_type = vxlan
enable_tunneling = True
tunnel_id_ranges = 1:10000
tunnel_type = vxlan
local_ip = 192.168.129.22
network_vlan_ranges = phy-129
bridge_mappings = phy-129:br-ex
[agent]
tunnel_types = vxlan
l2_population = True
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
#firewall_deiver = neutron.agent.firewall.NoopFirewallDriver
/etc/neutron/dhcp_agent.ini
[DEFAULT]
debug = True
verbose = True
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
use_namespaces = True
signing_dir = /var/cache/neutron
admin_tenant_name = service
admin_user = neutron
admin_password = service_pass
auth_url = http://10.22.203.21:35357/v2.0
dhcp_agent_manager = neutron.agent.dhcp_agent.DhcpAgentWithStateReport
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
state_path = /var/lib/neutron
enable_multi_host = True
enable_isolated_metadata = True
/etc/neutron/l3_agent.ini
[DEFAULT]
debug = True
#verbose = True
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
use_namespaces = True
external_network_bridge = br-ex
signing_dir = /var/cache/neutron
admin_tenant_name = service
admin_user = neutron
admin_password = service_pass
auth_url = http://10.22.203.21:35357/v2.0
l3_agent_manager = neutron.agent.l3_agent.L3NATAgentWithStateReport
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
enable_multi_host = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment