salt.modules.onyx module

Execution module for Onyx OS Switches Proxy minions

New in version Neon.

For documentation on setting up the onyx proxy minion look in the documentation for salt.proxy.onyx.

salt.modules.onyx.cmd(command, *args, **kwargs)

run commands from __proxy__ salt.proxy.onyx

command

function from salt.proxy.onyx to run

args

positional args to pass to command function

kwargs

key word arguments to pass to command function

salt '*' onyx.cmd sendline 'show ver'
salt '*' onyx.cmd show_run
salt '*' onyx.cmd check_password username=admin
password='$5$lkjsdfoi$blahblahblah' encrypted=True
salt.modules.onyx.system_info()

Return system information for grains of the Onyx OS proxy minion

salt '*' onyx.system_info