netdev_stdlib_junos
contributions requested
Junos Provider code for Networking Device (netdev stdlib) Library
Version information
released Nov 7th 2014
Start using this module
Add this module to your Puppetfile:
mod 'juniper-netdev_stdlib_junos', '1.0.2'
Learn more about managing modules with a PuppetfileDocumentation
juniper/netdev_stdlib_junos — version 1.0.2 Nov 7th 2014
OVERVIEW
Netdev is a vendor-neutral network abstraction framework developed by Juniper Networks and contributed freely to the DevOps community
This module contains the Junos specific Provider code impelmenting 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 Junos EX switch. This example assumes that you've also installed the Puppet stdlib module as this example uses the keys function.
node "myswitch1234.mycorp.com" {
netdev_device { $hostname: }
$vlans = {
'Blue' => { vlan_id => 100, description => "This is a Blue vlan" },
'Green' => { vlan_id => 101, description => "This is a Green vLAN" },
'Purple' => { vlan_id => 102, description => "This is a Puple vlan" },
'Red' => { vlan_id => 103, description => "This is a Red vlan" },
'Yellow' => { vlan_id => 104, description => "This is a Yellow vlan" }
}
create_resources( netdev_vlan, $vlans )
$access_ports = [
'ge-0/0/0',
'ge-0/0/1',
'ge-0/0/2'
]
$uplink_ports = [
'xe-0/0/0',
'xe-0/0/2'
]
netdev_l2_interface { $access_ports:
untagged_vlan => Blue
}
netdev_l2_interface { $uplink_ports:
tagged_vlans => keys( $vlans )
}
}
DEPENDENCIES
- Puppet 2.7.19
- Ruby Gem netconf 0.2.5
- Puppet module netdevops/netdev_stdlib version >= 1.0.0
- Junos OS release and jpuppet image by platform:
- QFX3500, QFX3600:
- JUNOS 12.3X50-D20.1
- jpuppet-qfx-1.0R1.1
- EX4200, EX4500, EX4550:
- JUNOS 12.3R2.5
- jpuppet-ex-1.0R1.1
- MX240, MX480, MX960:
- JUNOS 12.3R2.5
- jpuppet-mx-1.0R1.1
- MX5, MX10, MX40, MX80:
- JUNOS 12.3R2.5
- jpuppet-mx80-1.0R1.1
- QFX3500, QFX3600:
INSTALLATION ON PUPPET-MASTER
- gem install netconf
- puppet module install juniper/netdev_stdlib_junos
RESOURCE TYPES
See RESOURCE-STDLIB.md for documentation and usage examples
CONTRIBUTORS
Jeremy Schulman, Juniper Networks
LICENSES
See LICENSE-JUNIPER
CHANGELOG
2013-02-15
- Initial release of code, corresponding to Juniper Early Adopter release 0.8B1.1
- Support for the following Juniper Platforms and software releases
- EX4200, EX4550 - Junos 12.2R3.7
- QFX3500 - Junos 12.2X50-D30.4
- Requires Puppet for Junos OS software package to be installed on Junos OS device.
For documentation, refer to: Puppet for Junos OS
2013-03-03
- Enhancements to support Juniper MX5 ... MX960 products
2013-03-15
- Bugfixes, and support for broader Junos products
2013-03-19
- Updated code to support 'feature' controls, requires netdevops/netdev_stdlib
2013-03-29
- Bugfixes, ready for release 1.0.0
2014-09-24
- Bugfixes, upgrade version to 1.0.2
Dependencies
- netdevops/netdev_stdlib (>= 1.0.0)
- netdevops/netdev_stdlib (>= 1.0.0)
- netdevops/netdev_stdlib (>= 1.0.0)
- netdevops/netdev_stdlib (>= 1.0.0)
- netdevops/netdev_stdlib (>= 1.0.0)