Skip to content

Commit

Permalink
Update template Alcatel AOS: show mac-address-table (#1940)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilmonkey19 authored Dec 19, 2024
1 parent df99b8e commit 5222ab9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Value INTERFACE (\S+)
Start
^\s+Vlan\s+Mac\s+Address\s+Type\s+Protocol\s+Operation\s+Interface\s+$$
^\s*-+\+
^\s*${ADDRESS_NOT_VALID}${VLAN_ID}\s+${MAC}\s+${TYPE}\s+(---|${PROTOCOL})\s+${OPERATION}\s+${INTERFACE}\s*$$ -> Record
^\s*(?:${ADDRESS_NOT_VALID}\s*)?${VLAN_ID}\s+${MAC}\s+${TYPE}\s+(---|${PROTOCOL})\s+${OPERATION}\s+${INTERFACE}\s*$$ -> Record
^\s*Domain\s+Vlan\/SrvcId\[(ISId\/vnId|:ID)\]\s+Mac\s+Address\s+Type\s+Operation\s+Interface\s*$$
^\s*${DOMAIN}\s+${VLAN_ID}\s+${MAC}\s+${TYPE}\s+${OPERATION}\s+${INTERFACE}\s*$$ -> Record
^\s*Total\s+number\s+of\s+Valid\s+MAC\s+addresses\s+above\s+=\s+\d+\s*$$ -> Record
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ Legend: Mac Address: * = address not valid

Vlan Mac Address Type Protocol Operation Interface
------+-------------------+--------------+-----------+------------+-----------
*1 aa:aa:aa:aa:aa:aa permanent --- bridging 1/1
* 1 aa:aa:aa:aa:aa:aa permanent --- bridging 1/1
2 bb:bb:bb:bb:bb:bb learned --- bridging 1/1
3 cc:cc:cc:cc:cc:cc learned --- bridging 1/1
4 dd:dd:dd:dd:dd:dd learned --- bridging 1/1
4 dd:dd:dd:dd:dd:dd learned --- bridging 1/1
* 999 ee:ee:ee:ee:ee:ee permanent 0 bridging 1/11

Total number of Valid MAC addresses above = 4
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,11 @@ parsed_sample:
protocol: ""
type: "learned"
vlan_id: "4"
- address_not_valid: "*"
domain: ""
interface: "1/11"
mac: "ee:ee:ee:ee:ee:ee"
operation: "bridging"
protocol: "0"
type: "permanent"
vlan_id: "999"

0 comments on commit 5222ab9

Please sign in to comment.