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

Version Path
puppet-5.5.22 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.22-x86-mingw32 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.22-x64-mingw32 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.22-universal-darwin lib/puppet/provider/vlan/cisco.rb
puppet-5.5.21 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.21-x86-mingw32 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.21-x64-mingw32 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.21-universal-darwin lib/puppet/provider/vlan/cisco.rb
puppet-5.5.20 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.20-x86-mingw32 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.20-x64-mingw32 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.20-universal-darwin lib/puppet/provider/vlan/cisco.rb
puppet-5.5.19 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.19-x86-mingw32 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.19-x64-mingw32 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.19-universal-darwin lib/puppet/provider/vlan/cisco.rb
puppet-5.5.18 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.18-x86-mingw32 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.18-x64-mingw32 lib/puppet/provider/vlan/cisco.rb
puppet-5.5.18-universal-darwin lib/puppet/provider/vlan/cisco.rb