-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixe the integrations test to be correct
- Fixe the config module to: - doesn't modify lines not indicated with the deleted and replaced profiles - take correctly in case the case where we have aux line present on device
- Loading branch information
1 parent
8c75435
commit 9cebfa1
Showing
16 changed files
with
172 additions
and
192 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
- name: Main task for acls | ||
- name: Main task for lines | ||
ansible.builtin.include_tasks: cli.yaml | ||
tags: | ||
- network_cli |
18 changes: 3 additions & 15 deletions
18
tests/integration/targets/ios_line/tests/cli/_populate_config.yaml
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 |
---|---|---|
@@ -1,20 +1,8 @@ | ||
--- | ||
- name: Populate configuration | ||
vars: | ||
lines: | | ||
line con 0 | ||
session-timeout 15 | ||
login authentication limited | ||
escape-character 3 | ||
stopbits 1 | ||
line aux 0 | ||
stopbits 1 | ||
line vty 0 4 | ||
session-timeout 15 | ||
exec-timeout 60 0 | ||
password 7 02050D480809 | ||
login authentication remote | ||
logging synchronous | ||
transport input ssh telnet | ||
lines: "line con 0\n session-timeout 15\n login authentication limited\n escape-character 3\n stopbits 1\n | ||
line aux 0\n stopbits 1\n | ||
line vty 0 4\n session-timeout 15\n exec-timeout 60 0\n password 7 02050D480809\n login authentication remote\n logging synchronous\n transport input ssh telnet" | ||
ansible.netcommon.cli_config: | ||
config: "{{ lines }}" |
23 changes: 4 additions & 19 deletions
23
tests/integration/targets/ios_line/tests/cli/_populate_config_replaced.yaml
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 |
---|---|---|
@@ -1,24 +1,9 @@ | ||
--- | ||
- name: Populate configuration | ||
vars: | ||
lines: | | ||
line con 0 | ||
session-timeout 15 | ||
login authentication limited | ||
escape-character 3 | ||
stopbits 1 | ||
line aux 0 | ||
stopbits 1 | ||
line aux 0 | ||
no exec | ||
transport input ssh | ||
stopbits 1 | ||
line vty 0 4 | ||
session-timeout 15 | ||
exec-timeout 60 0 | ||
password 7 02050D480809 | ||
login authentication remote | ||
logging synchronous | ||
transport input ssh telnet | ||
lines: | ||
"line con 0\n session-timeout 15\n login authentication limited\n escape-character 3\n stopbits 1\n | ||
line aux 0\n stopbits 1\n no exec\n transport input ssh\n stopbits 1\n | ||
line vty 0 4\n session-timeout 15\n exec-timeout 60 0\n password 7 02050D480809\n login authentication remote\n logging synchronous\n transport input ssh telnet" | ||
ansible.netcommon.cli_config: | ||
config: "{{ lines }}" |
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.