diff --git a/normalize.coffee b/normalize.coffee index 683b7d8..8c8181a 100644 --- a/normalize.coffee +++ b/normalize.coffee @@ -45,7 +45,7 @@ normalizers.string = (input, normType) -> exports.normalize = (path, value, normType) -> - if path of config.PARAMETERS + if path of config.PARAMETERS and config.PARAMETERS[path].type? return normalizers[config.PARAMETERS[path].type](value) else return normalizers['default'](value, normType) diff --git a/parameters.json b/parameters.json index f063e8e..604ce94 100644 --- a/parameters.json +++ b/parameters.json @@ -6,12 +6,12 @@ "InternetGatewayDevice.DeviceInfo.ManufacturerOUI" : {"alias" : "summary.oui"}, "InternetGatewayDevice.DeviceInfo.HardwareVersion" : {"alias" : "summary.hardwareVersion"}, "InternetGatewayDevice.DeviceInfo.SoftwareVersion" : {"alias" : "summary.softwareVersion"}, - "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress" : {"alias" : "summary.mac", "type" : "mac"}, - "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress" : {"alias" : "summary.ip", "type" : "ip"}, + "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress" : {"alias" : "summary.mac"}, + "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress" : {"alias" : "summary.ip"}, - "InternetGatewayDevice.WiMAX.Status.BSID" : {"alias" : "summary.bsid", "type" : "mac"}, - "InternetGatewayDevice.X_CommunicationsInc_WiMAX_device_metrics.ServingBSID" : {"alias" : "summary.bsid", "type" : "mac"}, - "InternetGatewayDevice.WANDevice.1.WiMAXInterfaceConfig.RadioModule.ServBSID" : {"alias" : "summary.bsid", "type" : "mac"}, + "InternetGatewayDevice.WiMAX.Status.BSID" : {"alias" : "summary.bsid"}, + "InternetGatewayDevice.X_CommunicationsInc_WiMAX_device_metrics.ServingBSID" : {"alias" : "summary.bsid"}, + "InternetGatewayDevice.WANDevice.1.WiMAXInterfaceConfig.RadioModule.ServBSID" : {"alias" : "summary.bsid"}, "InternetGatewayDevice.WiMAX.Status.RSSI" : {"alias" : "summary.rssi", "type" : "float"}, "InternetGatewayDevice.X_MTK_WiMAX_Param.RSSI_level" : {"alias" : "summary.rssi", "type" : "float"},