Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed Blade Switch
Rev 2.10
Mellanox Technologies
368
Mellanox Technologies Confidential
Step 4. Update LAG.
Manifest example (located in “/etc/puppetlabs/puppet/manifests/netdev_lag_example.pp”)
4.14.5 Supported Configuration Capabilities
4.14.5.1 Ethernet, Port-Channel, and InfiniBand Interface Capabilities
Table 30 - Ethernet, Port-Channel, and InfiniBand Interface Capabilities
Field Description Values Example
ensure Sets the given values or
restores the interface to
default
absent, present ensure => present
speed Sets the speed of the inter-
face.
auto*|10m|100m|1g|10g|40
g|56g
speed =>
1g
admin Disables/enables interface
admin state.
up, down admin => up
mtu Configures the maximum
transmission unit frame
size for the
interface.
Ethernet: 1518-9216 mtu => 1520
description Sets the Ethernet, LAG and
InfiniBand descri
ption.
Text description =>
“changed_by_puppet”
class lag_example{
$lags = {
'port-channel 101' => {ensure => present,
links => ['ethernet 1/12', 'ethernet 1/13'], lacp => active},
'port-channel 102' => {ensure => present,
links => ['ethernet 1/6','ethernet 1/5'], lacp => disabled},
}
create_resources( netdev_lag, $lags )
}
You may add classes to ensure that all assigned links are with the same layer 1 and
layer 2 configurations (similarly to the way we did in update l2_interface section with
vlans_ensure_example class).










