Forge Home

netdev_stdlib_ce

Huawei Puppet types and providers for CE devices

8,099 downloads

7,318 latest version

5.0 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.

Version information

  • 0.1.1 (latest)
  • 0.1.0
released Jun 16th 2016
This version is compatible with:
  • Puppet Enterprise >= 4.4.0
  • Puppet >= 4.4.0
This module has been deprecated by its author since Aug 23rd 2024.

Start using this module

Documentation

huawei/netdev_stdlib_ce — version 0.1.1 Jun 16th 2016

Overview

Puppet netdev module is the type specification for the Cloud Engine switches network functions. The module contained the CE specific Provider code which implement the defined types.

Available functions:

  • network_interface
  • network_l3_interface
  • network_system_name
  • network_trunk
  • network_user
  • network_vlan
  • network_vlan_batch
  • port_channel
  • network_car
  • network_command_ssh
  • network_command_telnet
  • network_diffserv

Installation

  • Circumstance instruction:
    Puppet netdev module is suitable for Puppet agent 1.3.6 which runs in lxc environment contained by CE switch. The available Puppet master version is PE 2015.3.

  • Main steps:

    • Install suitable puppet master
    • Install CE switch with firmware which included lxc environment
    • Install puppet agent in CE switch
    • Synchronize the puppet netdev module

Example usage

An example of static manifest for CE switch is followed. The network functions is satisfied based on the assumed that Puppet netdev module is available.

node 'CE Switch'{

network_device{ $switch model:
name => $switch model,
ipaddress => $Ethernet ip,
username => $netconf username,
password => $netconf password,
}

network_l3_interface{'Vlanif1':
ensure => present,
name => 'Vlanif1',
description => 'VLAN 1 L3 interface',
enable => 'false',
ipaddress => '192.168.10.1 255.255.255.0',
require => Network_device[$switch model],
}

network_trunk{'10GE1/0/10':
ensure => present,
name => '10GE1/0/10',
encapsulation => dot1q,
mode => 'access',
untagged_vlan => 3, 
require => Network_device[$switch model],
}

port_channel{'Eth-Trunk1':
ensure => present,
name => 'Eth-Trunk1',   
id => '1',   
mode => disabled,   
interfaces => ['10GE1/0/6','10GE1/0/7'],   
require => Network_device[$switch model],
}

network_vlan{'200':
ensure => present,
id => 200,
vlan_name => 'vlan200',
description => 'mkt', 
require => Network_device[$switch model],
}

network_car{'car1':
ensure => present,
name => 'car1',
interface_name => '10GE1/0/3',
speed => '500',
require => Network_device[$switch model],
}

}

References

[1] Puppet Enterprise

[2] Based netdev module