Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update template Alcatel AOS: show mac-address-table #1940

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"