Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
1c181cd
Add support for the Huawei OLT display version command. Command + Tests
evilmonkey19 Feb 28, 2024
869484e
Added support for command huawei olt display sysuptime. Command + tests
evilmonkey19 Feb 28, 2024
ed8b8d3
Adding support for huawei olt display temperature command
evilmonkey19 Feb 28, 2024
58f9ca9
Added support for huawei olt display mem command
evilmonkey19 Feb 28, 2024
94dc25c
Adding cpu usage support for huawei OLT
evilmonkey19 Feb 29, 2024
4944c13
Small fix in in the huawei olt command. Use d (number) instead of S (…
evilmonkey19 Feb 29, 2024
53964f0
WIP giving support for huawei OLT display ont info by-sn
evilmonkey19 Feb 29, 2024
73a698c
fixed small bug in huawei_olt_display_version
evilmonkey19 Mar 4, 2024
58c8ac1
Huawei OLT display ont info by-sn done
evilmonkey19 Mar 5, 2024
7dd59a8
Merge pull request #1 from networktocode/master
evilmonkey19 Mar 5, 2024
9a0c9c0
Textfsm done
evilmonkey19 Mar 5, 2024
906b631
Merge branch 'cpu_usage_pending' into huawei_olt_display_version
evilmonkey19 Mar 5, 2024
cdb8dd9
Added support for huawei_olt_display_ont_info
evilmonkey19 Mar 5, 2024
484e617
Huawei_olt_display_ont_info ongoing
evilmonkey19 Mar 6, 2024
bdb9f87
tests fixed. Final commit :D
evilmonkey19 Mar 7, 2024
22724d8
Changed name from huawei_olt to huawei_smartax (in netmiko there is h…
evilmonkey19 Mar 7, 2024
378ad84
Fixed some minor bugs and finally tested on a real machine (and in pr…
evilmonkey19 Mar 7, 2024
fd35293
Added command `display ont info summary` for huawei smartax
evilmonkey19 Mar 8, 2024
f847b43
fixed a small test with the command `display ont info summary`
evilmonkey19 Mar 8, 2024
bd4f441
Update ntc_templates/templates/huawei_smartax_display_ont_info_fsp.te…
evilmonkey19 Mar 8, 2024
e201ef9
Update ntc_templates/templates/huawei_smartax_display_ont_info_summar…
evilmonkey19 Mar 8, 2024
b933972
Update ntc_templates/templates/huawei_smartax_display_ont_info_by-sn_…
evilmonkey19 Mar 8, 2024
8d6c393
WIP
evilmonkey19 Mar 12, 2024
04885d1
fixed with SERIAL_NUMBER
evilmonkey19 Mar 12, 2024
daf430d
Merge branch 'huawei_olt_display_version' into huawei_smartax_display…
evilmonkey19 Mar 12, 2024
816e6fd
Huawei smartax display board serial-number command done
evilmonkey19 Mar 12, 2024
e73495d
huawei_smartax_display_ont_autofind: Done
evilmonkey19 Mar 13, 2024
cba71aa
added huawei_smartax_display_port_info
evilmonkey19 Mar 14, 2024
d256273
ready for code review
evilmonkey19 Mar 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
Value FSP (\d+\/\d+\/\d+)
Value MIN_DISTANCE_KM (\d+)
Value MAX_DISTANCE_KM (\d+)
Value MAX_GUARANTEED_BANDWIDTH_KBPS (\d*)
Value LEFT_GUARANTEED_BANDWIDTH_KBPS (\d*)
Value NUMBER_OF_T_CONTS (\d+)
Value AUTOFIND (Enable|Disable)
Value FEC_CHECK (Enable|Disable)
Value ADMIN_STATE (\w+)
Value ONT_ENCRYPTION_KEY_SWITCHING_INTERVAL_M (\d+)
Value PON_ID_SWITCH (Disable|Enable)
Value PON_ID_IDENTIFIER (\d+)
Value JUMBO_FRAME_SWITCH (Disable|Enable)
Value PORT_MTU_BYTES (\d+)
Value SURPLUS_BANDWIDTH_ASSIGNMENT (Enable|Disable)
Value BEST_EFFORT_BANDWIDTH_ASSIGNMENT (\w*)
Value TRAFFIC_ALARM_PROFILE_ID (\w*)
Value ONT_ONLINE_POWER_THRESHOLD_DBM (\w*)
Value LOW_LATENCY (yes|no)
Value MULTICHANNEL_LOW_LATENCY (Enable|Disable)
Value OPTICAL_MODULE_WORK_MODE (\w*)
Value CHANNEL_TYPE (\w*)
Value ONLINE_ONT_NUMBER_THRESHOLD (Enable|Disable)

Start
^\s*F\/S\/P\s*${FSP}
^\s*Min\s*distance\(km\)\s*${MIN_DISTANCE_KM}
^\s*Max\s*distance\(km\)\s*${MAX_DISTANCE_KM}
^\s*Max\s*guaranteed\s*bandwidth\(kbps\)\s*${MAX_GUARANTEED_BANDWIDTH_KBPS}
^\s*Left\s*guaranteed\s*bandwidth\(kbps\)\s*${LEFT_GUARANTEED_BANDWIDTH_KBPS}
^\s*Number\s*of\s*T-CONTs\s*${NUMBER_OF_T_CONTS}
^\s*Autofind\s*${AUTOFIND}
^\s*FEC\s*check\s*${FEC_CHECK}
^\s*Admin\s*State\s*${ADMIN_STATE}
^\s*ONT\s*encryption\s*key\s*switching\s*interval\(m\)\s*${ONT_ENCRYPTION_KEY_SWITCHING_INTERVAL_M}
^\s*PON-ID\s*switch\s*${PON_ID_SWITCH}
^\s*PON-ID\s*identifier\s*${PON_ID_IDENTIFIER}
^\s*Jumbo\s*frame\s*switch\s*${JUMBO_FRAME_SWITCH}
^\s*Port\s*MTU\(bytes\)\s*${PORT_MTU_BYTES}
^\s*Surplus\s*bandwidth\s*assignment\s*${SURPLUS_BANDWIDTH_ASSIGNMENT}
^\s*Best-effort\s*bandwidth\s*assignment\s*${BEST_EFFORT_BANDWIDTH_ASSIGNMENT}
^\s*Traffic\s*alarm-profile\s*ID\s*${TRAFFIC_ALARM_PROFILE_ID}
^\s*ONT\s*online\s*power\s*threshold\(dBm\)\s*${ONT_ONLINE_POWER_THRESHOLD_DBM}
^\s*Low-latency\s*${LOW_LATENCY}
^\s*Multichannel\s*low\s*latency\s*${MULTICHANNEL_LOW_LATENCY}
^\s*Optical\s*module\s*work\s*mode\s*${OPTICAL_MODULE_WORK_MODE}
^\s*Channel\w*\s*Information\s*
^\s*Channel\s*Type\s*${CHANNEL_TYPE}
^\s*Online\s*ONT\s*number\s*threshold\s*${ONLINE_ONT_NUMBER_THRESHOLD}
^\s*
^. -> Error
2 changes: 2 additions & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,8 @@ hp_procurve_show_vlans.textfsm, .*, hp_procurve, sh[[ow]] vl[[ans]]
hp_procurve_show_arp.textfsm, .*, hp_procurve, sh[[ow]] ar[[p]]
hp_procurve_show_ip.textfsm, .*, hp_procurve, sh[[ow]] ip

huawei_smartax_display_port_info.textfsm, .*, huawei_smartax, di[[splay]] port i[[nfo]]\s*

huawei_vrp_display_traffic-filter_applied-record.textfsm, .*, huawei_vrp, dis[[play]] traffic-filter applied-record
huawei_vrp_display_ip_vpn-instance_interface.textfsm, .*, huawei_vrp, di[[splay]] ip vpn[[-instance]] interface
huawei_vrp_display_snmp-agent_community_read.textfsm, .*, huawei_vrp, dis[[play]] snm[[p-agent]] c[[ommunity]] (r[[ead]]|w[[rite]])
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----------------------------------------------------------
F/S/P 0/0/0
Min distance(km) 0
Max distance(km) 20
Max guaranteed bandwidth(kbps) -
Left guaranteed bandwidth(kbps) 1000000
Number of T-CONTs 0
Autofind Enable
FEC check Disable
Admin State On
ONT encryption key switching interval(m) 1440
PON-ID switch Disable
PON-ID identifier 1
Jumbo frame switch Disable
Port MTU(bytes) 1024
Surplus bandwidth assignment Disable
Best-effort bandwidth assignment -
Traffic alarm-profile ID -
ONT online power threshold(dBm) -
Low-latency no
Multichannel low latency Disable
Optical module work mode Standard
-----------------------------------------------------------
Channel 0 Information
-----------------------------------------------------------
Channel Type GPON
Online ONT number threshold Disable
-----------------------------------------------------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
parsed_sample:
- admin_state: "On"
autofind: "Enable"
best_effort_bandwidth_assignment: ""
channel_type: "GPON"
fec_check: "Disable"
fsp: "0/0/0"
jumbo_frame_switch: "Disable"
left_guaranteed_bandwidth_kbps: "1000000"
low_latency: "no"
max_distance_km: "20"
max_guaranteed_bandwidth_kbps: ""
min_distance_km: "0"
multichannel_low_latency: "Disable"
number_of_t_conts: "0"
online_ont_number_threshold: "Disable"
ont_encryption_key_switching_interval_m: "1440"
ont_online_power_threshold_dbm: ""
optical_module_work_mode: "Standard"
pon_id_identifier: "1"
pon_id_switch: "Disable"
port_mtu_bytes: "1024"
surplus_bandwidth_assignment: "Disable"
traffic_alarm_profile_id: ""
1 change: 1 addition & 0 deletions tests/test_index_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"fortinet",
"hp_comware",
"hp_procurve",
"huawei_smartax",
"huawei_vrp",
"ipinfusion_ocnos",
"juniper_junos",
Expand Down