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-parse-0.1.4 lib/vendor/puppet/provider/vlan/cisco.rb
puppet-parse-0.1.3 lib/vendor/puppet/provider/vlan/cisco.rb
puppet-parse-0.1.2 lib/vendor/puppet/provider/vlan/cisco.rb
puppet-parse-0.1.1 lib/vendor/puppet/provider/vlan/cisco.rb
puppet-2.7.26 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.25 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.24 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.23 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.22 lib/puppet/provider/vlan/cisco.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/lib/puppet/provider/vlan/cisco.rb
puppet-parse-0.1.0 lib/vendor/puppet/provider/vlan/cisco.rb
puppet-parse-0.0.6 lib/vendor/puppet/provider/vlan/cisco.rb
puppet-2.7.21 lib/puppet/provider/vlan/cisco.rb
puppet-3.1.1 lib/puppet/provider/vlan/cisco.rb
puppet-parse-0.0.5 lib/vendor/puppet/provider/vlan/cisco.rb
puppet-parse-0.0.4 lib/vendor/puppet/provider/vlan/cisco.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/lib/puppet/provider/vlan/cisco.rb
puppet-3.1.0 lib/puppet/provider/vlan/cisco.rb
puppet-3.1.0.rc2 lib/puppet/provider/vlan/cisco.rb
puppet-3.1.0.rc1 lib/puppet/provider/vlan/cisco.rb