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
-
-
Validate and return the connection status with the remote device.
New in version 2018.3.0.
salt.proxy.junos.alive(opts)
salt.proxy.junos.conn()
salt.proxy.junos.get_reboot_active()
salt.proxy.junos.get_serialized_facts()
-
Open the connection to the Junos device, login, and bind to the Resource class
salt.proxy.junos.init(opts)
salt.proxy.junos.initialized()
-
Ping? Pong!
salt.proxy.junos.ping()
-
Returns the name of this proxy
salt.proxy.junos.proxytype()
salt.proxy.junos.reboot_active()
salt.proxy.junos.reboot_clear()
-
This is called when the proxy-minion is exiting to make sure the connection to the device is closed cleanly.
salt.proxy.junos.shutdown(opts)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/proxy/all/salt.proxy.junos.html