cisco.dnac.path_trace_workflow_manager module – Resource module for managing PathTrace settings in Cisco Catalyst Center

Note

This module is part of the cisco.dnac collection (version 6.39.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install cisco.dnac. You need further requirements to be able to use this module, see Requirements for details.

To use it in a playbook, specify: cisco.dnac.path_trace_workflow_manager.

New in cisco.dnac 6.31.0

Synopsis

  • This module allows the management of PathTrace settings in Cisco Catalyst Center. - It supports creating and deleting PathTrace configurations. - This module configures PathTrace settings in Cisco Catalyst Center, including source/destination IPs, ports, and protocols.

Requirements

The below requirements are needed on the host that executes this module.

  • dnacentersdk >= 2.8.6

  • python >= 3.9

Parameters

Parameter

Comments

config

list / elements=dictionary / required

A list containing the details for Path Trace configuration.

delete_on_completion

boolean

Boolean value indicating whether to delete the path trace after generation. This applies only when periodic_refresh is set to false..

Choices:

  • false

  • true ← (default)

dest_ip

string

The destination IP address for the path trace. Either flow_analysis_id or both source_ip and dest_ip are required.

dest_port

integer

The destination port for the path trace (optional).

flow_analysis_id

string

The Flow Analysis ID for the path trace, used to delete an existing path trace when in the ‘deleted’ state. If not provided, the module will search and delete based on the following search parameters. When create a path trace, it returns a flow_analysis_id (the “id” from the “request” section), which should be shown in a register

get_last_pathtrace_result

boolean

Boolean value to display the last result again for the path trace.

Choices:

  • false

  • true ← (default)

include_stats

list / elements=string

A list of optional statistics (multiple choice) to include in the path trace, such as QOS statistics or additional details. Examples: “DEVICE_STATS”, “INTERFACE_STATS”, “QOS_STATS”, “PERFORMANCE_STATS”, “ACL_TRACE”. - DEVICE_STATS - Collects hardware-related statistics of network devices along the path, including CPU usage, memory, uptime, and interface status. - INTERFACE_STATS - Gathers details about interfaces used in the path, such as interface type, bandwidth usage, errors, and drops. - QOS_STATS - Displays Quality of Service (QoS) settings on interfaces, including traffic classification, priority settings, and congestion management. - PERFORMANCE_STATS: Provides network performance metrics like latency, jitter, and packet loss. - ACL_TRACE: Analyzes Access Control List (ACL) rules applied along the path to identify blocked traffic or policy mismatches.

periodic_refresh

boolean

Boolean value to enable periodic refresh for the path trace.

Choices:

  • false

  • true ← (default)

protocol

string

The protocol to use for the path trace, e.g., TCP, UDP (optional).

Choices:

  • "TCP"

  • "UDP"

source_ip

string

The source IP address for the path trace. Either flow_analysis_id or both source_ip and dest_ip are required.

source_port

integer

The source port for the path trace (optional).

config_verify

boolean

Set to `true` to enable configuration verification on Cisco DNA Center after applying the playbook configuration. This ensures that the system validates the configuration state after the change is applied.

Choices:

  • false

  • true ← (default)

dnac_api_task_timeout

integer

Defines the timeout in seconds for API calls to retrieve task details. If the task details are not received within this period, the process will end, and a timeout notification will be logged.

Default: 1200

dnac_debug

boolean

Indicates whether debugging is enabled in the Cisco Catalyst Center SDK.

Choices:

  • false ← (default)

  • true

dnac_host

string / required

The hostname of the Cisco Catalyst Center.

dnac_log

boolean

Flag to enable/disable playbook execution logging.

When true and dnac_log_file_path is provided, - Create the log file at the execution location with the specified name.

When true and dnac_log_file_path is not provided, - Create the log file at the execution location with the name ‘dnac.log’.

When false, - Logging is disabled.

If the log file doesn’t exist, - It is created in append or write mode based on the “dnac_log_append” flag.

If the log file exists, - It is overwritten or appended based on the “dnac_log_append” flag.

Choices:

  • false ← (default)

  • true

dnac_log_append

boolean

Determines the mode of the file. Set to True for ‘append’ mode. Set to False for ‘write’ mode.

Choices:

  • false

  • true ← (default)

dnac_log_file_path

string

Governs logging. Logs are recorded if dnac_log is True.

If path is not specified, - When ‘dnac_log_append’ is True, ‘dnac.log’ is generated in the current Ansible directory; logs are appended. - When ‘dnac_log_append’ is False, ‘dnac.log’ is generated; logs are overwritten.

If path is specified, - When ‘dnac_log_append’ is True, the file opens in append mode. - When ‘dnac_log_append’ is False, the file opens in write (w) mode. - In shared file scenarios, without append mode, content is overwritten after each module execution. - For a shared log file, set append to False for the 1st module (to overwrite); for subsequent modules, set append to True.

Default: "dnac.log"

dnac_log_level

string

Sets the threshold for log level. Messages with a level equal to or higher than this will be logged. Levels are listed in order of severity [CRITICAL, ERROR, WARNING, INFO, DEBUG].

CRITICAL indicates serious errors halting the program. Displays only CRITICAL messages.

ERROR indicates problems preventing a function. Displays ERROR and CRITICAL messages.

WARNING indicates potential future issues. Displays WARNING, ERROR, CRITICAL messages.

INFO tracks normal operation. Displays INFO, WARNING, ERROR, CRITICAL messages.

DEBUG provides detailed diagnostic info. Displays all log messages.

Default: "WARNING"

dnac_password

string

The password for authentication at the Cisco Catalyst Center.

dnac_port

string

Specifies the port number associated with the Cisco Catalyst Center.

Default: "443"

dnac_task_poll_interval

integer

Specifies the interval in seconds between successive calls to the API to retrieve task details.

Default: 2

dnac_username

aliases: user

string

The username for authentication at the Cisco Catalyst Center.

Default: "admin"

dnac_verify

boolean

Flag to enable or disable SSL certificate verification.

Choices:

  • false

  • true ← (default)

dnac_version

string

Specifies the version of the Cisco Catalyst Center that the SDK should use.

Default: "2.2.3.3"

state

string

Specifies the desired state for the configuration. If `merged`, the module will create or update the configuration, adding new settings or modifying existing ones. If `deleted`, it will remove the specified settings.

Choices:

  • "merged" ← (default)

  • "deleted"

validate_response_schema

boolean

Flag for Cisco Catalyst Center SDK to enable the validation of request bodies against a JSON schema.

Choices:

  • false

  • true ← (default)

Notes

Note

  • SDK Method used are path_trace.PathTraceWorkflow.retrieves_all_previous_pathtraces_summary, path_trace.PathTraceWorkflow.retrieves_previous_pathtraces_summary, path_trace.PathTraceWorkflow.initiate_a_new_pathtrace, path_trace.PathTraceWorkflow.delete_pathtrace_by_id, - API paths used are GET/dna/intent/api/v1/flow-analysis POST/dna/intent/api/v1/flow-analysis GET/dna/intent/api/v1/flow-analysis/{flowAnalysisId} DELETE/dna/intent/api/v1/flow-analysis/{flowAnalysisId}

  • Does not support check_mode

  • The plugin runs on the control node and does not use any ansible connection plugins instead embedded connection manager from Cisco Catalyst Center SDK

  • The parameters starting with dnac_ are used by the Cisco Catalyst Center Python SDK to establish the connection

Examples

---
- hosts: dnac_servers
  vars_files:
    - credentials.yml
  gather_facts: false
  connection: local
  tasks:
    - name: Create and auto-delete path trace on Cisco
        Catalyst Center
      cisco.dnac.path_trace_workflow_manager:
        dnac_host: "{{ dnac_host }}"
        dnac_port: "{{ dnac_port }}"
        dnac_username: "{{ dnac_username }}"
        dnac_password: "{{ dnac_password }}"
        dnac_verify: "{{ dnac_verify }}"
        dnac_debug: "{{ dnac_debug }}"
        dnac_version: "{{ dnac_version }}"
        dnac_log: true
        dnac_log_level: DEBUG
        dnac_log_append: true
        state: merged
        config_verify: true
        config:
          - source_ip: "204.1.2.3"  # required field
            dest_ip: "204.1.2.4"  # required field
            source_port: 4020  # optional field
            dest_port: 4021  # optional field
            protocol: "TCP"  # optional field
            include_stats:  # optional field
              - DEVICE_STATS
              - INTERFACE_STATS
              - QOS_STATS
              - PERFORMANCE_STATS
              - ACL_TRACE
            periodic_refresh: false  # optional field
            delete_on_completion: true  # optional field
    - name: Delete path trace based on source and destination IP
      cisco.dnac.path_trace_workflow_manager:
        dnac_host: "{{ dnac_host }}"
        dnac_port: "{{ dnac_port }}"
        dnac_username: "{{ dnac_username }}"
        dnac_password: "{{ dnac_password }}"
        dnac_verify: "{{ dnac_verify }}"
        dnac_debug: "{{ dnac_debug }}"
        dnac_version: "{{ dnac_version }}"
        dnac_log_level: DEBUG
        dnac_log: true
        state: deleted
        config_verify: true
        config:
          - source_ip: "204.1.2.3"  # required field
            dest_ip: "204.1.2.4"  # required field
    - name: Retrieve last path trace
      cisco.dnac.path_trace_workflow_manager:
        dnac_host: "{{ dnac_host }}"
        dnac_port: "{{ dnac_port }}"
        dnac_username: "{{ dnac_username }}"
        dnac_password: "{{ dnac_password }}"
        dnac_verify: "{{ dnac_verify }}"
        dnac_debug: "{{ dnac_debug }}"
        dnac_version: "{{ dnac_version }}"
        dnac_log_level: DEBUG
        dnac_log: true
        state: merged
        config_verify: true
        config:
          - source_ip: "204.1.2.3"  # required field
            dest_ip: "204.1.2.4"  # required field
            get_last_pathtrace_result: true
    - name: Retrieve path trace based on the flow analysis
        id
      cisco.dnac.path_trace_workflow_manager:
        dnac_host: "{{ dnac_host }}"
        dnac_port: "{{ dnac_port }}"
        dnac_username: "{{ dnac_username }}"
        dnac_password: "{{ dnac_password }}"
        dnac_verify: "{{ dnac_verify }}"
        dnac_debug: "{{ dnac_debug }}"
        dnac_version: "{{ dnac_version }}"
        dnac_log_level: DEBUG
        dnac_log: true
        state: merged
        config_verify: true
        config:
          # When create a path trace, it returns a flow_analysis_id
          # (the "id" from the "request" section), which should be
          # shown in a register.
          - flow_analysis_id: 99e067de-8776-40d2-9f6a-1e6ab2ef083c
            delete_on_completion: false  # optional field
      register: output_list
    - name: Retrieve and Delete path trace based on
        the required field
      cisco.dnac.path_trace_workflow_manager:
        dnac_host: "{{ dnac_host }}"
        dnac_port: "{{ dnac_port }}"
        dnac_username: "{{ dnac_username }}"
        dnac_password: "{{ dnac_password }}"
        dnac_verify: "{{ dnac_verify }}"
        dnac_debug: "{{ dnac_debug }}"
        dnac_version: "{{ dnac_version }}"
        dnac_log_level: DEBUG
        dnac_log: true
        state: merged
        config_verify: true
        config:
          - source_ip: "204.1.2.3"  # required field
            dest_ip: "204.1.2.4"  # required field
      register: output_list
    - name: Delete path trace based on registered flow
        analysis id
      cisco.dnac.path_trace_workflow_manager:
        dnac_host: "{{ dnac_host }}"
        dnac_port: "{{ dnac_port }}"
        dnac_username: "{{ dnac_username }}"
        dnac_password: "{{ dnac_password }}"
        dnac_verify: "{{ dnac_verify }}"
        dnac_debug: "{{ dnac_debug }}"
        dnac_version: "{{ dnac_version }}"
        dnac_log_level: DEBUG
        dnac_log: true
        state: deleted
        config_verify: true
        config:
          - flow_analysis_id: output_list.request.id
    - name: delete path trace based on the flow analysis
        id
      cisco.dnac.path_trace_workflow_manager:
        dnac_host: "{{ dnac_host }}"
        dnac_port: "{{ dnac_port }}"
        dnac_username: "{{ dnac_username }}"
        dnac_password: "{{ dnac_password }}"
        dnac_verify: "{{ dnac_verify }}"
        dnac_debug: "{{ dnac_debug }}"
        dnac_version: "{{ dnac_version }}"
        dnac_log_level: DEBUG
        dnac_log: true
        state: deleted
        config_verify: true
        config:
          # When create a path trace, it returns a flow_analysis_id
          # (the "id" from the "request" section), which should be
          # shown in a register.
          - flow_analysis_id: 99e067de-8776-40d2-9f6a-1e6ab2ef083c
    - name: Create/Retrieve Path trace for the config
        list.
      cisco.dnac.path_trace_workflow_manager:
        dnac_host: "{{ dnac_host }}"
        dnac_port: "{{ dnac_port }}"
        dnac_username: "{{ dnac_username }}"
        dnac_password: "{{ dnac_password }}"
        dnac_verify: "{{ dnac_verify }}"
        dnac_debug: "{{ dnac_debug }}"
        dnac_version: "{{ dnac_version }}"
        dnac_log_level: DEBUG
        dnac_log: true
        state: merged
        config_verify: true
        config:
          - source_ip: "204.1.2.3"  # required field
            dest_ip: "204.1.2.4"  # required field
            source_port: 4020  # optional field
            dest_port: 4021  # optional field
            protocol: "TCP"  # optional field
            include_stats:  # optional field
              - DEVICE_STATS
              - INTERFACE_STATS
              - QOS_STATS
              - PERFORMANCE_STATS
              - ACL_TRACE
            periodic_refresh: false  # optional field
            delete_on_completion: true  # optional field
          - source_ip: "204.1.1.2"  # required field
            dest_ip: "204.1.2.4"  # required field
            get_last_pathtrace_result: true  # optional field
            delete_on_completion: true  # optional field
          - flow_analysis_id: 99e067de-8776-40d2-9f6a-1e6ab2ef083c

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

response_1

dictionary

A dictionary with the response returned by the Cisco Catalyst Center Python SDK

Returned: always

Sample: "{\n    \"msg\": \"Path trace created and verified successfully for '[{'source_ip': '204.1.2.3',\n        'dest_ip': '204.1.2.4', 'source_port': 4020, 'dest_port': 4021, 'protocol': 'TCP',\n        'periodic_refresh': False, 'include_stats': ['DEVICE-STATS',\n        'INTERFACE-STATS', 'QOS-STATS', 'PERFORMANCE-STATS', 'ACL-TRACE'],\n        'flow_analysis_id': 'f30d648d-adb7-42ba-88f9-9a9e4c4fca4e'}]'.\",\n    \"response\": [\n        {\n            \"lastUpdate\": \"Fri Feb 21 19:16:46 GMT 2025\",\n            \"networkElementsInfo\": [\n                {\n                    \"egressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"b65f159e-b67d-49d4-92d0-801a0eda6426\",\n                            \"name\": \"TenGigabitEthernet1/1/7\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"id\": \"e62e6405-13e4-4f1b-ae1c-580a28a96a88\",\n                    \"ip\": \"204.1.2.3\",\n                    \"linkInformationSource\": \"ISIS\",\n                    \"name\": \"SJ-BN-9300\",\n                    \"role\": \"DISTRIBUTION\",\n                    \"type\": \"Switches and Hubs\"\n                },\n                {\n                    \"egressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"2897a064-9079-4c9c-adf2-3e0b5cf22724\",\n                            \"name\": \"TenGigabitEthernet1/1/7\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"id\": \"820bd13a-f565-4778-a320-9ec9f23b4725\",\n                    \"ingressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"c98d09f3-b57e-468f-a9a1-65e75249e94f\",\n                            \"name\": \"TenGigabitEthernet1/1/8\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"ip\": \"204.1.1.22\",\n                    \"linkInformationSource\": \"ISIS\",\n                    \"name\": \"DC-T-9300\",\n                    \"role\": \"ACCESS\",\n                    \"type\": \"Switches and Hubs\"\n                },\n                {\n                    \"id\": \"0be10e21-34c7-4c76-b217-56327ed1f418\",\n                    \"ingressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"f24b433c-8388-453e-a034-fcaf516bc749\",\n                            \"name\": \"TenGigabitEthernet2/1/8\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"ip\": \"204.1.2.4\",\n                    \"name\": \"NY-BN-9300\",\n                    \"role\": \"DISTRIBUTION\",\n                    \"type\": \"Switches and Hubs\"\n                }\n            ],\n            \"request\": {\n                \"controlPath\": false,\n                \"createTime\": 1740165404872,\n                \"destIP\": \"204.1.2.4\",\n                \"destPort\": \"4021\",\n                \"id\": \"81d8b994-fb62-48dc-aa45-cb3a62d4e4b4\",\n                \"lastUpdateTime\": 1740165406115,\n                \"periodicRefresh\": false,\n                \"protocol\": \"TCP\",\n                \"sourceIP\": \"204.1.2.3\",\n                \"sourcePort\": \"4020\",\n                \"status\": \"COMPLETED\"\n            }\n        }\n    ],\n    \"status\": \"success\"\n}\n"

response_2

dictionary

A dictionary or list with the response returned by the Cisco Catalyst Center Python SDK

Returned: always

Sample: "{\n    \"msg\": \"Path trace created and verified successfully for '[{'flow_analysis_id':\n        '99e067de-8776-40d2-9f6a-1e6ab2ef083c'}]'.\",\n    \"response\": [\n        {\n            \"lastUpdate\": \"Fri Feb 21 19:21:16 GMT 2025\",\n            \"networkElementsInfo\": [\n                {\n                    \"egressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"b65f159e-b67d-49d4-92d0-801a0eda6426\",\n                            \"name\": \"TenGigabitEthernet1/1/7\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"id\": \"e62e6405-13e4-4f1b-ae1c-580a28a96a88\",\n                    \"ip\": \"204.1.2.3\",\n                    \"linkInformationSource\": \"ISIS\",\n                    \"name\": \"SJ-BN-9300\",\n                    \"role\": \"DISTRIBUTION\",\n                    \"type\": \"Switches and Hubs\"\n                },\n                {\n                    \"egressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"2897a064-9079-4c9c-adf2-3e0b5cf22724\",\n                            \"name\": \"TenGigabitEthernet1/1/7\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"id\": \"820bd13a-f565-4778-a320-9ec9f23b4725\",\n                    \"ingressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"c98d09f3-b57e-468f-a9a1-65e75249e94f\",\n                            \"name\": \"TenGigabitEthernet1/1/8\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"ip\": \"204.1.1.22\",\n                    \"linkInformationSource\": \"ISIS\",\n                    \"name\": \"DC-T-9300\",\n                    \"role\": \"ACCESS\",\n                    \"type\": \"Switches and Hubs\"\n                },\n                {\n                    \"id\": \"0be10e21-34c7-4c76-b217-56327ed1f418\",\n                    \"ingressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"f24b433c-8388-453e-a034-fcaf516bc749\",\n                            \"name\": \"TenGigabitEthernet2/1/8\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"ip\": \"204.1.2.4\",\n                    \"name\": \"NY-BN-9300\",\n                    \"role\": \"DISTRIBUTION\",\n                    \"type\": \"Switches and Hubs\"\n                }\n            ],\n            \"request\": {\n                \"controlPath\": false,\n                \"createTime\": 1740156374801,\n                \"destIP\": \"204.1.2.4\",\n                \"destPort\": \"80\",\n                \"id\": \"99e067de-8776-40d2-9f6a-1e6ab2ef083c\",\n                \"lastUpdateTime\": 1740156376055,\n                \"periodicRefresh\": false,\n                \"protocol\": \"TCP\",\n                \"sourceIP\": \"204.1.2.3\",\n                \"sourcePort\": \"80\",\n                \"status\": \"COMPLETED\"\n            }\n        }\n    ],\n    \"status\": \"success\"\n}\n"

response_3

dictionary

A dictionary or list with the response returned by the Cisco Catalyst Center Python SDK

Returned: always

Sample: "{\n    \"msg\": \"Path trace created and verified successfully for '[{'source_ip': '204.1.1.2',\n        'dest_ip': '204.1.2.4', 'get_last_pathtrace_result': True,\n        'flow_analysis_id': 'f30d648d-adb7-42ba-88f9-9a9e4c4fca4e'}]'.\",\n    \"response\": [\n        {\n            \"lastUpdate\": \"Fri Feb 21 19:25:52 GMT 2025\",\n            \"networkElementsInfo\": [\n                {\n                    \"egressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"44aafd2d-5822-4ce5-95c5-11909e9425f6\",\n                            \"name\": \"TenGigabitEthernet1/1/1\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"id\": \"99b62ead-51d6-4bfc-9b0c-dab087f184e9\",\n                    \"ip\": \"204.1.1.2\",\n                    \"linkInformationSource\": \"ISIS\",\n                    \"name\": \"SJ-EN-9300\",\n                    \"role\": \"ACCESS\",\n                    \"type\": \"Switches and Hubs\"\n                },\n                {\n                    \"egressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"b65f159e-b67d-49d4-92d0-801a0eda6426\",\n                            \"name\": \"TenGigabitEthernet1/1/7\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"id\": \"e62e6405-13e4-4f1b-ae1c-580a28a96a88\",\n                    \"ingressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"0610f80e-09fc-4083-8aaa-7cf318b211de\",\n                            \"name\": \"TenGigabitEthernet1/1/2\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"ip\": \"204.1.2.3\",\n                    \"linkInformationSource\": \"ISIS\",\n                    \"name\": \"SJ-BN-9300\",\n                    \"role\": \"DISTRIBUTION\",\n                    \"type\": \"Switches and Hubs\"\n                },\n                {\n                    \"egressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"2897a064-9079-4c9c-adf2-3e0b5cf22724\",\n                            \"name\": \"TenGigabitEthernet1/1/7\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"id\": \"820bd13a-f565-4778-a320-9ec9f23b4725\",\n                    \"ingressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"c98d09f3-b57e-468f-a9a1-65e75249e94f\",\n                            \"name\": \"TenGigabitEthernet1/1/8\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"ip\": \"204.1.1.22\",\n                    \"linkInformationSource\": \"ISIS\",\n                    \"name\": \"DC-T-9300\",\n                    \"role\": \"ACCESS\",\n                    \"type\": \"Switches and Hubs\"\n                },\n                {\n                    \"id\": \"0be10e21-34c7-4c76-b217-56327ed1f418\",\n                    \"ingressInterface\": {\n                        \"physicalInterface\": {\n                            \"id\": \"f24b433c-8388-453e-a034-fcaf516bc749\",\n                            \"name\": \"TenGigabitEthernet2/1/8\",\n                            \"usedVlan\": \"NA\",\n                            \"vrfName\": \"global\"\n                        }\n                    },\n                    \"ip\": \"204.1.2.4\",\n                    \"name\": \"NY-BN-9300\",\n                    \"role\": \"DISTRIBUTION\",\n                    \"type\": \"Switches and Hubs\"\n                }\n            ],\n            \"request\": {\n                \"controlPath\": false,\n                \"createTime\": 1740162201882,\n                \"destIP\": \"204.1.2.4\",\n                \"id\": \"3cb51b94-2a50-4a92-b204-13ffdde22ef9\",\n                \"lastUpdateTime\": 1740162203167,\n                \"periodicRefresh\": false,\n                \"sourceIP\": \"204.1.1.2\",\n                \"status\": \"COMPLETED\"\n            }\n        }\n    ],\n    \"status\": \"success\"\n}\n"

response_4

dictionary

A dictionary or list with the response returned by the Cisco Catalyst Center Python SDK

Returned: always

Sample: "{\n    \"msg\": \"Path trace deleted and verified successfully for '[{'source_ip': '204.1.1.2',\n        'dest_ip': '204.1.2.4', 'get_last_pathtrace_result': True}]'.\",\n    \"response\":\"Path trace deleted and verified successfully for '[{'source_ip': '204.1.1.2',\n        'dest_ip': '204.1.2.4', 'get_last_pathtrace_result': True}]'.\",\n    \"status\": \"success\"\n}\n"

response_5

dictionary

A dictionary or list with the response returned by the Cisco Catalyst Center Python SDK

Returned: always

Sample: "{\n    \"msg\": \"Path trace deleted and verified successfully for '[{'flow_analysis_id':\n        '99e067de-8776-40d2-9f6a-1e6ab2ef083c'}]'.\",\n    \"response\": \"Path trace deleted and verified successfully for '[{'flow_analysis_id':\n        '99e067de-8776-40d2-9f6a-1e6ab2ef083c'}]'.\",\n    \"status\": \"success\"\n}\n"

Authors

  • A Mohamed Rafeek (@mabdulk2)

  • Madhan Sankaranarayanan (@madhansansel)