try again, with puppetforge modules, correctly included now
[mirror/dsa-puppet.git] / 3rdparty / modules / neutron / templates / ml2_conf_cisco.ini.erb
1 [ml2_cisco]
2
3 # (StrOpt) A short prefix to prepend to the VLAN number when creating a
4 # VLAN interface. For example, if an interface is being created for
5 # VLAN 2001 it will be named 'q-2001' using the default prefix.
6 #
7 # vlan_name_prefix = q-
8 # Example: vlan_name_prefix = vnet-
9
10 # (BoolOpt) A flag to enable round robin scheduling of routers for SVI.
11 # svi_round_robin = False
12
13 #
14 # (StrOpt) The name of the physical_network managed via the Cisco Nexus Switch.
15 # This string value must be present in the ml2_conf.ini network_vlan_ranges
16 # variable.
17 #
18 # managed_physical_network =
19 # Example: managed_physical_network = physnet1
20
21 # Cisco Nexus Switch configurations.
22 # Each switch to be managed by Openstack Neutron must be configured here.
23 #
24 # Cisco Nexus Switch Format.
25 # [ml2_mech_cisco_nexus:<IP address of switch>]
26 # <hostname>=<intf_type:port>       (1)
27 # ssh_port=<ssh port>               (2)
28 # username=<credential username>    (3)
29 # password=<credential password>    (4)
30 #
31 # (1) For each host connected to a port on the switch, specify the hostname
32 #     and the Nexus physical port (interface) it is connected to.
33 #     Valid intf_type's are 'ethernet' and 'port-channel'.
34 #     The default setting for <intf_type:> is 'ethernet' and need not be
35 #     added to this setting.
36 # (2) The TCP port for connecting via SSH to manage the switch. This is
37 #     port number 22 unless the switch has been configured otherwise.
38 # (3) The username for logging into the switch to manage it.
39 # (4) The password for logging into the switch to manage it.
40 #
41 # Example:
42 # [ml2_mech_cisco_nexus:1.1.1.1]
43 # compute1=1/1
44 # compute2=ethernet:1/2
45 # compute3=port-channel:1
46 # ssh_port=22
47 # username=admin
48 # password=mySecretPassword
49
50 <% nexus_config.each do |switch_hostname, switch_data| %>
51 [ML2_MECH_CISCO_NEXUS:<%= switch_data['ip_address'] %>]
52 <%- switch_data['servers'].each do|host_name, port| -%>
53 <%=host_name-%>=<%= port %>
54 <%- end -%>
55 ssh_port=<%= switch_data['ssh_port'] %>
56 username=<%= switch_data['username'] %>
57 password=<%= switch_data['password'] %>
58 <% end %>
59