Enterasys POE polling

Enterasys switches have slightly munted POE MIBs, rather than using a port index they use module.port - eg this switch is giving results for port 5.48, 6.1. This results in the POE values going into the wrong array in the port_stats array (eg “5.48” rather than “256”).

POWER-ETHERNET-MIB::pethPsePortPowerPriority.5.48 = INTEGER: low(3)
POWER-ETHERNET-MIB::pethPsePortPowerPriority.6.1 = INTEGER: low(3)

Unfortunately the only way I can see to translate them back to an ifIndex is via the ifName array:

IF-MIB::ifName.256 = STRING: ge.5.48

Dodgy hacks ahoy. Where would I account for this, somewhere around librenms/ports.inc.php at master · librenms/librenms · GitHub I guess?