Resource Type: cisco_vlan

Defined in:
lib/puppet/type/cisco_vlan.rb
Providers:
cisco

Overview

Manages a Cisco VLAN.

cisco_vlan

..attributes..

<vlan> is the id of the vlan.

Example:

cisco_vlan {\"200\":
  ensure     => present,
  vlan_name  => 'red',
  mapped_vni => 20000,
  state      => 'active',
  shutdown   => 'true',
  pvlan_type => 'primary',
  pvlan_association => ['101-104']
  fabric_control   => 'true',
}

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • fabric_control

    %(Specifies this VLAN as the fabric control VLAN. Only one bridge-domain or VLAN can be configured as fabric-control. Valid values are true, false.)

    Supported values:
    • true
    • false
    • default
  • mapped_vni

    The VNI id that is mapped to the VLAN. Valid values are integer.

  • mode

    Mode of the VLAN. Valid values are “CE” (Classical Ethernet) or “fabricpath”. Default value is CE

    Supported values:
    • CE
    • fabricpath
    • default
  • private_vlan_association
  • private_vlan_type
  • pvlan_association

    The private-vlan association for the primary vlan.

  • pvlan_type

    The private vlan type for VLAN. Valid values are string primary, isolated, community

  • shutdown

    whether or not the vlan is shutdown

    Supported values:
    • true
    • false
    • default
  • state

    State of the VLAN.

    Supported values:
    • active
    • suspend
    • default
  • vlan_name

    The name of the VLAN. Valid values are string, keyword ‘default’.

Parameters

  • provider

    The specific backend to use for this ‘cisco_vlan` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • vlan

    ID of the Virtual LAN. Valid values are integer.