Forge Home

netdev_stdlib_mlnxos

Provider definition for implementing Networking Device (netdev) Library for Mellanox OS (mlnx-os)

12,675 downloads

12,325 latest version

3.9 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 1.0.0 (latest)
  • 0.0.1
released Jan 19th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'mellanox-netdev_stdlib_mlnxos', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add mellanox-netdev_stdlib_mlnxos
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install mellanox-netdev_stdlib_mlnxos --version 1.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

mellanox/netdev_stdlib_mlnxos — version 1.0.0 Jan 19th 2014

OVERVIEW

Netdev is a vendor-neutral network abstraction framework contributed freely to the DevOps community.

This module contains the mlnx-os specific Provider code implementing the Resource Types defined in netdevops/netdev_stdlib.

EXAMPLE USAGE

This module has been tested against Puppet agent 2.7.19. Here is a short example of a static manifest for a mellanox FDR Ethernet switch.


node "My_Ethernet_switch" {

  netdev_device { $hostname: }

  $vlans = {
    'Blue'    => { vlan_id => 100},
    'Green'   => { vlan_id => 101},
    'Purple'  => { vlan_id => 102},
    'Red'     => { vlan_id => 103},
    'Yellow'  => { vlan_id => 104}
  }

  create_resources( netdev_vlan, $vlans )

  $hybrid_ports = [
    'ethernet 1/1',
    'ethernet 1/2',
    'ethernet 1/3'
  ]

  $trunked_ports = [
    'ethernet 1/4',
    'ethernet 1/5'
  ]

  $access_ports = [
    'ethernet 1/6',
    'ethernet 1/7'
  ]

  netdev_l2_interface { $hybrid_ports:
    vlan_tagging => enable,
    tagged_vlans => [Green],
    untagged_vlan => Blue
  }

  netdev_l2_interface { $trunked_ports:
    vlan_tagging => disable,
    tagged_vlans => [Blue,Green,Yellow]
  }

  netdev_l2_interface { $access_ports:
    vlan_tagging => enable,
    tagged_vlans => [],
    untagged_vlan => Red
  }
}

DEPENDENCIES

  • Puppet module netdevops/netdev_stdlib version >= 1.0.0
  • MLNX-OS with puppet support:
    • switchx-1036, switchx-6036, switchx-1016:
      • 4300

INSTALLATION ON PUPPET-MASTER

  • puppet module install netdevops-netdev_stdlib
  • puppet module install mellanox-netdev_ospf_stdlib
  • puppet module install mellanox-netdev_stdlib_mlnxos

CONTRIBUTORS

David Slama, Mellanox Technologies Aviram Bar-Haim, Mellanox Technologies

License

See LICENSE file