Proxy minion for managing network devices via NAPALM library.
| codeauthor: | Mircea Ulinic <mircea@cloudflare.com> & Jerome Fleury <jf@cloudflare.com> |
|---|---|
| maturity: | new |
| depends: | napalm |
| platform: | unix |
The napalm proxy module requires NAPALM library to be installed: pip install napalm
Please check Installation for complete details.
The napalm proxy configuration requires four mandatory parameters in order to connect to the network device:
Example:
proxy:
proxytype: napalm
driver: junos
host: core05.nrt02
username: my_username
passwd: my_password
optional_args:
port: 12201
config_format: set
See also
NAPALM grains: select network devices based on their characteristicsNET module: network basic featuresNTP operational and configuration management moduleBGP operational and configuration management moduleRoutes detailsSNMP configuration moduleUsers configuration managementNew in version 2016.11.0.
salt.proxy.napalm.call(method, **params)¶Calls a specific method from the network driver instance. Please check the readthedocs page for the updated list of getters.
| Parameters: |
|
|---|---|
| Returns: | A dictionary with three keys:
on the correct driver repo and make sure to read the FAQ_ |
Example:
__proxy__['napalm.call']('cli'
**{
'commands': [
'show version',
'show chassis fan'
]
})
salt.proxy.napalm.fns()¶Method called by NAPALM grains module.
salt.proxy.napalm.grains()¶Retrieve facts from the network device.
salt.proxy.napalm.grains_refresh()¶Refresh the grains.
salt.proxy.napalm.init(opts)¶Opens the connection with the network device.
salt.proxy.napalm.initialized()¶Connection finished initializing?
salt.proxy.napalm.ping()¶Connection open successfully?
salt.proxy.napalm.shutdown(opts)¶Closes connection with the device.
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2016.11.0