-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat(eos_cli_config_gen): add support for password complexity policies (
- Loading branch information
1 parent
cd47571
commit 9abeed5
Showing
20 changed files
with
464 additions
and
0 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
...ta/avd/molecule/eos_cli_config_gen/documentation/devices/management-accounts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# management-accounts | ||
|
||
## Table of Contents | ||
|
||
- [Management](#management) | ||
- [Management Interfaces](#management-interfaces) | ||
- [Management Accounts](#management-accounts) | ||
|
||
## Management | ||
|
||
### Management Interfaces | ||
|
||
#### Management Interfaces Summary | ||
|
||
##### IPv4 | ||
|
||
| Management Interface | description | Type | VRF | IP Address | Gateway | | ||
| -------------------- | ----------- | ---- | --- | ---------- | ------- | | ||
| Management1 | oob_management | oob | MGMT | 10.73.255.122/24 | 10.73.255.2 | | ||
|
||
##### IPv6 | ||
|
||
| Management Interface | description | Type | VRF | IPv6 Address | IPv6 Gateway | | ||
| -------------------- | ----------- | ---- | --- | ------------ | ------------ | | ||
| Management1 | oob_management | oob | MGMT | - | - | | ||
|
||
#### Management Interfaces Device Configuration | ||
|
||
```eos | ||
! | ||
interface Management1 | ||
description oob_management | ||
vrf MGMT | ||
ip address 10.73.255.122/24 | ||
``` | ||
|
||
### Management Accounts | ||
|
||
#### Password Policy | ||
|
||
The password policy set for management accounts is: AVD_POLICY | ||
|
||
#### Management Accounts Device Configuration | ||
|
||
```eos | ||
! | ||
management accounts | ||
password policy AVD_POLICY | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...llections/arista/avd/molecule/eos_cli_config_gen/intended/configs/management-accounts.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
transceiver qsfp default-mode 4x10G | ||
! | ||
hostname management-accounts | ||
! | ||
no enable password | ||
no aaa root | ||
! | ||
interface Management1 | ||
description oob_management | ||
vrf MGMT | ||
ip address 10.73.255.122/24 | ||
! | ||
management accounts | ||
password policy AVD_POLICY | ||
! | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...ctions/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/management-accounts.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
management_accounts: | ||
password: | ||
policy: "AVD_POLICY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...lections/arista/avd/roles/eos_cli_config_gen/docs/tables/management-accounts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
=== "Table" | ||
|
||
| Variable | Type | Required | Default | Value Restrictions | Description | | ||
| -------- | ---- | -------- | ------- | ------------------ | ----------- | | ||
| [<samp>management_accounts</samp>](## "management_accounts") | Dictionary | | | | | | ||
| [<samp> password</samp>](## "management_accounts.password") | Dictionary | | | | | | ||
| [<samp> policy</samp>](## "management_accounts.password.policy") | String | | | | | | ||
|
||
=== "YAML" | ||
|
||
```yaml | ||
management_accounts: | ||
password: | ||
policy: <str> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.