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.
7 # vlan_name_prefix = q-
8 # Example: vlan_name_prefix = vnet-
10 # (BoolOpt) A flag to enable round robin scheduling of routers for SVI.
11 # svi_round_robin = False
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
18 # managed_physical_network =
19 # Example: managed_physical_network = physnet1
21 # Cisco Nexus Switch configurations.
22 # Each switch to be managed by Openstack Neutron must be configured here.
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)
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.
42 # [ml2_mech_cisco_nexus:1.1.1.1]
44 # compute2=ethernet:1/2
45 # compute3=port-channel:1
48 # password=mySecretPassword
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 %>
55 ssh_port=<%= switch_data['ssh_port'] %>
56 username=<%= switch_data['username'] %>
57 password=<%= switch_data['password'] %>