Manages the configuration of the users on network devices.
codeauthor: | Mircea Ulinic <mircea@cloudflare.com> |
---|---|
maturity: | new |
depends: | napalm |
platform: | unix |
See also
New in version 2016.11.0.
salt.modules.napalm_users.
config
(*args, **kwargs)¶Returns the configuration of the users on the device
CLI Example:
salt '*' users.config
Output example:
{
'mircea': {
'level': 15,
'password': '$1$0P70xKPa$4jt5/10cBTckk6I/w/',
'sshkeys': [
'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4pFn+shPwTb2yELO4L7NtQrKOJXNeCl1je l9STXVaGnRAnuc2PXl35vnWmcUq6YbUEcgUTRzzXfmelJKuVJTJIlMXii7h2xkbQp0YZIEs4P 8ipwnRBAxFfk/ZcDsN3mjep4/yjN56ejk345jhk345jk345jk341p3A/9LIL7l6YewLBCwJj6 D+fWSJ0/YW+7oH17Fk2HH+tw0L5PcWLHkwA4t60iXn16qDbIk/ze6jv2hDGdCdz7oYQeCE55C CHOHMJWYfN3jcL4s0qv8/u6Ka1FVkV7iMmro7ChThoV/5snI4Ljf2wKqgHH7TfNaCfpU0WvHA nTs8zhOrGScSrtb mircea@master-roshi'
]
}
}
salt.modules.napalm_users.
delete_users
(*args, **kwargs)¶Removes users from the configuration of network devices.
Parameters: |
|
---|---|
Raises: | MergeConfigException -- If there is an error on the configuration sent. |
Return a dictionary having the following keys: | |
|
CLI Example:
salt '*' users.delete_users "{'mircea': {}}"
salt.modules.napalm_users.
set_users
(*args, **kwargs)¶Configures users on network devices.
Parameters: |
|
---|---|
Raises: | MergeConfigException -- If there is an error on the configuration sent. |
Return a dictionary having the following keys: | |
CLI Example:
salt '*' users.set_users "{'mircea': {}}"