-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated: Huawei smartax display mac address ont 0 1 2 0 (#1846)
- Loading branch information
1 parent
f68dfcc
commit 92fb59f
Showing
12 changed files
with
627 additions
and
12 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
ntc_templates/templates/huawei_smartax_display_mac-address.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,25 @@ | ||
Value SERVICE_PORT_INDEX (\d+) | ||
Value BUNDLE_INDEX (\d+) | ||
Value TYPE (eth|gpon|epon) | ||
Value Required MAC ([0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}) | ||
Value MAC_TYPE (static|dynamic) | ||
Value FSP (\d+\s*\/\d+\s*\/\d+) | ||
Value ONT_ID (\d+) | ||
Value GEM_INDEX (\d+) | ||
Value VLAN_ID (\d+) | ||
|
||
|
||
Start | ||
^\s*It\s*will\s*take\s*some\s*time,\s*please\s*wait... | ||
^\s*- | ||
^\s*SRV-P\s*BUNDLE\s*TYPE\s*MAC\s*MAC\s*TYPE\s*F\s*\/S\s*\/P\s*VPI\s*VCI\s*VLAN\s*ID\s*$$ | ||
^\s*INDEX\s*INDEX\s*$$ -> MACs | ||
^\s*$$ | ||
^. -> Error | ||
|
||
MACs | ||
^\s*(-|${SERVICE_PORT_INDEX})\s*(-|${BUNDLE_INDEX})\s*${TYPE}\s*${MAC}\s*${MAC_TYPE}\s*${FSP}\s*(-|${ONT_ID})\s*(-|${GEM_INDEX})\s*${VLAN_ID} -> Record | ||
^\s*- | ||
^\s*Total:\s*\d+ -> EOF | ||
^\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
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
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
23 changes: 23 additions & 0 deletions
23
tests/huawei_smartax/display_mac-address/huawei_smartax_display_mac-address.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,23 @@ | ||
It will take some time, please wait... | ||
----------------------------------------------------------------------- | ||
SRV-P BUNDLE TYPE MAC MAC TYPE F /S /P VPI VCI VLAN ID | ||
INDEX INDEX | ||
----------------------------------------------------------------------- | ||
1 - gpon aaaa-aaaa-aaaa static 0 /1 /0 1 1 1 | ||
- - eth aaaa-aaaa-aaaa dynamic 0 /1 /1 - - 1 | ||
- - eth aaaa-aaaa-aaaa dynamic 0 /1 /1 - - 1 | ||
- - eth aaaa-aaaa-aaaa dynamic 0 /1 /1 - - 1 | ||
- - eth aaaa-aaaa-aaaa dynamic 0 /1 /1 - - 1 | ||
- - eth aaaa-aaaa-aaaa dynamic 0 /1 /1 - - 1 | ||
- - eth aaaa-aaaa-aaaa dynamic 0 /1 /1 - - 1 | ||
- - eth aaaa-aaaa-aaaa dynamic 0 /1 /1 - - 1 | ||
- - eth aaaa-aaaa-aaaa dynamic 0 /1 /1 - - 1 | ||
- - eth aaaa-aaaa-aaaa dynamic 0 /1 /1 - - 1 | ||
----------------------------------------------------------------------- | ||
Total: 10 | ||
Note: F--Frame, S--Slot, P--Port, F/S/P indicates PW Index for PW, | ||
A--The MAC address is learned or configured on the aggregation | ||
port, | ||
VPI indicates ONT ID for PON, VCI indicates GEM index for GPON, | ||
v/e--vlan/encap, pritag--priority-tagged, | ||
ppp--pppoe, ip--ipoe, ip4--ipv4oe, ip6--ipv6oe |
92 changes: 92 additions & 0 deletions
92
tests/huawei_smartax/display_mac-address/huawei_smartax_display_mac-address.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,92 @@ | ||
--- | ||
parsed_sample: | ||
- bundle_index: "" | ||
fsp: "0 /1 /0" | ||
gem_index: "1" | ||
mac: "aaaa-aaaa-aaaa" | ||
mac_type: "static" | ||
ont_id: "1" | ||
service_port_index: "1" | ||
type: "gpon" | ||
vlan_id: "1" | ||
- bundle_index: "" | ||
fsp: "0 /1 /1" | ||
gem_index: "" | ||
mac: "aaaa-aaaa-aaaa" | ||
mac_type: "dynamic" | ||
ont_id: "" | ||
service_port_index: "" | ||
type: "eth" | ||
vlan_id: "1" | ||
- bundle_index: "" | ||
fsp: "0 /1 /1" | ||
gem_index: "" | ||
mac: "aaaa-aaaa-aaaa" | ||
mac_type: "dynamic" | ||
ont_id: "" | ||
service_port_index: "" | ||
type: "eth" | ||
vlan_id: "1" | ||
- bundle_index: "" | ||
fsp: "0 /1 /1" | ||
gem_index: "" | ||
mac: "aaaa-aaaa-aaaa" | ||
mac_type: "dynamic" | ||
ont_id: "" | ||
service_port_index: "" | ||
type: "eth" | ||
vlan_id: "1" | ||
- bundle_index: "" | ||
fsp: "0 /1 /1" | ||
gem_index: "" | ||
mac: "aaaa-aaaa-aaaa" | ||
mac_type: "dynamic" | ||
ont_id: "" | ||
service_port_index: "" | ||
type: "eth" | ||
vlan_id: "1" | ||
- bundle_index: "" | ||
fsp: "0 /1 /1" | ||
gem_index: "" | ||
mac: "aaaa-aaaa-aaaa" | ||
mac_type: "dynamic" | ||
ont_id: "" | ||
service_port_index: "" | ||
type: "eth" | ||
vlan_id: "1" | ||
- bundle_index: "" | ||
fsp: "0 /1 /1" | ||
gem_index: "" | ||
mac: "aaaa-aaaa-aaaa" | ||
mac_type: "dynamic" | ||
ont_id: "" | ||
service_port_index: "" | ||
type: "eth" | ||
vlan_id: "1" | ||
- bundle_index: "" | ||
fsp: "0 /1 /1" | ||
gem_index: "" | ||
mac: "aaaa-aaaa-aaaa" | ||
mac_type: "dynamic" | ||
ont_id: "" | ||
service_port_index: "" | ||
type: "eth" | ||
vlan_id: "1" | ||
- bundle_index: "" | ||
fsp: "0 /1 /1" | ||
gem_index: "" | ||
mac: "aaaa-aaaa-aaaa" | ||
mac_type: "dynamic" | ||
ont_id: "" | ||
service_port_index: "" | ||
type: "eth" | ||
vlan_id: "1" | ||
- bundle_index: "" | ||
fsp: "0 /1 /1" | ||
gem_index: "" | ||
mac: "aaaa-aaaa-aaaa" | ||
mac_type: "dynamic" | ||
ont_id: "" | ||
service_port_index: "" | ||
type: "eth" | ||
vlan_id: "1" |
8 changes: 8 additions & 0 deletions
8
...rtax/display_mac-address_ont_0_1_2_0/huawei_smartax_display_mac-address_ont_0_1_2_0_2.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,8 @@ | ||
--------------------------------------------------------------- | ||
F/S/P ONTID ONT ONT MAC-ADDRESS VLAN | ||
port-type port-ID | ||
--------------------------------------------------------------- | ||
0/ 1/0 0 WLAN 4 aaaa-aaaa-aaaa - | ||
--------------------------------------------------------------- | ||
Total: 1 | ||
Note: When the ONT port-type is WLAN, the ONT port-ID indicates WLAN SSID index |
8 changes: 8 additions & 0 deletions
8
...rtax/display_mac-address_ont_0_1_2_0/huawei_smartax_display_mac-address_ont_0_1_2_0_2.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,8 @@ | ||
--- | ||
parsed_sample: | ||
- fsp: "0/ 1/0" | ||
mac: "aaaa-aaaa-aaaa" | ||
ont_id: "0" | ||
ont_port_id: "4" | ||
ont_port_type: "WLAN" | ||
vlan: "" |
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
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
86 changes: 86 additions & 0 deletions
86
...ei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_4.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,86 @@ | ||
Command is being executed. Please wait | ||
------------------------------------------------------------------------------ | ||
In port 0/1/0, the total of ONTs are: 37, online: 36 | ||
------------------------------------------------------------------------------ | ||
ONT Run Last Last Last | ||
ID State UpTime DownTime DownCause | ||
------------------------------------------------------------------------------ | ||
0 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
1 online 05/09/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
2 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
3 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
4 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
5 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
6 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
7 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
8 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
9 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
10 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
11 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
12 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
13 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
14 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
15 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
16 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
17 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
18 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
19 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
20 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
21 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
22 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
23 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
24 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
25 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
26 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
27 offline - - - | ||
28 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
29 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
30 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
31 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
32 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
33 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
34 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
35 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
36 online 01/01/2000 01:01:01 01/01/2000 01:01:01 dying-gasp | ||
------------------------------------------------------------------------------ | ||
ONT SN Type Distance Rx/Tx power Description | ||
ID (m) (dBm) | ||
------------------------------------------------------------------------------ | ||
0 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
1 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
2 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
3 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
4 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
5 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
6 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
7 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
8 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
9 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
10 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
11 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
12 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
13 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
14 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
15 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
16 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
17 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
18 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
19 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
20 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
21 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
22 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
23 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
24 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
25 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
26 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
27 AAAAAAAAAAAAAAAA - - -/- AAAA | ||
28 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
29 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
30 AAAAAAAAAAAAAAAA P612E 100 -10.00/1.00 AAAA | ||
31 AAAAAAAAAAAAAAAA A111A-A 100 -10.00/1.00 AAAA | ||
32 AAAAAAAAAAAAAAAA A111A 100 -10.00/1.00 AAAA | ||
33 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
34 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
35 AAAAAAAAAAAAAAAA AA1111A1 100 -10.00/1.00 AAAA | ||
36 AAAAAAAAAAAAAAAA A111A-A 100 -10.00/1.00 AAAA | ||
------------------------------------------------------------------------------ |
Oops, something went wrong.