salt.proxy.junos

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 salt.proxy.junos.RebootActive(**kwargs)

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.

reboot_shutdown = False
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_reboot_active()
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.reboot_active()
salt.proxy.junos.reboot_clear()
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.