Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed Blade Switch
Rev 2.10
Mellanox Technologies
366
Mellanox Technologies Confidential
Figure 9: Accepting an Agent Request through the Console
4.14.3 Installing Modules on the Puppet Server
Mellanox uses netdev-stdlib types and provides a package of Mellanox providers for those types
which have to be installed at the Puppet server prior to the first Puppet configuration run (before
configuring resources on the Mellanox switch).
To install those modules, run th
e following commands in the Puppet server:
# puppet module install netdevops-netdev_stdlib
# puppet module install mellanox-netdev_ospf_stdlib
# puppet module install mellanox-netdev_stdlib_mlnxos
For more information please refer to the Network Automation Tools document or Puppet cate-
gory in the Mellanox community site at
: http://community.mellanox.com/community/support/
solutions.
4.14.4 Writing Configuration Classes
To write configuration classes:
Step 1. Assigning Configuration Classes to a Node
Configuration files can be written and changed in the puppet server machine in the directory
“/etc/puppetlabs/puppet/manifests/” (or “/etc/puppet/manifests” in case of an open source pup-
pet server).
The file “/etc/puppetlabs/puppet/manifests/site.pp” is the main file for Puppet-classes-to-nodes
association. To associate a configuration to a Puppet agent node, just append association lines
as below:
In case of an already installed module, please use the command “
puppet module
upgrade <module_name>
” or “
puppet module install <module_name> --
force
” instead of “
puppet module install <module_name>
” to reinstall the mod-
ules.
node 'switch-6375dc.mtr.labs.mlnx'{
netdev_device { $hostname: }
include vlan_example # Asserts a class vlan_example in one of the files
include l2_interface_example
include lag_example
}










