netdev_stdlib_mlnxos

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

Mellanox

mellanox

11,441 downloads

11,178 latest version

3.9 quality score

Version information

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

Start using this module

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