-
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.
Added template: Huawei SmartAX display ont port state 0 1 eth-state (#…
- Loading branch information
1 parent
d39944b
commit f54d445
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
ntc_templates/templates/huawei_smartax_display_ont_port_state_0_1_eth-state.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,14 @@ | ||
Value Key ONT_ID (\d+) | ||
Value ONT_PORT_ID (\d+) | ||
Value ONT_PORT_TYPE (\S+) | ||
Value SPEED_MBPS (\S+) | ||
Value DUPLEX (\S+) | ||
Value LINK_STATE (up|down) | ||
Value RING_STATUS (\S+) | ||
|
||
Start | ||
^\s+ONT-ID\s+ONT\s*ONT\s*Speed\(Mbps\)\s*Duplex\s*LinkState\s*RingStatus\s*$$ | ||
^\s+port-ID\s*Port-type\s*$$ | ||
^\s+${ONT_ID}\s+${ONT_PORT_ID}\s+${ONT_PORT_TYPE}\s*(-|${SPEED_MBPS})\s*(-|${DUPLEX})\s*${LINK_STATE}\s*${RING_STATUS} -> Record | ||
^\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
7 changes: 7 additions & 0 deletions
7
...play_ont_port_state_0_1_eth-state/huawei_smartax_display_ont_port_state_0_1_eth-state.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,7 @@ | ||
-------------------------------------------------------------------------- | ||
ONT-ID ONT ONT Speed(Mbps) Duplex LinkState RingStatus | ||
port-ID Port-type | ||
-------------------------------------------------------------------------- | ||
1 1 GE 1000 full up noloop | ||
1 2 GE - - down noloop | ||
-------------------------------------------------------------------------- |
16 changes: 16 additions & 0 deletions
16
...play_ont_port_state_0_1_eth-state/huawei_smartax_display_ont_port_state_0_1_eth-state.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,16 @@ | ||
--- | ||
parsed_sample: | ||
- duplex: "full" | ||
link_state: "up" | ||
ont_id: "1" | ||
ont_port_id: "1" | ||
ont_port_type: "GE" | ||
ring_status: "noloop" | ||
speed_mbps: "1000" | ||
- duplex: "" | ||
link_state: "down" | ||
ont_id: "1" | ||
ont_port_id: "2" | ||
ont_port_type: "GE" | ||
ring_status: "noloop" | ||
speed_mbps: "" |