-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5e3e3f
commit f1f6b61
Showing
4 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
7 changes: 6 additions & 1 deletion
7
ntc_templates/templates/alcatel_aos_show_port-security.textfsm
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,18 +1,23 @@ | ||
Value PORT ((\d+\/?)+) | ||
Value OPERATION_MODE (\S+) | ||
Value ADMIN_STATE (\S+) | ||
Value MAX_MAC_BRIDGED (\d+) | ||
Value TRAP_THRESHOLD (\S+) | ||
Value MAX_MAC_FILTERED (\d+) | ||
Value VIOLATION_TYPE (\S+) | ||
Value VIOLATION_MAC (\S+) | ||
Value PKT_RELAY (\S+) | ||
|
||
|
||
Start | ||
^\s*Port:\s*${PORT}$$ | ||
^\s*Admin-State\s*:\s*${ADMIN_STATE},$$ | ||
^\s*Operation\s*Mode\s*:\s*${OPERATION_MODE},$$ | ||
^\s*Max\s*MAC\s*bridged\s*:\s*${MAX_MAC_BRIDGED},$$ | ||
^\s*Trap\s*Threshold\s*:\s*${TRAP_THRESHOLD},$$ | ||
^\s*Max\s*MAC\s*filtered\s*:\s*${MAX_MAC_FILTERED},$$ | ||
^\s*Violation\s*:\s*${VIOLATION_TYPE},$$ | ||
^\s*Violating\s*MAC\s*:\s*${VIOLATION_MAC}\s*$$ -> Record | ||
^\s*Violating\s*MAC\s*:\s*${VIOLATION_MAC}\s*$$ | ||
^\s*Pkt-Relay\s*:\s*${PKT_RELAY}$$ -> Record | ||
^\s* | ||
^.*$$ -> Error |
11 changes: 3 additions & 8 deletions
11
tests/alcatel_aos/show_port-security/alcatel_aos_show_port-security.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
17 changes: 17 additions & 0 deletions
17
tests/alcatel_aos/show_port-security/alcatel_aos_show_port-security_2.raw
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 @@ | ||
Legend: Mac Address: * = address not valid, | ||
|
||
Mac Address: & = duplicate static address, | ||
|
||
|
||
Port: 1/1/1 | ||
Admin-State : DISABLED, | ||
Operation Mode : DISABLED, | ||
Max MAC bridged : 1, | ||
Trap Threshold : DISABLED, | ||
Violation : RESTRICT, | ||
Max MAC filtered : 5, | ||
Violating MAC : NULL, | ||
Pkt-Relay : DISABLED | ||
|
||
MAC VLAN MAC TYPE OPERATION | ||
-------------------------+--------+-----------------+----------------- |
11 changes: 11 additions & 0 deletions
11
tests/alcatel_aos/show_port-security/alcatel_aos_show_port-security_2.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,11 @@ | ||
--- | ||
parsed_sample: | ||
- admin_state: "DISABLED" | ||
max_mac_bridged: "1" | ||
max_mac_filtered: "5" | ||
operation_mode: "DISABLED" | ||
pkt_relay: "DISABLED" | ||
port: "1/1/1" | ||
trap_threshold: "DISABLED" | ||
violation_mac: "NULL," | ||
violation_type: "RESTRICT" |