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
Class to get static variable, to indicate when a reboot/shutdown is being processed and the keep_alive should not probe the connection since it interferes with the shutdown process.
Validate and return the connection status with the remote device.
New in version 2018.3.0.
Open the connection to the Junos device, login, and bind to the Resource class
Ping? Pong!
Returns the name of this proxy
This is called when the proxy-minion is exiting to make sure the connection to the device is closed cleanly.