Skip to content

Ponmngr: move Transceiver section under ANI

Vitaliy Gaponov requested to merge gsv_ponmngr_replaceTransSect into devel

This change is needed to correctly display the transceiver section for this commit: https://dev.iopsys.eu/feed/airoha/-/merge_requests/81

Full output `ubus call usp get`
root@nvg578m-2c9569ffeeb7:~# ubus call usp get '{"path":"Device.XPON."}'
{
        "XPON": {
                "ONUNumberOfEntries": 1,
                "ONU": [
                        {
                                "Enable": true,
                                "Version": "RP0201",
                                "EquipmentID": "KE2.119.241R2B",
                                "SoftwareImageNumberOfEntries": 2,
                                "EthernetUNINumberOfEntries": 3,
                                "ANINumberOfEntries": 1,
                                "SoftwareImage": [
                                        {
                                                "ID": 0,
                                                "Version": "7.2.0alpha3-3",
                                                "IsCommitted": true,
                                                "IsActive": true,
                                                "IsValid": true
                                        },
                                        {
                                                "ID": 1,
                                                "Version": "7.2.0alpha3-3",
                                                "IsCommitted": false,
                                                "IsActive": false,
                                                "IsValid": true
                                        }
                                ],
                                "EthernetUNI": [
                                        {
                                                "Enable": true,
                                                "Status": "Down",
                                                "ANIs": "pon",
                                                "InterdomainID": "",
                                                "InterdomainName": "",
                                                "Stats": {
                                                        "BytesSent": 15985,
                                                        "BytesReceived": 14313,
                                                        "PacketsSent": 12,
                                                        "PacketsReceived": 50
                                                }
                                        },
                                        {
                                                "Enable": true,
                                                "Status": "Up",
                                                "ANIs": "pon",
                                                "InterdomainID": "",
                                                "InterdomainName": "",
                                                "Stats": {
                                                        "BytesSent": 22480,
                                                        "BytesReceived": 10869,
                                                        "PacketsSent": 40,
                                                        "PacketsReceived": 69
                                                }
                                        },
                                        {
                                                "Enable": true,
                                                "Status": "Up",
                                                "ANIs": "pon",
                                                "InterdomainID": "",
                                                "InterdomainName": "",
                                                "Stats": {
                                                        "BytesSent": 0,
                                                        "BytesReceived": 0,
                                                        "PacketsSent": 0,
                                                        "PacketsReceived": 0
                                                }
                                        }
                                ],
                                "ANI": [
                                        {
                                                "Enable": true,
                                                "Status": "Unknown",
                                                "PONMode": "GPON",
                                                "TransceiverNumberOfEntries": 1,
                                                "Stats": {
                                                        "BytesSent": 15309,
                                                        "BytesReceived": 6667,
                                                        "PacketsSent": 112,
                                                        "PacketsReceived": 53
                                                },
                                                "TC": {
                                                        "ONUActivation": {
                                                                "ONUState": "",
                                                                "VendorID": "",
                                                                "SerialNumber": "",
                                                                "ONUID": 0
                                                        }
                                                },
                                                "Transceiver": [
                                                        {
                                                                "ID": 0,
                                                                "Identifier": 75,
                                                                "ModuleVendor": "MTKG",
                                                                "ModuleName": "EN7571",
                                                                "ModuleVersion": "KE2.119.241R2B",
                                                                "ModuleFirmwareVersion": "RP0201",
                                                                "PONMode": "GPON",
                                                                "Connector": "",
                                                                "RxPower": -40,
                                                                "TxPower": -40,
                                                                "Voltage": 0,
                                                                "Bias": 0,
                                                                "Temperature": 0
                                                        }
                                                ]
                                        }
                                ]
                        }
                ]
        }
}
root@nvg578m-2c9569ffeeb7:~# 
Edited by Vitaliy Gaponov

Merge request reports