Interface with a Junos device via proxy-minion. To connect to a junos device via junos proxy, specify the host information in the pillar in ‘/srv/pillar/details.sls’
proxy:
proxytype: junos
host: <ip or dns name of host>
username: <username>
port: 830
password: <secret>
In ‘/srv/pillar/top.sls’ map the device details with the proxy name.
base:
'vmx':
- details
After storing the device information in the pillar, configure the proxy in ‘/etc/salt/proxy’
master: <ip or hostname of salt-master>
Run the salt proxy via the following command:
salt-proxy --proxyid=vmx
salt.proxy.junos.alive(opts)¶Validate and return the connection status with the remote device.
New in version 2018.3.0.
salt.proxy.junos.conn()¶salt.proxy.junos.get_serialized_facts()¶salt.proxy.junos.init(opts)¶Open the connection to the Junos device, login, and bind to the Resource class
salt.proxy.junos.initialized()¶salt.proxy.junos.ping()¶Ping? Pong!
salt.proxy.junos.proxytype()¶Returns the name of this proxy
salt.proxy.junos.shutdown(opts)¶This is called when the proxy-minion is exiting to make sure the connection to the device is closed cleanly.
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2018.3.3