From 087b072327f17da1abbd6367e721a7d1ac1a06c3 Mon Sep 17 00:00:00 2001 From: meklis Date: Thu, 1 Aug 2024 16:44:15 +0300 Subject: [PATCH] Fixed getting interfaces list --- configs/models/C-Data.yml | 10 +++++----- .../CData/FD16xxV3/CDataAbstractModuleFD16xxV3.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configs/models/C-Data.yml b/configs/models/C-Data.yml index ba88678..7d00cb1 100755 --- a/configs/models/C-Data.yml +++ b/configs/models/C-Data.yml @@ -364,7 +364,7 @@ models: parse_interface: \SwitcherCore\Modules\CData\FD16xxV3\ParseInterface interface_descriptions: \SwitcherCore\Modules\CData\FD16xxV3\InterfaceDescriptionsFD16 sys_resources: \SwitcherCore\Modules\CData\FD16xxV3\SystemResources - interfaces_list: \SwitcherCore\Modules\CData\FD16xxV3\PonPortsList + interfaces_list: \SwitcherCore\Modules\CData\FD16xxV3\InterfacesList link_info: \SwitcherCore\Modules\CData\FD16xxV3\LinkInfo ctrl_ont_uni_admin_state: \SwitcherCore\Modules\CData\FD16xxV3\UniInterfacesControlAdminStatus ctrl_ont_descr: \SwitcherCore\Modules\CData\FD16xxV3\CtrlOntDescription @@ -401,7 +401,7 @@ models: parse_interface: \SwitcherCore\Modules\CData\ParseInterface interface_descriptions: \SwitcherCore\Modules\CData\InterfaceDescriptionsFD16 sys_resources: \SwitcherCore\Modules\CData\SystemResources - interfaces_list: \SwitcherCore\Modules\CData\PonPortsList + interfaces_list: \SwitcherCore\Modules\CData\InterfacesList link_info: \SwitcherCore\Modules\CData\LinkInfo ctrl_ont_uni_admin_state: \SwitcherCore\Modules\CData\UniInterfacesControlAdminStatus ctrl_ont_descr: \SwitcherCore\Modules\CData\CtrlOntDescription @@ -505,7 +505,7 @@ models: parse_interface: \SwitcherCore\Modules\CData\ParseInterface interface_descriptions: \SwitcherCore\Modules\CData\InterfaceDescriptionsFD16 sys_resources: \SwitcherCore\Modules\CData\SystemResources - interfaces_list: \SwitcherCore\Modules\CData\PonPortsList + interfaces_list: \SwitcherCore\Modules\CData\InterfacesList link_info: \SwitcherCore\Modules\CData\LinkInfo ctrl_ont_uni_admin_state: \SwitcherCore\Modules\CData\UniInterfacesControlAdminStatus ctrl_ont_descr: \SwitcherCore\Modules\CData\CtrlOntDescription @@ -575,7 +575,7 @@ models: parse_interface: \SwitcherCore\Modules\CData\FD16xxV3\ParseInterface interface_descriptions: \SwitcherCore\Modules\CData\FD16xxV3\InterfaceDescriptionsFD16 sys_resources: \SwitcherCore\Modules\CData\FD16xxV3\SystemResources - interfaces_list: \SwitcherCore\Modules\CData\FD16xxV3\PonPortsList + interfaces_list: \SwitcherCore\Modules\CData\FD16xxV3\InterfacesList link_info: \SwitcherCore\Modules\CData\FD16xxV3\LinkInfo ctrl_ont_uni_admin_state: \SwitcherCore\Modules\CData\FD16xxV3\UniInterfacesControlAdminStatus ctrl_ont_descr: \SwitcherCore\Modules\CData\FD16xxV3\CtrlOntDescription @@ -612,7 +612,7 @@ models: parse_interface: \SwitcherCore\Modules\CData\ParseInterface interface_descriptions: \SwitcherCore\Modules\CData\InterfaceDescriptionsFD16 sys_resources: \SwitcherCore\Modules\CData\SystemResources - interfaces_list: \SwitcherCore\Modules\CData\PonPortsList + interfaces_list: \SwitcherCore\Modules\CData\InterfacesList link_info: \SwitcherCore\Modules\CData\LinkInfo ctrl_ont_uni_admin_state: \SwitcherCore\Modules\CData\UniInterfacesControlAdminStatus ctrl_ont_descr: \SwitcherCore\Modules\CData\CtrlOntDescription diff --git a/src/Modules/CData/FD16xxV3/CDataAbstractModuleFD16xxV3.php b/src/Modules/CData/FD16xxV3/CDataAbstractModuleFD16xxV3.php index 6ef8300..9d72a2d 100755 --- a/src/Modules/CData/FD16xxV3/CDataAbstractModuleFD16xxV3.php +++ b/src/Modules/CData/FD16xxV3/CDataAbstractModuleFD16xxV3.php @@ -74,7 +74,7 @@ function getPhysicalInterfaces() '_slot' => $m[3], '_port' => $m[4], '_onu' => null, - '_technology' => 'gpon', + '_technology' => $type == 'PON' ? 'gpon' : null, ]; } }