Sie zeigen eine alte Version dieser Seite an. Zeigen Sie die aktuelle Version an.

Unterschiede anzeigen Seitenhistorie anzeigen

Version 1 Nächste Version anzeigen »


 

Description:

This add-in script can be used if you want to configure DNS Forwarding on LCOS devices.

List of used variables:

VariableDescription




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) {



    var Domain = context.vars.v1_Domain;
    var RtgTag = context.vars.v2_RoutingTag;
    var RemoteSite = context.vars.v3_RemoteSite;

    var DNSDestinations = config.getTableByOid("1.2.17.9");
    var NewRow = DNSDestinations.createNewRow();
    NewRow.setByOid("1", Domain);  
    NewRow.setByOid("3", RtgTag);
    NewRow.setByOid("2", RemoteSite);
    DNSDestinations.addOrMerge(NewRow);

};

Add-in as JSON file:


  • Keine Stichwörter