\OnuConfigurator
PON ONU configuration class
Synopsis
class OnuConfigurator
{
- // members
- protected array $allOnu = ;
- protected array $allOlt = ;
- protected array $allOltModels = ;
- protected array $altCfg = ;
- protected placeholder $AutoConfig = ;
- // methods
- public void __construct()
- protected void loadAlter()
- protected void LoadAllOlt()
- protected void loadOnu()
- protected void loadOltModels()
- protected string GetOltModelTemplate()
- protected array GetOltData()
- protected array GetOnuMac()
- protected string MacHexToDec()
- protected int GetClientIface()
- protected bool CheckOltVlan()
- public string ChangeOnuPvid()
Members
protected
- $AutoConfig
—
placeholder
Placeholder for AutoConfigurator() class - $allOlt
—
array
Contains all OLT's data - $allOltModels
—
array
Contains all olt models and snmptemplates - $allOnu
—
array
Contains all onu data - $altCfg
—
array
Contains alter.ini config file
Methods
protected
- CheckOltVlan() — Check wheather vlan already exists (if exists return false, if not return true)
- GetClientIface() — Get snmp index which linked to onu
- GetOltData() — get olt data like ip and snmp community
- GetOltModelTemplate() — Getting olt's snmptemplate by it's ID
- GetOnuMac() — Get onu data mac and olt ID to which onu is linked
- LoadAllOlt() — Load all from `switches` to $allswitches
- MacHexToDec() — Format heximal mac address to decimal or show error
- loadAlter() — Read and load alter.ini to $AltCfg.
- loadOltModels() — Loads all available snmp models data into private data property
- loadOnu() — Load all from `pononu` to $allOnu
public
- __construct()
- ChangeOnuPvid() — Changes onu pvid by snmp query and if needed creates vlan