arubanetworks / arubanetworks.aos_switch / 1.7.0 / module / arubaoss_snmp_trap implements rest api for snmp trap configuration | "added in version" 2.6.0 of arubanetworks.aos_switch" Authors: Ashish Pant (@hpe) preview | supported by communityarubanetworks.aos_switch.arubaoss_snmp_trap (1.7.0) — module
Install with ansible-galaxy collection install arubanetworks.aos_switch:==1.7.0
collections: - name: arubanetworks.aos_switch version: 1.7.0
This implements rest api's which enable/disable snmp traps for differente features on device
- name: configure snmp trap arubaoss_snmp_traps: mac_move_notify_mode: "{{item}}" with_items: - STM_ENABLE - STM_DISABLE
host: description: 'Specifies the DNS host name or address for connecting to the remote device over the specified transport. The value of host is used as the destination address for the transport. ' type: str port: description: 'Specifies the port to use when building the connection to the remote device. ' type: int timeout: description: 'Specifies the timeout in seconds for communicating with the network device for either connecting or sending commands. If the timeout is exceeded before the operation is completed, the module will error. ' type: int use_ssl: description: 'Configures use SSL (HTTPS) for access to the remote device. ' type: bool password: description: 'Specifies the password to use to authenticate the connection to the remote device. This value is used to authenticate the SSH session. If the value is not specified in the task, the value of environment variable ANSIBLE_NET_PASSWORD will be used instead. ' type: str provider: description: A dict object containing connection details. suboptions: api_version: default: None description: 'Configures (force) API version (vX.Y) for acces to the remote device. ' type: str host: description: 'Specifies the DNS host name or address for connecting to the remote device over the specified transport. The value of host is used as the destination address for the transport. ' type: str password: description: 'Specifies the password to use to authenticate the connection to the remote device. This value is used to authenticate the SSH session. If the value is not specified in the task, the value of environment variable ANSIBLE_NET_PASSWORD will be used instead. ' type: str port: description: 'Specifies the port to use when building the connection to the remote device. ' type: int ssh_keyfile: description: 'Specifies the SSH key to use to authenticate the connection to the remote device. This value is the path to the key used to authenticate the SSH session. If the value is not specified in the task, the value of environment variable ANSIBLE_NET_SSH_KEYFILE will be used instead. ' type: path timeout: description: 'Specifies the timeout in seconds for communicating with the network device for either connecting or sending commands. If the timeout is exceeded before the operation is completed, the module will error. ' type: int transport: default: aossapi description: 'Configures the transport (aossapi or network_cli) mode. ' type: str use_proxy: default: false description: 'Configures use (Local) Proxy for access to the remote device. ' type: bool use_ssl: description: 'Configures use SSL (HTTPS) for access to the remote device. ' type: bool username: description: 'Configures the username to use to authenticate the connection to the remote device. This value is used to authenticate the SSH session. If the value is not specified in the task, the value of environment variable ANSIBLE_NET_USERNAME will be used instead. ' type: str validate_certs: default: false description: 'Configures validation of certification for access to the remote device. ' type: bool type: dict username: description: 'Configures the username to use to authenticate the connection to the remote device. This value is used to authenticate the SSH session. If the value is not specified in the task, the value of environment variable ANSIBLE_NET_USERNAME will be used instead. ' type: str api_version: default: None description: 'Configures (force) API version (vX.Y) for acces to the remote device. ' type: str arp_protect: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Traps for dynamic arp protection required: false dhcp_server: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Traps for dhcp server required: false ssh_keyfile: description: 'Specifies the SSH key to use to authenticate the connection to the remote device. This value is the path to the key used to authenticate the SSH session. If the value is not specified in the task, the value of environment variable ANSIBLE_NET_SSH_KEYFILE will be used instead. ' type: path dhcp_snooping: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Traps for dhcp snooping required: false port_security: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Traps for port access authentication failure required: false macsec_failure: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Enable the MACsec Connectivity Association (CA) failure trap required: false validate_certs: default: false description: 'Configures validation of certification for access to the remote device. ' type: bool aut_server_fail: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Traps reporting authentication server unreachable required: false dyn_ip_lockdown: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Traps for Dynamic Ip Lockdown required: false mac_notify_mode: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_DISABLE description: - Traps for mac notify required: false mac_count_notify: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Traps for MAC addresses learned on the specified ports exceeds the threshold required: false login_failure_mgr: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Traps for management interface login failure required: false password_change_mgr: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Traps for management interface password change required: false snmp_authentication: choices: - SATM_EXTENDED - SATM_STANDARD - STM_NONE default: SATM_EXTENDED description: - Select RFC1157 (standard) or HP-ICF-SNMP (extended) traps required: false mac_move_notify_mode: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_DISABLE description: - Traps for move mac address table changes required: false startup_config_change: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_DISABLE description: - Traps for changed to the startup config required: false dyn_ipv6_ld_violations: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Enable traps for Dynamic IPv6 Lockdown violations. required: false mac_notify_trap_interval: choices: - 0 - 120 default: 30 description: - Trap interval for mac_move_notify_mode and mac_notify_mode required: false running_conf_change_trap: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_DISABLE description: - Traps mode for running config change required: false dyn_ipv6_ld_out_of_resources: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Enable traps for Dynamic IPv6 Lockdown out of resources required: false nd_snooping_out_of_resources: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - The trap for nd snooping out of resources required: false running_config_trap_interval: choices: - 0 - 120 default: 0 description: - Traps interval for running_conf_change_trap required: false dhcpv6_snooping_errant_replies: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Traps for DHCPv6 snooping errant replies required: false dhcpv6_snooping_out_of_resource: choices: - STM_ENABLE - STM_DISABLE - STM_NONE default: STM_ENABLE description: - Enable traps for dhcpv6 snooping out of resource required: false