Versionen im Vergleich

Schlüssel

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

Beschreibung:

Dieses Add-in Skript kann verwendet werden, wenn Sie DNS-Weiterleitung auf LCOS-Geräten konfigurieren möchten.

Liste der verwendeten Variablen:

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 als JSON-Datei:

Seiteneigenschaften
Deutsch
VariableBeschreibung
View file
nameDNS_Destinations.json
pageKonfigurieren einer DNS-Weiterleitung auf LCOS-Geräten
spaceLMCADEN
height150

 

...


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:

View file
nameDNS_Destinations.json

...

height150