Sha256: ec071aa00f87d328125e9ca949cd5d1044ed8805ee068bf597e86d1957efc486
Contents?: true
Size: 544 Bytes
Versions: 413
Compression:
Stored size: 544 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 |dev| vlans = dev.parse_vlans || {} end vlans[id] end def initialize(device, *args) super end # Clear out the cached values. def flush device.command do |dev| dev.update_vlan(resource[:name], former_properties, properties) end super end end
Version data entries
413 entries across 413 versions & 3 rubygems