-
Notifications
You must be signed in to change notification settings - Fork 724
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Template: huawei_smartax_display_mac-address_ont_0_1_2_0 (#1834)
- Loading branch information
1 parent
0c92f5f
commit e5a5119
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
ntc_templates/templates/huawei_smartax_display_mac-address_ont_0_1_2_0.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Value FSP (\d+\/\s*\d+\/\d+) | ||
Value ONT_ID (\d+) | ||
Value ONT_PORT_TYPE (\S+) | ||
Value ONT_PORT_ID (\d+) | ||
Value MAC (\S+) | ||
Value VLAN (\d+) | ||
|
||
Start | ||
^\s*- | ||
^\s*F\/S\/P\s+ONTID\s+ONT\s+ONT\s+MAC-ADDRESS\s+VLAN\s*$$ | ||
^\s*port-type\s+port-ID\s*$$ -> Macs | ||
^\s*$$ | ||
^. -> Error | ||
|
||
Macs | ||
^\s*${FSP}\s+${ONT_ID}\s+${ONT_PORT_TYPE}\s+${ONT_PORT_ID}\s+${MAC}\s+${VLAN}\s*$$ -> Record | ||
^\s*- | ||
^\s*Total:\s*\d+ | ||
^\s*$$ | ||
^. -> Error |
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
9 changes: 9 additions & 0 deletions
9
...martax/display_mac-address_ont_0_1_2_0/huawei_smartax_display_mac-address_ont_0_1_2_0.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,9 @@ | ||
--------------------------------------------------------------- | ||
F/S/P ONTID ONT ONT MAC-ADDRESS VLAN | ||
port-type port-ID | ||
--------------------------------------------------------------- | ||
0/ 2/6 2 ETH 1 805e-0c5c-4277 80 | ||
0/ 2/6 2 ETH 1 84a9-3845-d603 1003 | ||
0/ 2/6 2 ETH 2 0026-73f9-5a63 1003 | ||
--------------------------------------------------------------- | ||
Total: 3 |
20 changes: 20 additions & 0 deletions
20
...martax/display_mac-address_ont_0_1_2_0/huawei_smartax_display_mac-address_ont_0_1_2_0.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,20 @@ | ||
--- | ||
parsed_sample: | ||
- fsp: "0/ 2/6" | ||
mac: "805e-0c5c-4277" | ||
ont_id: "2" | ||
ont_port_id: "1" | ||
ont_port_type: "ETH" | ||
vlan: "80" | ||
- fsp: "0/ 2/6" | ||
mac: "84a9-3845-d603" | ||
ont_id: "2" | ||
ont_port_id: "1" | ||
ont_port_type: "ETH" | ||
vlan: "1003" | ||
- fsp: "0/ 2/6" | ||
mac: "0026-73f9-5a63" | ||
ont_id: "2" | ||
ont_port_id: "2" | ||
ont_port_type: "ETH" | ||
vlan: "1003" |