Sha256: 920d46d224615c97cc68cf539a80cbb138453f562fc09ac012bf43e508112a10

Contents?: true

Size: 443 Bytes

Versions: 5

Compression:

Stored size: 443 Bytes

Contents

#
# Manages a Vlan on a given router or switch
#

Puppet::Type.newtype(:vlan) do
    @doc = "This represents a router or switch vlan."

    apply_to_device

    ensurable

    newparam(:name) do
      desc "Vlan id. It must be a number"
      isnamevar

      newvalues(/^\d+/)
    end

    newproperty(:description) do
      desc "Vlan name"
    end

    newparam(:device_url) do
      desc "Url to connect to a router or switch."
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puppet-2.7.6 lib/puppet/type/vlan.rb
puppet-2.7.5 lib/puppet/type/vlan.rb
puppet-2.7.4 lib/puppet/type/vlan.rb
puppet-2.7.3 lib/puppet/type/vlan.rb
puppet-2.7.1 lib/puppet/type/vlan.rb