Resource Type: cisco_command_config

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

Overview

Allows execution of configuration commands.

cisco_command_config

..attributes..

<name> is the name of the cisco_command_config instance.

Example

cisco_command_config {\"feature-config\":
  command => \"
              feature interface-vlan\"
}

cisco_command_config {\"feature-intf-portchannel2\":
  command => \"
              interface Vlan20
                no ip redirects
                ip address 17.159.249.1/24
                ip dhcp relay address 17.158.158.16
                ip dhcp relay address 17.158.156.10
                ip dhcp relay address 17.158.4.32
                no shutdown\"
  require => cisco_command_config [\"feature-config\"],
}

<require> is optional.

Properties

  • command

    Configuration command(s) to be applied to the network element. Valid values are string.

  • test_get

    %(

    This is a test-only property for beaker use. It allows beaker to retrieve
    any configuration it needs from the device using puppet resource. Callers
    must pass a filter string to test_get.
    Example usage:
      puppet resource cisco_command_config 'cc' test_get='incl feature'
    

    )

  • test_set

    %(

    This is a test-only property for beaker use. It allows beaker to set
    simple raw configuration using puppet resource.
    Example usage:
     puppet resource cisco_command_config 'cc' test_set='no feature foo'
    

    )

Parameters

  • name (namevar)
  • provider

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