Skip to content

Commit fec3dab

Browse files
Enric Perpinyà Pitarchmjbear
andauthored
Update Alcatel AOS: show port-security (#2082)
* adding case no port security configured * adding case for R6 * Modify some whitespace regexes and blank line * Swap some whitespace regex \s* for \s+ in cases where there certainly will be a space * Remove an extra blank line --------- Co-authored-by: Michael Bear <38406045+mjbear@users.noreply.github.com>
1 parent 1d3cbbe commit fec3dab

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

ntc_templates/templates/alcatel_aos_show_port-security.textfsm

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ Value VIOLATION_TYPE (\S+)
88
Value VIOLATION_MAC (\S+)
99
Value PKT_RELAY (\S+)
1010

11-
1211
Start
12+
^\s*Check\s+PortCB\s+on\s+\d+\s*$$
13+
^\s*No\s+Port\s+Security\s+is\s+configured(?:\s+in\s+the\s+system\.)?\s*$$
1314
^Port: -> Continue.Record
1415
^\s*Port:\s*${PORT}\s*$$
1516
^\s*Admin-State\s*:\s*${ADMIN_STATE},$$
16-
^\s*Operation\s*Mode\s*:\s*${OPERATION_MODE},$$
17-
^\s*Max\s*MAC\s*bridged\s*:\s*${MAX_MAC_BRIDGED},$$
18-
^\s*Trap\s*Threshold\s*:\s*${TRAP_THRESHOLD},$$
19-
^\s*Max\s*MAC\s*filtered\s*:\s*${MAX_MAC_FILTERED},$$
17+
^\s*Operation\s+Mode\s*:\s*${OPERATION_MODE},$$
18+
^\s*Max\s+MAC\s+bridged\s*:\s*${MAX_MAC_BRIDGED},$$
19+
^\s*Trap\s+Threshold\s*:\s*${TRAP_THRESHOLD},$$
20+
^\s*Max\s+MAC\s+filtered\s*:\s*${MAX_MAC_FILTERED},$$
2021
^\s*Violation\s*:\s*${VIOLATION_TYPE},$$
21-
^\s*Violating\s*MAC\s*:\s*${VIOLATION_MAC}\s*$$
22+
^\s*Violating\s+MAC\s*:\s*${VIOLATION_MAC}\s*$$
2223
^\s*Pkt-Relay\s*:\s*${PKT_RELAY}$$ -> Record
2324
^(Legend:)?\s+Mac\s+Address:
2425
^\s*[MmAaCc]{3}\s+Address\s+VLAN\s+TYPE\s*$$
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
No Port Security is configured in the system.
2+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
parsed_sample: []

0 commit comments

Comments
 (0)