-
Notifications
You must be signed in to change notification settings - Fork 735
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_gemport_0_ontid_0.textfsm (#…
- Loading branch information
1 parent
f9d7838
commit 3dcf455
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
ntc_templates/templates/huawei_smartax_display_ont_gemport_0_ontid_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,15 @@ | ||
Value Key GEM_PORT (\d+) | ||
Value T_CONT_ID (\d+) | ||
Value SERVICE_TYPE (\S+) | ||
Value ENCRYPT (\S+) | ||
Value UPSTREAM_PQ (\S+) | ||
Value DOWNSTREAM_PQ (\S+) | ||
Value TRAFFIC_TABLE_INDEX (\S+) | ||
|
||
Start | ||
^\s*GEM\s*port\s*T-CONT\s*Service\s*Encrypt\s*Up\s*Down\s*Traffic\s* | ||
^\s*ID\s*ID\s*type\s*PQ\s*PQ\s*table\s*index | ||
^\s+${GEM_PORT}\s+${T_CONT_ID}\s+${SERVICE_TYPE}\s+${ENCRYPT}\s+(-|${UPSTREAM_PQ})\s+(-|${DOWNSTREAM_PQ})\s+(-|${TRAFFIC_TABLE_INDEX}) -> Record | ||
^\s*The\s*number\s*of\s*GEM\s*ports\s*is:\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
11 changes: 11 additions & 0 deletions
11
...ei_smartax/display_ont_gemport_0_ontid_0/huawei_smartax_display_ont_gemport_0_ontid_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,11 @@ | ||
F/S/P: 0/0/0 ONT ID: 5 | ||
------------------------------------------------------------------------------ | ||
GEM port T-CONT Service Encrypt Up Down Traffic | ||
ID ID type PQ PQ table index | ||
------------------------------------------------------------------------------ | ||
126 4 ETHERNET off - adapt - | ||
------------------------------------------------------------------------------ | ||
Notes: Run the display traffic table ip command to query | ||
traffic table configuration | ||
------------------------------------------------------------------------------ | ||
The number of GEM ports is: 1 |
9 changes: 9 additions & 0 deletions
9
...ei_smartax/display_ont_gemport_0_ontid_0/huawei_smartax_display_ont_gemport_0_ontid_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,9 @@ | ||
--- | ||
parsed_sample: | ||
- downstream_pq: "adapt" | ||
encrypt: "off" | ||
gem_port: "126" | ||
service_type: "ETHERNET" | ||
t_cont_id: "4" | ||
traffic_table_index: "" | ||
upstream_pq: "" |