From 5ee0c0af184cdefcee2fd53315634dba120d66bb Mon Sep 17 00:00:00 2001 From: Kevin Breit Date: Wed, 20 Jun 2018 02:38:10 -0500 Subject: [PATCH] Meraki_snmp - Add examples for SNMP documentation (#41424) * Add examples for SNMP documentation * Removed whitespace for PEP8 --- .../modules/network/meraki/meraki_snmp.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/lib/ansible/modules/network/meraki/meraki_snmp.py b/lib/ansible/modules/network/meraki/meraki_snmp.py index 7126df6aba7..c9ef1055f8f 100644 --- a/lib/ansible/modules/network/meraki/meraki_snmp.py +++ b/lib/ansible/modules/network/meraki/meraki_snmp.py @@ -68,6 +68,35 @@ EXAMPLES = r''' org_name: YourOrg state: query delegate_to: localhost + +- name: Enable SNMPv2 + meraki_snmp: + auth_key: abc12345 + org_name: YourOrg + state: present + v2c_enabled: yes + delegate_to: localhost + +- name: Disable SNMPv2 + meraki_snmp: + auth_key: abc12345 + org_name: YourOrg + state: present + v2c_enabled: no + delegate_to: localhost + +- name: Enable SNMPv3 + meraki_snmp: + auth_key: abc12345 + org_name: YourOrg + state: present + v3_enabled: true + v3_auth_mode: SHA + v3_auth_pass: ansiblepass + v3_priv_mode: AES128 + v3_priv_pass: ansiblepass + peer_ips: 192.0.1.1;192.0.1.2 + delegate_to: localhost ''' RETURN = r'''