try again, with puppetforge modules, correctly included now
[mirror/dsa-puppet.git] / 3rdparty / modules / neutron / templates / n1kv.conf.erb
1 # This is the N1KV VEM configuration file.
2 # <n1kv.conf> file contains all the configuration parameters for VEM operation.
3 # Please find below a brief explanation of these parameters and their meaning.
4 # Optional Parameters and Default Values of parameters are explicitly stated.
5 # Note:
6 # a)Mandatory parameters are needed for proper VEM operation.
7 #   N1KV DP/DPA should start even if these are not specified.
8 #   But there will be functional impact. For eg: in VSM connectivity
9 # b)For any updates to parameters to take effect, you just need to execute
10 #   'vemcmd reread config'. Its the least-disruptive way for changes to
11 #   take effect. However for certain params, n1kv service need to be restarted.
12 #    These parameter are stated explictly (restart_on_modify: YES).
13 #
14
15 #
16 #<vsm-connection-params>
17 #
18 # TAG: switch-domain
19 # Description:
20 # Optional: No
21 # Default: 1000
22 # restart_on_modify: No
23 switch-domain <%= @n1kv_vsm_domain_id %>
24
25 # TAG: l3control-ipaddr
26 # Description: IP Address of VSM Mgmt I/F
27 # Optional: No
28 # Default: 127.0.0.1
29 # restart_on_modify: No
30 l3control-ipaddr <%= @n1kv_vsm_ip %>
31
32 # TAG: host-mgmt-intf
33 # Description: Management interface of the Host
34 # Optional: No (on N1KV, we need this
35 #               for Host Identification on VSM).
36 # Default: lo
37 # restart_on_modify: Yes
38 host-mgmt-intf <%= @host_mgmt_intf %>
39
40 #<Port-Profile Mapping>
41 # Description: Port-Profile mapping for all VEM managed Interfaces.
42 # Optional: Yes
43 # restart_on_modify: No
44 #
45 # Note: Do not specify Host Management Interface here.
46 # We do yet support System Ports (Ports which need to be up all time: Post Reboot/VEM Upgrade).
47 #
48 # Format for physical ports:
49 # phys <port-name> profile  <profile-name>
50 #phys eth1 profile sys-uplink
51 #phys eth2 profile uplink2
52
53 <% @uplink_profile.each do |port, profile| -%>
54 phys <%= port%> profile <%= profile%>
55 <% end -%>
56
57 # Format for non-vm virt ports. For instance: VTEP ports.
58 # virt <port-name> profile <profile-name> [mode static|dhcp] [address <ipaddr>]
59 #      [netmask <netmask ip>] [mac <macaddr>]
60 # [] -->indicates optional parameters.
61 #Eg:
62 #virt vtep3 profile profint mode dhcp
63 #virt vtep1 profile profint mode dhcp mac 00:11:22:33:44:55
64 #virt vtep2 profile profint mode static address 192.168.2.91 netmask 255.255.255.0
65 #virt vtep2 profile profint mode static address 192.168.2.91 netmask 255.255.255.0 mac 00:22:22:33:44:55
66
67 <% @vtep_config.each do |port, params| -%>
68 <% if params['ipmode'] == 'dhcp'  -%>
69 virt <%= port%> profile <%= params['profile']%> mode dhcp
70 <% else-%>
71 virt <%= port%> profile <%= params['profile']%> mode static address <%= params['ipaddress']%> netmask <%= params['netmask']%>
72 <% end -%>
73 <% end -%>
74
75 # TAG: uvem-ovs-brname
76 # Description: Default Open VSwitch Bridge Name
77 # Optional: YES.
78 # Default: n1kvdvs
79 # restart_on_modify: Yes
80 # Format:
81 # uvem-ovs-brname n1kvdvs
82 uvem-ovs-brname br-int
83
84 # TAG: portdb
85 # Description: PortDB (ovs|vem)
86 # Optional: YES.
87 # Default: ovs
88 # restart_on_modify: Yes
89 # Format:
90 # portdb vem
91 portdb <%= @portdb %>
92
93 # TAG: node-type
94 # Description: Type of Node: 'compute' (or) 'neutron'
95 # Optional: YES.
96 # Default: compute
97 # restart_on_modify: No
98 # Format:
99 # node-type compute
100 node-type <%= @node_type %>
101
102 # The below parameters are not commonly modified.
103 #
104 #
105 #<system-port-profile-Info>
106 # Description:  System Port Profiles.
107 # Optional: Yes (If there are no System Interfaces: Mgmt I/F etc)
108 # restart_on_modify: No
109 #
110 #Trunk Profile Format
111 #profile <name> trunk <vlan>
112 #profile <name> native-vlan <vlan>
113 #profile <name> mtu <mtu-size>
114 #
115 #Access Profile
116 #profile <name> access <vlan>
117 #profile <name> mtu <mtu-size>
118
119 # TAG: dp-np-threads
120 # Description: Number of datapath threads to process normal priority packets
121 # Optional: YES
122 # Default: 4
123 # restart_on_modify: Yes
124 # Format: dp-np-threads <1..32>
125
126 # TAG: dp-lp-threads
127 # Description: Number of datapath threads to process low priority packets
128 # Optional: YES
129 # Default: 1
130 # restart_on_modify: Yes
131 # Format: dp-lp-threads <1..32>
132
133 # TAG: dp-hp-threads
134 # Description: Number of datapath threads to process high priority packets
135 # Optional: YES
136 # Default: 1
137 # restart_on_modify: Yes
138 # Format: dp-hp-threads <1..32>
139
140 # TAG: dp-thread-sockets
141 # Description: Number of packet sockets each datapath thread creates
142 # Optional: YES
143 # Default: 1
144 # restart_on_modify: Yes
145 # Format: dp-thread-sockets <1..16>
146
147 # TAG: dp-thread-socket-rbuflen
148 # Description: Receive buffer length of each packet socket
149 # Optional: YES
150 # Default: 8 MBytes
151 # restart_on_modify: Yes
152 # Format: dp-thread-socket-rbuflen <0..255>
153 # Note: 0 - use system default
154
155 # TAG: dp-thread-socket-rrnglen
156 # Description: Rx-ring length of each packet socket
157 # Optional: YES
158 # Default: 4096
159 # restart_on_modify: Yes
160 # Format: dp-thread-socket-rrnglen <0..16384>
161 # Note: 0 - disables memory map I/O
162
163 # TAG: fastpath-flood
164 # Description: Enable flood of broadcast and unknown pkts in KLM
165 # Optional: YES
166 # Default: disable
167 # restart_on_modify: Yes
168 # Format: fastpath-flood <enable|disable>
169 fastpath-flood <%= @fastpath_flood %>