Sha256: 0f006769ea18f3d8cb774d2fa673eb26d716ad8db7287578a245cc0d0b626566
Contents?: true
Size: 546 Bytes
Versions: 61
Compression:
Stored size: 546 Bytes
Contents
require 'puppet/provider/cisco' Puppet::Type.type(:vlan).provide :cisco, :parent => Puppet::Provider::Cisco do desc "Cisco switch/router provider for vlans." mk_resource_methods def self.lookup(device, id) vlans = {} device.command do |d| vlans = d.parse_vlans || {} end vlans[id] end def initialize(device, *args) super end # Clear out the cached values. def flush device.command do |device| device.update_vlan(resource[:name], former_properties, properties) end super end end
Version data entries
61 entries across 61 versions & 4 rubygems