cisco.dnac.sda_fabric_border_device_v1_info 模块 – Sda Fabric 边界设备 V1 的信息模块

注意

此模块是 cisco.dnac 集合(版本 6.25.0)的一部分。

如果您正在使用 ansible 包,您可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用:ansible-galaxy collection install cisco.dnac。您需要进一步的要求才能使用此模块,请参阅 要求 了解详细信息。

要在 playbook 中使用它,请指定:cisco.dnac.sda_fabric_border_device_v1_info

cisco.dnac 3.1.0 中的新增功能

概要

  • 获取所有 Sda Fabric 边界设备 V1。

  • 从 SDA Fabric 获取边界设备详细信息。

注意

此模块具有相应的 操作插件

要求

在执行此模块的主机上需要以下要求。

  • dnacentersdk >= 2.4.9

  • python >= 3.5

参数

参数

注释

deviceManagementIpAddress

字符串

在 cisco.dnac 4.0.0 中添加

DeviceManagementIpAddress 查询参数。

dnac_debug

布尔值

Cisco DNA Center SDK 用于启用调试的标志。

选项

  • false ← (默认)

  • true

dnac_host

字符串 / 必需

Cisco DNA Center 主机名。

dnac_password

字符串

用于身份验证的 Cisco DNA Center 密码。

dnac_port

整数

Cisco DNA Center 端口。

默认值: 443

dnac_username

别名:user

字符串

用于身份验证的 Cisco DNA Center 用户名。

默认值: "admin"

dnac_verify

布尔值

启用或禁用 SSL 证书验证的标志。

选项

  • false

  • true ← (默认)

dnac_version

字符串

通知 SDK 使用哪个版本的 Cisco DNA Center。

默认值: "2.3.7.6"

headers

字典

其他标头。

validate_response_schema

布尔值

Cisco DNA Center SDK 用于启用针对 JSON 模式验证请求主体的标志。

选项

  • false

  • true ← (默认)

注释

注意

  • 使用的 SDK 方法是 sda.Sda.gets_border_device_detail,

  • 使用的路径是 get /dna/intent/api/v1/business/sda/border-device,

  • 支持 check_mode

  • 该插件在控制节点上运行,不使用任何 ansible 连接插件,而是使用 Cisco DNAC SDK 中的嵌入式连接管理器

  • 以 dnac_ 开头的参数由 Cisco DNAC Python SDK 用于建立连接

另请参阅

另请参阅

有关 SDA GetBorderDeviceDetailFromSDAFabricV1 的 Cisco DNA Center 文档

GetBorderDeviceDetailFromSDAFabricV1 API 的完整参考。

示例

- name: Get all Sda Fabric Border Device V1
  cisco.dnac.sda_fabric_border_device_v1_info:
    dnac_host: "{{dnac_host}}"
    dnac_username: "{{dnac_username}}"
    dnac_password: "{{dnac_password}}"
    dnac_verify: "{{dnac_verify}}"
    dnac_port: "{{dnac_port}}"
    dnac_version: "{{dnac_version}}"
    dnac_debug: "{{dnac_debug}}"
    headers: "{{my_headers | from_json}}"
    deviceManagementIpAddress: string
  register: result

返回值

常见的返回值记录在此处,以下是此模块特有的字段

描述

dnac_response

字典

由 Cisco DNAC Python SDK 返回的包含响应的字典或列表

返回值: 始终

示例: {"description": "字符串", "payload": {"akcSettingsCfs": [{}], "authEntityClass": 0, "authEntityId": 0, "cfsChangeInfo": [{}], "configs": [{}], "createTime": 0, "customProvisions": [{}], "deployPending": "字符串", "deployed": true, "deviceInterfaceInfo": [{}], "deviceSettings": {"connectedTo": [{}], "cpu": 0, "deployPending": "字符串", "dhcpEnabled": true, "displayName": "字符串", "extConnectivitySettings": [{"deployPending": "字符串", "displayName": "字符串", "externalDomainProtocolNumber": "字符串", "id": "字符串", "instanceId": 0, "instanceTenantId": "字符串", "instanceVersion": 0, "interfaceUuid": "字符串", "l2Handoff": [{}], "l3Handoff": [{"deployPending": "字符串", "displayName": "字符串", "id": "字符串", "instanceId": 0, "instanceTenantId": "字符串", "instanceVersion": 0, "localIpAddress": "字符串", "remoteIpAddress": "字符串", "virtualNetwork": {"idRef": "字符串"}, "vlanId": 0}], "policyPropagationEnabled": true, "policySgtTag": 0}], "externalConnectivityIpPool": "字符串", "externalDomainRoutingProtocol": "字符串", "id": "字符串", "instanceId": 0, "instanceTenantId": "字符串", "instanceVersion": 0, "internalDomainProtocolNumber": "字符串", "memory": 0, "nodeType": ["字符串"], "storage": 0}, "displayName": "字符串", "id": "字符串", "instanceId": 0, "instanceTenantId": "字符串", "instanceVersion": 0, "isSeeded": true, "isStale": true, "lastUpdateTime": 0, "managedSites": [{}], "name": "字符串", "namespace": "字符串", "networkDeviceId": "字符串", "networkWideSettings": {"aaa": [{}], "cmx": [{}], "deployPending": "字符串", "dhcp": [{"id": "字符串", "ipAddress": {"address": "字符串", "addressType": "字符串", "id": "字符串", "paddedAddress": "字符串"}}], "displayName": "字符串", "dns": [{"domainName": "字符串", "id": "字符串", "ip": {"address": "字符串", "addressType": "字符串", "id": "字符串", "paddedAddress": "字符串"}}], "id": "字符串", "instanceId": 0, "instanceTenantId": "字符串", "instanceVersion": 0, "ldap": [{}], "nativeVlan": [{}], "netflow": [{}], "ntp": [{}], "snmp": [{}], "syslogs": [{}]}, "otherDevice": [{}], "provisioningState": "字符串", "resourceVersion": 0, "roles": ["字符串"], "saveWanConnectivityDetailsOnly": true, "siteId": "字符串", "targetIdList": [{}], "transitNetworks": [{"idRef": "字符串"}], "type": "字符串", "virtualNetwork": [{}], "wlan": [{}]}, "status": "字符串"}

作者

  • Rafael Campos (@racampos)