cisco.ise.network_device module – Resource module for Network Device
Note
This module is part of the cisco.ise collection (version 2.2.2).
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.ise
.
To use it in a playbook, specify: cisco.ise.network_device
.
New in version 1.0.0: of cisco.ise
Synopsis
Manage operations create, update and delete of the resource Network Device.
This API creates a network device.
This API deletes a network device by ID.
This API deletes a network device by name.
Note
This module has a corresponding action plugin.
Requirements
The below requirements are needed on the host that executes this module.
ciscoisesdk >= 1.4.0
python >= 3.5
Parameters
Parameter |
Comments |
---|---|
Network Device’s authenticationSettings. |
|
This value enforces use of dtls. Choices:
|
|
Enabled flag. Choices:
|
|
EnableKeyWrap flag. Choices:
|
|
Network Device’s enableMultiSecret. |
|
Network Device’s keyEncryptionKey. |
|
Allowed values - ASCII, - HEXADECIMAL. |
|
Network Device’s messageAuthenticatorCodeKey. |
|
Allowed values - RADIUS, - TACACS_PLUS. |
|
Network Device’s radiusSharedSecret. |
|
Network Device’s secondRadiusSharedSecret. |
|
Network Device’s coaPort. |
|
Network Device’s description. |
|
This value is used to verify the client identity contained in the X.509 RADIUS/DTLS client certificate. |
|
Network Device’s id. |
|
Flag for Identity Services Engine SDK to enable debugging. Choices:
|
|
The Identity Services Engine hostname. |
|
The Identity Services Engine password to authenticate. |
|
The Identity Services Engine username to authenticate. |
|
Flag that informs the SDK whether to use the Identity Services Engine’s API Gateway to send requests. If it is true, it uses the ISE’s API Gateway and sends requests to https://{{ise_hostname}}. If it is false, it sends the requests to https://{{ise_hostname}}:{{port}}, where the port value depends on the Service used (ERS, Mnt, UI, PxGrid). Choices:
|
|
Flag to enable or disable SSL certificate verification. Choices:
|
|
Informs the SDK which version of Identity Services Engine to use. Default: “3.1.1” |
|
Flag for Identity Services Engine SDK to enable automatic rate-limit handling. Choices:
|
|
Network Device’s modelName. |
|
Network Device’s name. |
|
List of Network Device Group names for this node. |
|
List of IP Subnets for this node. |
|
It can be either single IP address or IP range address. |
|
Network Device’s ipaddress. |
|
Network Device’s mask. |
|
Network Device’s profileName. |
|
Network Device’s snmpsettings. |
|
LinkTrapQuery flag. Choices:
|
|
MacTrapQuery flag. Choices:
|
|
Network Device’s originatingPolicyServicesNode. |
|
Network Device’s pollingInterval. |
|
Network Device’s roCommunity. |
|
Network Device’s version. |
|
Network Device’s softwareVersion. |
|
Network Device’s tacacsSettings. |
|
Allowed values - OFF, - ON_LEGACY, - ON_DRAFT_COMPLIANT. |
|
Network Device’s sharedSecret. |
|
Network Device’s trustsecsettings. |
|
Network Device’s deviceAuthenticationSettings. |
|
Network Device’s sgaDeviceId. |
|
Network Device’s sgaDevicePassword. |
|
Network Device’s deviceConfigurationDeployment. |
|
Network Device’s enableModePassword. |
|
Network Device’s execModePassword. |
|
Network Device’s execModeUsername. |
|
IncludeWhenDeployingSGTUpdates flag. Choices:
|
|
PushIdSupport flag. Choices:
|
|
Network Device’s sgaNotificationAndUpdates. |
|
Network Device’s coaSourceHost. |
|
Network Device’s downlaodEnvironmentDataEveryXSeconds. |
|
Network Device’s downlaodPeerAuthorizationPolicyEveryXSeconds. |
|
Network Device’s downloadSGACLListsEveryXSeconds. |
|
OtherSGADevicesToTrustThisDevice flag. Choices:
|
|
Network Device’s reAuthenticationEveryXSeconds. |
|
SendConfigurationToDevice flag. Choices:
|
|
Allowed values - ENABLE_USING_COA, - ENABLE_USING_CLI, - DISABLE_ALL. |
Notes
Note
SDK Method used are network_device.NetworkDevice.create_network_device, network_device.NetworkDevice.delete_network_device_by_id, network_device.NetworkDevice.delete_network_device_by_name, network_device.NetworkDevice.update_network_device_by_id, network_device.NetworkDevice.update_network_device_by_name,
Paths used are post /ers/config/networkdevice, delete /ers/config/networkdevice/name/{name}, delete /ers/config/networkdevice/{id},
Does not support
check_mode
The plugin runs on the control node and does not use any ansible connection plugins, but instead the embedded connection manager from Cisco ISE SDK
The parameters starting with ise_ are used by the Cisco ISE Python SDK to establish the connection
Examples
- name: Update by name
cisco.ise.network_device:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: present
NetworkDeviceGroupList:
- string
NetworkDeviceIPList:
- getIpaddressExclude: string
ipaddress: string
mask: 0
authenticationSettings:
dtlsRequired: true
enableKeyWrap: true
enableMultiSecret: string
enabled: true
keyEncryptionKey: string
keyInputFormat: string
messageAuthenticatorCodeKey: string
networkProtocol: string
radiusSharedSecret: string
secondRadiusSharedSecret: string
coaPort: 0
description: string
dtlsDnsName: string
id: string
modelName: string
name: string
profileName: string
snmpsettings:
linkTrapQuery: true
macTrapQuery: true
originatingPolicyServicesNode: string
pollingInterval: 0
roCommunity: string
version: string
softwareVersion: string
tacacsSettings:
connectModeOptions: string
sharedSecret: string
trustsecsettings:
deviceAuthenticationSettings:
sgaDeviceId: string
sgaDevicePassword: string
deviceConfigurationDeployment:
enableModePassword: string
execModePassword: string
execModeUsername: string
includeWhenDeployingSGTUpdates: true
pushIdSupport: true
sgaNotificationAndUpdates:
coaSourceHost: string
downlaodEnvironmentDataEveryXSeconds: 0
downlaodPeerAuthorizationPolicyEveryXSeconds: 0
downloadSGACLListsEveryXSeconds: 0
otherSGADevicesToTrustThisDevice: true
reAuthenticationEveryXSeconds: 0
sendConfigurationToDevice: true
sendConfigurationToDeviceUsing: string
- name: Delete by name
cisco.ise.network_device:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: absent
name: string
- name: Update by id
cisco.ise.network_device:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: present
NetworkDeviceGroupList:
- string
NetworkDeviceIPList:
- getIpaddressExclude: string
ipaddress: string
mask: 0
authenticationSettings:
dtlsRequired: true
enableKeyWrap: true
enableMultiSecret: string
enabled: true
keyEncryptionKey: string
keyInputFormat: string
messageAuthenticatorCodeKey: string
networkProtocol: string
radiusSharedSecret: string
secondRadiusSharedSecret: string
coaPort: 0
description: string
dtlsDnsName: string
id: string
modelName: string
name: string
profileName: string
snmpsettings:
linkTrapQuery: true
macTrapQuery: true
originatingPolicyServicesNode: string
pollingInterval: 0
roCommunity: string
version: string
softwareVersion: string
tacacsSettings:
connectModeOptions: string
sharedSecret: string
trustsecsettings:
deviceAuthenticationSettings:
sgaDeviceId: string
sgaDevicePassword: string
deviceConfigurationDeployment:
enableModePassword: string
execModePassword: string
execModeUsername: string
includeWhenDeployingSGTUpdates: true
pushIdSupport: true
sgaNotificationAndUpdates:
coaSourceHost: string
downlaodEnvironmentDataEveryXSeconds: 0
downlaodPeerAuthorizationPolicyEveryXSeconds: 0
downloadSGACLListsEveryXSeconds: 0
otherSGADevicesToTrustThisDevice: true
reAuthenticationEveryXSeconds: 0
sendConfigurationToDevice: true
sendConfigurationToDeviceUsing: string
- name: Delete by id
cisco.ise.network_device:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: absent
id: string
- name: Create
cisco.ise.network_device:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: present
NetworkDeviceGroupList:
- string
NetworkDeviceIPList:
- getIpaddressExclude: string
ipaddress: string
mask: 0
authenticationSettings:
dtlsRequired: true
enableKeyWrap: true
enableMultiSecret: string
enabled: true
keyEncryptionKey: string
keyInputFormat: string
messageAuthenticatorCodeKey: string
networkProtocol: string
radiusSharedSecret: string
secondRadiusSharedSecret: string
coaPort: 0
description: string
dtlsDnsName: string
modelName: string
name: string
profileName: string
snmpsettings:
linkTrapQuery: true
macTrapQuery: true
originatingPolicyServicesNode: string
pollingInterval: 0
roCommunity: string
version: string
softwareVersion: string
tacacsSettings:
connectModeOptions: string
sharedSecret: string
trustsecsettings:
deviceAuthenticationSettings:
sgaDeviceId: string
sgaDevicePassword: string
deviceConfigurationDeployment:
enableModePassword: string
execModePassword: string
execModeUsername: string
includeWhenDeployingSGTUpdates: true
pushIdSupport: true
sgaNotificationAndUpdates:
coaSourceHost: string
downlaodEnvironmentDataEveryXSeconds: 0
downlaodPeerAuthorizationPolicyEveryXSeconds: 0
downloadSGACLListsEveryXSeconds: 0
otherSGADevicesToTrustThisDevice: true
reAuthenticationEveryXSeconds: 0
sendConfigurationToDevice: true
sendConfigurationToDeviceUsing: string
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
A dictionary or list with the response returned by the Cisco ISE Python SDK Returned: always Sample: “{\n \”id\”: \”string\”,\n \”name\”: \”string\”,\n \”description\”: \”string\”,\n \”authenticationSettings\”: {\n \”networkProtocol\”: \”string\”,\n \”secondRadiusSharedSecret\”: \”string\”,\n \”radiusSharedSecret\”: \”string\”,\n \”enableKeyWrap\”: true,\n \”enabled\”: true,\n \”dtlsRequired\”: true,\n \”enableMultiSecret\”: \”string\”,\n \”keyEncryptionKey\”: \”string\”,\n \”messageAuthenticatorCodeKey\”: \”string\”,\n \”keyInputFormat\”: \”string\”\n },\n \”snmpsettings\”: {\n \”version\”: \”string\”,\n \”roCommunity\”: \”string\”,\n \”pollingInterval\”: 0,\n \”linkTrapQuery\”: true,\n \”macTrapQuery\”: true,\n \”originatingPolicyServicesNode\”: \”string\”\n },\n \”trustsecsettings\”: {\n \”deviceAuthenticationSettings\”: {\n \”sgaDeviceId\”: \”string\”,\n \”sgaDevicePassword\”: \”string\”\n },\n \”sgaNotificationAndUpdates\”: {\n \”downlaodEnvironmentDataEveryXSeconds\”: 0,\n \”downlaodPeerAuthorizationPolicyEveryXSeconds\”: 0,\n \”reAuthenticationEveryXSeconds\”: 0,\n \”downloadSGACLListsEveryXSeconds\”: 0,\n \”otherSGADevicesToTrustThisDevice\”: true,\n \”sendConfigurationToDevice\”: true,\n \”sendConfigurationToDeviceUsing\”: \”string\”,\n \”coaSourceHost\”: \”string\”\n },\n \”deviceConfigurationDeployment\”: {\n \”includeWhenDeployingSGTUpdates\”: true,\n \”enableModePassword\”: \”string\”,\n \”execModePassword\”: \”string\”,\n \”execModeUsername\”: \”string\”\n },\n \”pushIdSupport\”: true\n },\n \”tacacsSettings\”: {\n \”sharedSecret\”: \”string\”,\n \”connectModeOptions\”: \”string\”\n },\n \”profileName\”: \”string\”,\n \”coaPort\”: 0,\n \”dtlsDnsName\”: \”string\”,\n \”modelName\”: \”string\”,\n \”softwareVersion\”: \”string\”,\n \”NetworkDeviceIPList\”: [\n {\n \”ipaddress\”: \”string\”,\n \”mask\”: 0,\n \”getIpaddressExclude\”: \”string\”\n }\n ],\n \”NetworkDeviceGroupList\”: [\n \”string\”\n ],\n \”link\”: {\n \”rel\”: \”string\”,\n \”href\”: \”string\”,\n \”type\”: \”string\”\n }\n}\n” |
|
A dictionary or list with the response returned by the Cisco ISE Python SDK Returned: always Sample: “{\n \”UpdatedFieldsList\”: {\n \”updatedField\”: [\n {\n \”field\”: \”string\”,\n \”oldValue\”: \”string\”,\n \”newValue\”: \”string\”\n }\n ],\n \”field\”: \”string\”,\n \”oldValue\”: \”string\”,\n \”newValue\”: \”string\”\n }\n}\n” |