netdev_stdlib_mlnxos
Provider definition for implementing Networking Device (netdev) Library for Mellanox OS (mlnx-os)
Version information
released Jan 19th 2014
Start using this module
Add this module to your Puppetfile:
mod 'mellanox-netdev_stdlib_mlnxos', '1.0.0'
Learn more about managing modules with a PuppetfileDocumentation
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
- switchx-1036, switchx-6036, switchx-1016:
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
Types in this module release
CHANGELOG
v0.0.1 (10.2013) - Added netdev_stdlib Mellanox providers v1.0.0 (01.2014) - Added module types and Mellanox providers + OSPF Mellanox providers
Dependencies
- netdevops/netdev_stdlib (>= 1.0.0)
- mellanox/netdev_ospf_stdlib (>= 1.0.0)
Copyright 2014 Mellanox Technologies, Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.