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
supply_drop-0.10.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/vlan/cisco.rb
supply_drop-0.10.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/vlan/cisco.rb
puppet-2.7.17 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.16 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.14 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.13 lib/puppet/provider/vlan/cisco.rb
supply_drop-0.9.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/vlan/cisco.rb
supply_drop-0.8.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/vlan/cisco.rb
supply_drop-0.8.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/vlan/cisco.rb
puppet-2.7.12 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.11 lib/puppet/provider/vlan/cisco.rb
supply_drop-0.7.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/vlan/cisco.rb
supply_drop-0.6.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/vlan/cisco.rb
supply_drop-0.6.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/vlan/cisco.rb
puppet-2.7.9 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.8 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.6 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.5 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.4 lib/puppet/provider/vlan/cisco.rb
puppet-2.7.3 lib/puppet/provider/vlan/cisco.rb