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

Version Path
puppet-3.0.2 lib/puppet/provider/vlan/cisco.rb
puppet-3.0.2.rc3 lib/puppet/provider/vlan/cisco.rb
puppet-3.0.2.rc2 lib/puppet/provider/vlan/cisco.rb
puppet-3.0.2.rc1 lib/puppet/provider/vlan/cisco.rb
puppet-parse-0.0.2 lib/vendor/puppet/provider/vlan/cisco.rb
puppet-2.7.20 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.20.rc1 lib/puppet/provider/vlan/cisco.rb
puppet-3.0.1 lib/puppet/provider/vlan/cisco.rb
puppet-3.0.1.rc1 lib/puppet/provider/vlan/cisco.rb
puppet-3.0.0 lib/puppet/provider/vlan/cisco.rb
puppet-3.0.0.rc8 lib/puppet/provider/vlan/cisco.rb
puppet-3.0.0.rc7 lib/puppet/provider/vlan/cisco.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/puppet-2.7.18/lib/puppet/provider/vlan/cisco.rb
puppet-3.0.0.rc5 lib/puppet/provider/vlan/cisco.rb
puppet-3.0.0.rc4 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.19 lib/puppet/provider/vlan/cisco.rb
supply_drop-0.11.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/vlan/cisco.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/puppet-2.7.18/lib/puppet/provider/vlan/cisco.rb
supply_drop-0.10.2 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/vlan/cisco.rb
puppet-2.7.18 lib/puppet/provider/vlan/cisco.rb