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.
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).
16 #<vsm-connection-params>
22 # restart_on_modify: No
23 switch-domain <%= @n1kv_vsm_domain_id %>
25 # TAG: l3control-ipaddr
26 # Description: IP Address of VSM Mgmt I/F
29 # restart_on_modify: No
30 l3control-ipaddr <%= @n1kv_vsm_ip %>
33 # Description: Management interface of the Host
34 # Optional: No (on N1KV, we need this
35 # for Host Identification on VSM).
37 # restart_on_modify: Yes
38 host-mgmt-intf <%= @host_mgmt_intf %>
40 #<Port-Profile Mapping>
41 # Description: Port-Profile mapping for all VEM managed Interfaces.
43 # restart_on_modify: No
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).
48 # Format for physical ports:
49 # phys <port-name> profile <profile-name>
50 #phys eth1 profile sys-uplink
51 #phys eth2 profile uplink2
53 <% @uplink_profile.each do |port, profile| -%>
54 phys <%= port%> profile <%= profile%>
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.
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
67 <% @vtep_config.each do |port, params| -%>
68 <% if params['ipmode'] == 'dhcp' -%>
69 virt <%= port%> profile <%= params['profile']%> mode dhcp
71 virt <%= port%> profile <%= params['profile']%> mode static address <%= params['ipaddress']%> netmask <%= params['netmask']%>
75 # TAG: uvem-ovs-brname
76 # Description: Default Open VSwitch Bridge Name
79 # restart_on_modify: Yes
81 # uvem-ovs-brname n1kvdvs
82 uvem-ovs-brname br-int
85 # Description: PortDB (ovs|vem)
88 # restart_on_modify: Yes
94 # Description: Type of Node: 'compute' (or) 'neutron'
97 # restart_on_modify: No
100 node-type <%= @node_type %>
102 # The below parameters are not commonly modified.
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
110 #Trunk Profile Format
111 #profile <name> trunk <vlan>
112 #profile <name> native-vlan <vlan>
113 #profile <name> mtu <mtu-size>
116 #profile <name> access <vlan>
117 #profile <name> mtu <mtu-size>
120 # Description: Number of datapath threads to process normal priority packets
123 # restart_on_modify: Yes
124 # Format: dp-np-threads <1..32>
127 # Description: Number of datapath threads to process low priority packets
130 # restart_on_modify: Yes
131 # Format: dp-lp-threads <1..32>
134 # Description: Number of datapath threads to process high priority packets
137 # restart_on_modify: Yes
138 # Format: dp-hp-threads <1..32>
140 # TAG: dp-thread-sockets
141 # Description: Number of packet sockets each datapath thread creates
144 # restart_on_modify: Yes
145 # Format: dp-thread-sockets <1..16>
147 # TAG: dp-thread-socket-rbuflen
148 # Description: Receive buffer length of each packet socket
151 # restart_on_modify: Yes
152 # Format: dp-thread-socket-rbuflen <0..255>
153 # Note: 0 - use system default
155 # TAG: dp-thread-socket-rrnglen
156 # Description: Rx-ring length of each packet socket
159 # restart_on_modify: Yes
160 # Format: dp-thread-socket-rrnglen <0..16384>
161 # Note: 0 - disables memory map I/O
163 # TAG: fastpath-flood
164 # Description: Enable flood of broadcast and unknown pkts in KLM
167 # restart_on_modify: Yes
168 # Format: fastpath-flood <enable|disable>
169 fastpath-flood <%= @fastpath_flood %>