Skip to content

Commit

Permalink
Improved
Browse files Browse the repository at this point in the history
  • Loading branch information
meklis committed Jun 18, 2024
1 parent ca0b5d7 commit d231b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions configs/models/C-Data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ models:
ctrl_ont_delete: \SwitcherCore\Modules\CData\OntDeleteGpon
unregistered_onts: \SwitcherCore\Modules\CData\UnregisteredOnts
pon_profiles: \SwitcherCore\Modules\CData\FD16xxV3\GetProfiles
pon_onts_configuration: \SwitcherCore\Modules\CData\PonOntsConfiguration
extra:
pon_type: GPON
pon_port_size: 128
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/CData/PonOntsConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function run($filter = [])
if ($filter['interface']) {
$interface = $this->parseInterface($filter['interface']);
$this->response = $this->snmp->get(array_map(function ($e) use (&$interface) {
return \SnmpWrapper\Oid::init("{$e->getOid()}.{$interface['_snmp_id']}");
return \SnmpWrapper\Oid::init("{$e->getOid()}.{$interface['id']}");
}, $oids));
return $this;
} else {
Expand Down

0 comments on commit d231b22

Please sign in to comment.