Skip to content

Commit

Permalink
Fixing template for alcatel aos to support R8.9: `show mac-address-ta…
Browse files Browse the repository at this point in the history
…ble` (#1935)
  • Loading branch information
evilmonkey19 authored Dec 12, 2024
1 parent 9d99991 commit 3aad889
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ 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*Domain\s+Vlan\/SrvcId\[ISId\/vnId\]\s+Mac\s+Address\s+Type\s+Operation\s+Interface\s*$$
^\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
^\s*(Legend:\s+)?Mac\s+Address:
^\s*ID\s+=\s+ISID\/Vnid\/vplsid\s*$$
^\s*$$
^.*$$ -> Error
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ Legend: Mac Address: * = address not valid,
VLAN 1 dd:dd:dd:dd:dd:dd dynamic bridging 1/1/1

Total number of Valid MAC addresses above = 4

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Legend: Mac Address: * = address not valid,
Mac Address: & = duplicate static address,
ID = ISID/Vnid/vplsid

Domain Vlan/SrvcId[:ID] Mac Address Type Operation Interface
------------+----------------------+-------------------+------------------+-------------+-------------------------
VLAN 1 aa:aa:aa:aa:aa:aa dynamic bridging 1/1/1
VLAN 1 bb:bb:bb:bb:bb:bb dynamic bridging 1/1/1
VLAN 1 cc:cc:cc:cc:cc:cc dynamic bridging 1/1/10
VLAN 1 dd:dd:dd:dd:dd:dd dynamic bridging 1/1/1

Total number of Valid MAC addresses above = 4
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
parsed_sample:
- address_not_valid: ""
domain: "VLAN"
interface: "1/1/1"
mac: "aa:aa:aa:aa:aa:aa"
operation: "bridging"
protocol: ""
type: "dynamic"
vlan_id: "1"
- address_not_valid: ""
domain: "VLAN"
interface: "1/1/1"
mac: "bb:bb:bb:bb:bb:bb"
operation: "bridging"
protocol: ""
type: "dynamic"
vlan_id: "1"
- address_not_valid: ""
domain: "VLAN"
interface: "1/1/10"
mac: "cc:cc:cc:cc:cc:cc"
operation: "bridging"
protocol: ""
type: "dynamic"
vlan_id: "1"
- address_not_valid: ""
domain: "VLAN"
interface: "1/1/1"
mac: "dd:dd:dd:dd:dd:dd"
operation: "bridging"
protocol: ""
type: "dynamic"
vlan_id: "1"

0 comments on commit 3aad889

Please sign in to comment.