diff --git a/ntc_templates/templates/huawei_smartax_display_ont_snmp-profile_0_all.textfsm b/ntc_templates/templates/huawei_smartax_display_ont_snmp-profile_0_all.textfsm new file mode 100644 index 0000000000..3c81aab171 --- /dev/null +++ b/ntc_templates/templates/huawei_smartax_display_ont_snmp-profile_0_all.textfsm @@ -0,0 +1,9 @@ +Value ONT_ID (\d+) +Value SNMP_PROFILE_ID (\d+) +Value SNMP_PROFILE_NAME (\S+) + +Start + ^\s*ONT\s*ID\s*SNMP\s*profile\s*ID\s*SNMP\s*profile\s*name\s* + ^\s*${ONT_ID}\s*${SNMP_PROFILE_ID}\s*${SNMP_PROFILE_NAME} + ^\s* + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index a359449c68..eedcbd92c9 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -636,6 +636,7 @@ huawei_smartax_display_ont_info_summary_ont.textfsm:huawei_smartax_display_ont_i huawei_smartax_display_ont_info_0_1_2.textfsm:huawei_smartax_display_ont_info_description.textfsm, .*, huawei_smartax, di[[splay]] ont i[[nfo]] (\d+\s*|\d+ \d+ \d+\s*) *$ huawei_smartax_display_ont_port_vlan_0_1_byvlan_0.textfsm, .*, huawei_smartax, di[[splay]] ont p[[ort]] v[[lan]] \d+ \d+ byvlan \d+ huawei_smartax_display_ont_optical-info_0_all.textfsm, .*, huawei_smartax, di[[splay]] ont o[[ptical-info]] \d+ all +huawei_smartax_display_ont_snmp-profile_0_all.textfsm, .*, huawei_smartax, di[[splay]] ont s[[nmp-profile]] \d+ all huawei_smartax_display_ont_gemport_0_ontid_0.textfsm, .*, huawei_smartax, di[[splay]] ont g[[emport]] \d+ ontid \d+\s* huawei_smartax_display_sysman_service_state.textfsm, .*, huawei_smartax, di[[splay]] sysman s[[ervice]] s[[tate]] huawei_smartax_display_board_serial-number.textfsm, .*, huawei_smartax, di[[splay]] bo[[ard]] s[[erial-number]]\s* diff --git a/tests/huawei_smartax/display_ont_snmp-profile_0_all/huawei_smartax_display_ont_snmp-profile_0_all.raw b/tests/huawei_smartax/display_ont_snmp-profile_0_all/huawei_smartax_display_ont_snmp-profile_0_all.raw new file mode 100644 index 0000000000..09d2030749 --- /dev/null +++ b/tests/huawei_smartax/display_ont_snmp-profile_0_all/huawei_smartax_display_ont_snmp-profile_0_all.raw @@ -0,0 +1,5 @@ + -------------------------------------------------------------------- + ONT ID SNMP profile ID SNMP profile name + -------------------------------------------------------------------- + 1 1 snmp-profile_1 + -------------------------------------------------------------------- diff --git a/tests/huawei_smartax/display_ont_snmp-profile_0_all/huawei_smartax_display_ont_snmp-profile_0_all.yml b/tests/huawei_smartax/display_ont_snmp-profile_0_all/huawei_smartax_display_ont_snmp-profile_0_all.yml new file mode 100644 index 0000000000..87a523196b --- /dev/null +++ b/tests/huawei_smartax/display_ont_snmp-profile_0_all/huawei_smartax_display_ont_snmp-profile_0_all.yml @@ -0,0 +1,5 @@ +--- +parsed_sample: + - ont_id: "1" + snmp_profile_id: "1" + snmp_profile_name: "snmp-profile_1"