Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

VariableDescription




Add-in code:



    var Domain =

/**
 * @param {Config} config
 * @param {Context} context
 * Do not edit this comment or parameter types. Required for code suggestions
*/
exports exports.main = function (config, context) {

   
    varDomain = 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:

View file
nameDNS_Destinations.json
height150