From 068a44a193eeecf9ce28233ae6c70f8e8a3f6aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enric=20Perpiny=C3=A0=20Pitarch?= Date: Fri, 20 Dec 2024 15:41:26 +0100 Subject: [PATCH] Updating template for Huawei SmartAX: `display ont info summary ont` (#1943) --- ...artax_display_ont_info_summary_ont.textfsm | 20 ++- ...martax_display_ont_info_summary_sn.textfsm | 20 ++- ...i_smartax_display_ont_info_summary_ont.yml | 92 ++++++++--- ...smartax_display_ont_info_summary_ont_2.yml | 4 +- ...smartax_display_ont_info_summary_ont_3.yml | 8 +- ...smartax_display_ont_info_summary_ont_4.yml | 148 +++++++++++++----- ...smartax_display_ont_info_summary_ont_5.raw | 28 ++++ ...smartax_display_ont_info_summary_ont_5.yml | 26 +++ 8 files changed, 270 insertions(+), 76 deletions(-) create mode 100644 tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_5.raw create mode 100644 tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_5.yml diff --git a/ntc_templates/templates/huawei_smartax_display_ont_info_summary_ont.textfsm b/ntc_templates/templates/huawei_smartax_display_ont_info_summary_ont.textfsm index 127c21d9c8..929d26629f 100644 --- a/ntc_templates/templates/huawei_smartax_display_ont_info_summary_ont.textfsm +++ b/ntc_templates/templates/huawei_smartax_display_ont_info_summary_ont.textfsm @@ -1,17 +1,23 @@ +Value Filldown PORT (\S+) Value Key ONT_ID (\d+) -Value RUN_STATE (\w+) +Value Required RUN_STATE (\w+) Value LAST_UPTIME (\S+\s*\S+) Value LAST_DOWNTIME (\S+\s*\S+) Value LAST_DOWNCAUSE (\S+) Start - ^\s+- - ^\s+ONT\s+Run\s+Last\s+Last\s+Last - ^\s+ID\s+State\s+UpTime\s+DownTime\s+DownCause -> ONTs + ^\s*Command\s*is\s*being\s*executed\.\s*Please\s*wait\s*$$ + ^\s*- + ^\s+ID\s+State\s+UpTime\s+DownTime\s+DownCause\s*$$ -> ONTs + ^\s+ONT\s+Run\s+Last\s+Last\s+Last\s*$$ + ^\s*In\s*port\s*${PORT},\s*the\s*total\s*of\s*ONTs\s*are:\s*\d+,\s*online:\s*\d+\s*$$ + ^\s*\d+\s*\S+\s*(-|\S+)\s*(-|\d+)\s+(-?\d+\.\d+\/-?\d+\.\d+|\S+)\s+(\S.+\S)\s*$$ + ^\s+ID\s+\(m\)\s+\(dBm\) + ^\s*$$ + ^. -> Error ONTs + ^\s*-+\s*$$ ^\s+${ONT_ID}\s+${RUN_STATE}\s+(-|${LAST_UPTIME})\s*(-|${LAST_DOWNTIME})\s+(-|${LAST_DOWNCAUSE}) -> Record - ^\s+- - ^\s+ONT\s+SN\s+Type\s+Distance\s+Rx\/Tx\s+power\s+Description - ^\s+ID\s+\(m\)\s+\(dBm\) -> EOF + ^\s+ONT\s+SN\s+Type\s+Distance\s+Rx\/Tx\s+power\s+Description\s*$$ -> Start ^. -> Error diff --git a/ntc_templates/templates/huawei_smartax_display_ont_info_summary_sn.textfsm b/ntc_templates/templates/huawei_smartax_display_ont_info_summary_sn.textfsm index e3b5950ad2..b4b9aebb33 100644 --- a/ntc_templates/templates/huawei_smartax_display_ont_info_summary_sn.textfsm +++ b/ntc_templates/templates/huawei_smartax_display_ont_info_summary_sn.textfsm @@ -2,16 +2,24 @@ Value Key ONT_ID (\d+) Value SERIAL_NUMBER (\w+) Value ONT_MODEL_TYPE (\S+) Value DISTANCE_M (\d+|-) -Value RX_TX_POWER_DBM (-?\d+\.\d+\/-?\d+\.\d+|\S+) -Value DESCRIPTION (\S+) +Value RX_POWER_DBM (-?\d+\.\d+) +Value TX_POWER_DBM (-?\d+\.\d+) +Value DESCRIPTION (\S.+\S) Start + ^\s*Command\s*is\s*being\s*executed\.\s*Please\s*wait\s*$$ + ^\s*In\s*port\s*\S+,\s*the\s*total\s*of\s*ONTs\s*are:\s*\d+,\s*online:\s*\d+\s*$$ + ^\s*ONT\s*Run\s*Last\s*Last\s*Last\s*$$ + ^\s*ID\s*State\s*UpTime\s*DownTime\s*DownCause\s*$$ + ^\s*\d+\s*\S+\s*(-|\S+\s\S+)\s*(-|\S+\s*\S+)\s*\S+\s*$$ ^\s+- ^\s+ONT\s+SN\s+Type\s+Distance\s+Rx\/Tx\s+power\s+Description ^\s+ID\s+\(m\)\s+\(dBm\) -> SNs - -SNs - ^\s+${ONT_ID}\s+${SERIAL_NUMBER}\s+${ONT_MODEL_TYPE}\s+${DISTANCE_M}\s+${RX_TX_POWER_DBM}\s+${DESCRIPTION} -> Record - ^\s+- + ^\s+-\s*$$ ^\s*$$ ^. -> Error + +SNs + ^\s+-\s*$$ + ^\s+${ONT_ID}\s+${SERIAL_NUMBER}\s+${ONT_MODEL_TYPE}\s+${DISTANCE_M}\s+(-|${RX_POWER_DBM})\/(-|${TX_POWER_DBM})\s+${DESCRIPTION} -> Record + ^\s*$$ -> Start diff --git a/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont.yml b/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont.yml index 40f15af8ee..ca22cdf786 100644 --- a/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont.yml +++ b/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont.yml @@ -7,9 +7,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "0" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -17,9 +19,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "1" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -27,9 +31,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "2" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -37,9 +43,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "3" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -47,9 +55,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "4" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -57,9 +67,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "5" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -67,9 +79,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "6" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -77,9 +91,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "7" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -87,9 +103,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "8" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -97,9 +115,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "9" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -107,9 +127,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "10" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -117,9 +139,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "11" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -127,9 +151,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "12" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -137,9 +163,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "13" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -147,9 +175,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "14" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -157,9 +187,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "15" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -167,9 +199,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "16" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -177,9 +211,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "17" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -187,9 +223,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "18" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -197,9 +235,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "19" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -207,9 +247,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "20" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -217,9 +259,11 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "21" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" - description: "AB12" distance_m: "100" last_downcause: "LOSi/LOBi" @@ -227,6 +271,8 @@ parsed_sample: last_uptime: "2000-01-01 00:00:00" ont_id: "22" ont_model_type: "AB1234C5" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.12/2.03" + rx_power_dbm: "-10.12" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.03" diff --git a/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_2.yml b/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_2.yml index 63cbd4bed9..afa6b38660 100644 --- a/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_2.yml +++ b/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_2.yml @@ -7,6 +7,8 @@ parsed_sample: last_uptime: "2000-01-06 07:43:46" ont_id: "0" ont_model_type: "EG8145X6-10" + port: "0/2/11" run_state: "online" - rx_tx_power_dbm: "-7.92/2.21" + rx_power_dbm: "-7.92" serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.21" diff --git a/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_3.yml b/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_3.yml index c5caa20ed0..20656a0006 100644 --- a/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_3.yml +++ b/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_3.yml @@ -7,9 +7,11 @@ parsed_sample: last_uptime: "1/1/2000 00:00:00" ont_id: "0" ont_model_type: "P612E" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-22.84/2.12" + rx_power_dbm: "-22.84" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "2.12" - description: "P871E" distance_m: "-" last_downcause: "LOSi/LOBi" @@ -17,6 +19,8 @@ parsed_sample: last_uptime: "1/1/2000 00:00:00" ont_id: "1" ont_model_type: "P871E-G" + port: "0/1/0" run_state: "offline" - rx_tx_power_dbm: "-/-" + rx_power_dbm: "" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "" diff --git a/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_4.yml b/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_4.yml index ac1184872e..c69b450f9f 100644 --- a/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_4.yml +++ b/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_4.yml @@ -7,9 +7,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "0" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -17,9 +19,11 @@ parsed_sample: last_uptime: "05/09/2000 01:01:01" ont_id: "1" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -27,9 +31,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "2" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -37,9 +43,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "3" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -47,9 +55,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "4" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -57,9 +67,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "5" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -67,9 +79,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "6" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -77,9 +91,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "7" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -87,9 +103,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "8" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -97,9 +115,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "9" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -107,9 +127,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "10" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -117,9 +139,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "11" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -127,9 +151,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "12" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -137,9 +163,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "13" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -147,9 +175,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "14" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -157,9 +187,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "15" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -167,9 +199,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "16" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -177,9 +211,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "17" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -187,9 +223,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "18" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -197,9 +235,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "19" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -207,9 +247,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "20" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -217,9 +259,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "21" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -227,9 +271,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "22" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -237,9 +283,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "23" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -247,9 +295,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "24" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -257,9 +307,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "25" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -267,9 +319,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "26" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "-" last_downcause: "" @@ -277,9 +331,11 @@ parsed_sample: last_uptime: "" ont_id: "27" ont_model_type: "-" + port: "0/1/0" run_state: "offline" - rx_tx_power_dbm: "-/-" + rx_power_dbm: "" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -287,9 +343,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "28" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -297,9 +355,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "29" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -307,9 +367,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "30" ont_model_type: "P612E" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -317,9 +379,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "31" ont_model_type: "A111A-A" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -327,9 +391,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "32" ont_model_type: "A111A" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -337,9 +403,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "33" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -347,9 +415,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "34" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -357,9 +427,11 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "35" ont_model_type: "AA1111A1" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" - description: "AAAA" distance_m: "100" last_downcause: "dying-gasp" @@ -367,6 +439,8 @@ parsed_sample: last_uptime: "01/01/2000 01:01:01" ont_id: "36" ont_model_type: "A111A-A" + port: "0/1/0" run_state: "online" - rx_tx_power_dbm: "-10.00/1.00" + rx_power_dbm: "-10.00" serial_number: "AAAAAAAAAAAAAAAA" + tx_power_dbm: "1.00" diff --git a/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_5.raw b/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_5.raw new file mode 100644 index 0000000000..49cc7dffbf --- /dev/null +++ b/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_5.raw @@ -0,0 +1,28 @@ + Command is being executed. Please wait + ------------------------------------------------------------------------------ + In port 0/2/11, the total of ONTs are: 1, online: 1 + ------------------------------------------------------------------------------ + ONT Run Last Last Last + ID State UpTime DownTime DownCause + ------------------------------------------------------------------------------ + 0 online 2000-01-06 07:43:46 - - + ------------------------------------------------------------------------------ + ONT SN Type Distance Rx/Tx power Description + ID (m) (dBm) + ------------------------------------------------------------------------------ + 0 1234567890ABCDEF EG8145X6-10 1 -7.92/2.21 huawei_ont_0 + ------------------------------------------------------------------------------ + + ------------------------------------------------------------------------------ + In port 0/2/12, the total of ONTs are: 1, online: 1 + ------------------------------------------------------------------------------ + ONT Run Last Last Last + ID State UpTime DownTime DownCause + ------------------------------------------------------------------------------ + 0 online 2000-01-06 07:44:46 - - + ------------------------------------------------------------------------------ + ONT SN Type Distance Rx/Tx power Description + ID (m) (dBm) + ------------------------------------------------------------------------------ + 0 AAAAAAAAAAAAAAAA EG8145X6-10 1 -7.92/2.21 huawei_ont_1 + ------------------------------------------------------------------------------ diff --git a/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_5.yml b/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_5.yml new file mode 100644 index 0000000000..01e5866c6f --- /dev/null +++ b/tests/huawei_smartax/display_ont_info_summary_ont/huawei_smartax_display_ont_info_summary_ont_5.yml @@ -0,0 +1,26 @@ +--- +parsed_sample: + - description: "huawei_ont_0" + distance_m: "1" + last_downcause: "" + last_downtime: "" + last_uptime: "2000-01-06 07:43:46" + ont_id: "0" + ont_model_type: "EG8145X6-10" + port: "0/2/11" + run_state: "online" + rx_power_dbm: "-7.92" + serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.21" + - description: "huawei_ont_0" + distance_m: "1" + last_downcause: "" + last_downtime: "" + last_uptime: "2000-01-06 07:44:46" + ont_id: "0" + ont_model_type: "EG8145X6-10" + port: "0/2/12" + run_state: "online" + rx_power_dbm: "-7.92" + serial_number: "1234567890ABCDEF" + tx_power_dbm: "2.21"