Skip to content

Commit

Permalink
Fixed getting interfaces list
Browse files Browse the repository at this point in the history
  • Loading branch information
meklis committed Aug 1, 2024
1 parent 306dfe6 commit 087b072
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions configs/models/C-Data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/CData/FD16xxV3/CDataAbstractModuleFD16xxV3.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function getPhysicalInterfaces()
'_slot' => $m[3],
'_port' => $m[4],
'_onu' => null,
'_technology' => 'gpon',
'_technology' => $type == 'PON' ? 'gpon' : null,
];
}
}
Expand Down

0 comments on commit 087b072

Please sign in to comment.