racampos.dnac.network_device_config (0.0.1) — module

Manage NetworkDeviceConfig objects of Devices

| "added in version" 1.0 of racampos.dnac"

Authors: first last (@GitHubID)

preview | supported by community

This plugin has a corresponding action plugin.

Install collection

Install with ansible-galaxy collection install racampos.dnac:==0.0.1


Add to requirements.yml

  collections:
    - name: racampos.dnac
      version: 0.0.1

Description

Returns the config for all devices.

Returns the count of device configs.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: get_device_config_for_all_devices
  cisco.dnac.network_device_config:
    state: query  # required

  register: query_result
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  
- name: get_device_config_count
  cisco.dnac.network_device_config:
    state: query  # required
    count: True  # boolean, required
  register: query_result

Inputs

    
count:
    description:
    - If true gets the number of objects.
    required: true
    type: bool

Outputs

get_device_config_count:
  contains: null
  description: Returns the count of device configs.
  response:
    description: Response, property of the response body.
    returned: always
    sample: 0
    type: int
  returned: always
  type: dict
  version:
    description: Version, property of the response body.
    returned: always
    sample: '1.0'
    type: str
get_device_config_for_all_devices:
  contains: null
  description: Returns the config for all devices.
  response:
    contains:
      attributeInfo:
        description: It is the network device config's attributeInfo.
        returned: always
        type: dict
      cdpNeighbors:
        description: It is the network device config's cdpNeighbors.
        returned: always
        sample: <cdpneighbors>
        type: str
      healthMonitor:
        description: It is the network device config's healthMonitor.
        returned: always
        sample: <healthmonitor>
        type: str
      id:
        description: It is the network device config's id.
        returned: always
        sample: '478012'
        type: str
      intfDescription:
        description: It is the network device config's intfDescription.
        returned: always
        sample: <intfdescription>
        type: str
      inventory:
        description: It is the network device config's inventory.
        returned: always
        sample: <inventory>
        type: str
      ipIntfBrief:
        description: It is the network device config's ipIntfBrief.
        returned: always
        sample: <ipintfbrief>
        type: str
      macAddressTable:
        description: It is the network device config's macAddressTable.
        returned: always
        sample: <macaddresstable>
        type: str
      runningConfig:
        description: It is the network device config's runningConfig.
        returned: always
        sample: <runningconfig>
        type: str
      snmp:
        description: It is the network device config's snmp.
        returned: always
        sample: <snmp>
        type: str
      version:
        description: It is the network device config's version.
        returned: always
        sample: '1.0'
        type: str
    description: Response, property of the response body (list of objects).
    returned: always
    type: list
  returned: always
  type: dict
  version:
    description: Version, property of the response body.
    returned: always
    sample: '1.0'
    type: str

See also