chef/cookbooks/neutron/templates/default/ml2_conf_cisco.ini.erb
[ml2_cisco]
managed_physical_network = physnet1
<% @switches.keys.each do |ip| -%>
[ml2_mech_cisco_nexus:<%=ip%>]
<% if @switches[ip].key?(:switch_ports) -%>
<% @switches[ip][:switch_ports].each do |name, values| -%>
<%= name %>=<%= values[:switch_port] %>
<% end -%>
<% end -%>
ssh_port=<%= @switches[ip][:port] %>
username=<%= @switches[ip][:user] %>
password=<%= @switches[ip][:password] %>
<% end -%>
[ml2_cisco]
[ml2_type_nexus_vxlan]
[ml2_cisco_apic]
[ml2_cisco_n1kv]
[ml2_cisco_ucsm]