-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix session_log failure to hide "no_log" data. (#3331)
- Loading branch information
Showing
17 changed files
with
465 additions
and
48 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,4 +1,3 @@ | ||
|
||
cisco1> | ||
cisco1>terminal width 511 | ||
cisco1>terminal length 0 | ||
|
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
17 changes: 17 additions & 0 deletions
17
tests/SLOG/test_session_log_append-cisco881_slog_append.log
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,17 @@ | ||
Initial file contents | ||
|
||
cisco1> | ||
cisco1>terminal width 511 | ||
cisco1>terminal length 0 | ||
cisco1> | ||
cisco1> | ||
cisco1>show ip interface brief | ||
Interface IP-Address OK? Method Status Protocol | ||
FastEthernet0 unassigned YES unset down down | ||
FastEthernet1 unassigned YES unset down down | ||
FastEthernet2 unassigned YES unset down down | ||
FastEthernet3 unassigned YES unset down down | ||
FastEthernet4 10.220.88.20 YES NVRAM up up | ||
Vlan1 unassigned YES unset down down | ||
cisco1> | ||
cisco1>exit |
15 changes: 15 additions & 0 deletions
15
tests/SLOG/test_session_log_append-cisco881_slog_append_compare.log
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 @@ | ||
cisco1> | ||
cisco1>terminal width 511 | ||
cisco1>terminal length 0 | ||
cisco1> | ||
cisco1> | ||
cisco1>show ip interface brief | ||
Interface IP-Address OK? Method Status Protocol | ||
FastEthernet0 unassigned YES unset down down | ||
FastEthernet1 unassigned YES unset down down | ||
FastEthernet2 unassigned YES unset down down | ||
FastEthernet3 unassigned YES unset down down | ||
FastEthernet4 10.220.88.20 YES NVRAM up up | ||
Vlan1 unassigned YES unset down down | ||
cisco1> | ||
cisco1>exit |
22 changes: 22 additions & 0 deletions
22
tests/SLOG/test_session_log_bytesio-cisco881_slog_compare.log
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,22 @@ | ||
|
||
terminal width 511 | ||
cisco1> | ||
cisco1>terminal width 511 | ||
cisco1>terminal length 0 | ||
terminal length 0 | ||
cisco1> | ||
|
||
cisco1> | ||
|
||
cisco1>show ip interface brief | ||
show ip interface brief | ||
Interface IP-Address OK? Method Status Protocol | ||
FastEthernet0 unassigned YES unset down down | ||
FastEthernet1 unassigned YES unset down down | ||
FastEthernet2 unassigned YES unset down down | ||
FastEthernet3 unassigned YES unset down down | ||
FastEthernet4 10.220.88.20 YES NVRAM up up | ||
Vlan1 unassigned YES unset down down | ||
cisco1> | ||
|
||
cisco1>exit |
15 changes: 15 additions & 0 deletions
15
tests/SLOG/test_session_log_custom_session_log-cisco881_slog.log
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 @@ | ||
cisco1> | ||
cisco1>terminal width 511 | ||
cisco1>******** | ||
cisco1> | ||
cisco1> | ||
Testing password and secret replacement | ||
This is my first secret ******** | ||
This is my second secret ******** | ||
This is my third secret ******** | ||
This is my super secret ******** | ||
|
||
!Testing send_command() and send_command_timing() filtering | ||
cisco1>******** | ||
cisco1>******** | ||
cisco1> |
Oops, something went wrong.