Manages SNMP on network devices.
codeauthor: | Mircea Ulinic <mircea@cloudflare.com> |
---|---|
maturity: | new |
depends: | napalm |
platform: | unix |
See also
New in version 2016.11.0.
salt.modules.napalm_snmp.
config
(*args, **kwargs)¶Returns the SNMP configuration
CLI Example:
salt '*' snmp.config
salt.modules.napalm_snmp.
remove_config
(*args, **kwargs)¶Removes a configuration element from the SNMP configuration.
Parameters: |
|
---|
Parameters: |
|
---|---|
Raises: | MergeConfigException -- If there is an error on the configuration sent. |
Returns: | A dictionary having the following keys: |
CLI Example:
salt '*' snmp.remove_config community='abcd'
salt.modules.napalm_snmp.
update_config
(*args, **kwargs)¶Updates the SNMP configuration.
Parameters: |
|
---|
Parameters: |
|
---|---|
Raises: | MergeConfigException -- If there is an error on the configuration sent. |
Return a dictionary having the following keys: | |
CLI Example:
salt 'edge01.lon01' snmp.update_config location="Greenwich, UK" test=True
Output example (for the CLI example above):
edge01.lon01:
----------
already_configured:
False
comment:
Configuration discarded.
diff:
[edit snmp]
- location "London, UK";
+ location "Greenwich, UK";
result:
True