crowbar/crowbar-openstack

View on GitHub
chef/cookbooks/neutron/templates/default/ml2_conf_cisco_apic.ini.erb

Summary

Maintainability
Test Coverage
[DEFAULT]
apic_system_id=<%= node[:neutron][:apic][:system_id] %>
[opflex]
networks = *
[ml2_cisco_apic]
apic_hosts=<%= node[:neutron][:apic][:hosts] %>
apic_username=<%= node[:neutron][:apic][:username] %>
apic_password=<%= node[:neutron][:apic][:password] %>
apic_use_ssl = True
apic_name_mapping = use_name
apic_clear_node_profiles = True
enable_aci_routing = True
apic_arp_flooding = True
enable_optimized_metadata = <%= node[:neutron][:apic][:optimized_metadata] %>
enable_optimized_dhcp = <%= node[:neutron][:apic][:optimized_dhcp] %>
apic_provision_infra = True
apic_provision_hostlinks = True
<%  unless @vpc_pairs.nil? -%>
apic_vpc_pairs = <%= @vpc_pairs %>
<% end -%>

<% @apic_switches.keys.each do |ip| -%>
[apic_switch:<%=ip%>]
  <% if @apic_switches[ip].key?(:switch_ports) -%>
    <% @apic_switches[ip][:switch_ports].each do |name, values| -%>
<%= name %> = <%= values[:switch_port] %>
    <% end -%>
  <% end -%>
<% end -%>
<% if @ml2_mechanism_drivers.include?("apic_gbp") -%>
[group_policy]
policy_drivers = <%= @policy_drivers %>
[group_policy_implicit_policy]
default_ip_pool = <%= @default_ip_pool %>
<% end -%>

[apic_external_network:<%=node[:neutron][:apic][:ext_net][:name]%>]
preexisting = <%= node[:neutron][:apic][:ext_net][:preexisting] %>
<% unless node[:neutron][:apic][:ext_net][:nat_enabled].nil? -%>
enable_nat = <%= node[:neutron][:apic][:ext_net][:nat_enabled] %>
<% end -%>
external_epg = <%= node[:neutron][:apic][:ext_net][:ext_epg] %>
host_pool_cidr = <%= node[:neutron][:apic][:ext_net][:host_pool_cidr] %>