Description:
With this add-in script you can customize the DHCP client ID type on LCOS devices.
List of used variables:
Add-in code:
/** * @param {Config} config * @param {Context} context * Do not edit this comment or parameter types. Required for code suggestions */ exports.main = function (config, context) { if (context.device.firmwareVersionObject.major >= 10 && context.device.firmwareVersionObject.minor >= 80 ) { config.addScriptLine( "cd /" ); config.addScriptLine( "cd /Setup/DHCP/Client" ); config.addScriptLine( "set LAN-Client-ID-Type MAC" ); config.addScriptLine( "set WAN-Client-ID-Type MAC" ) } if (context.device.firmwareVersionObject.major >= 10 && context.device.firmwareVersionObject.minor <= 72 ) { config.addScriptLine( "cd /" ); config.addScriptLine( "cd /Setup/DHCP/" ); config.addScriptLine( "set LAN-Client-ID-Type MAC" ); config.addScriptLine( "set WAN-Client-ID-Type MAC" ) } }; |
---|
Add-in as JSON file:
DHCP-Client-ID-To-MAC.json