Seiteneigenschaften | ||||||||
---|---|---|---|---|---|---|---|---|
Deutsch | ||||||||
Variable | Beschreibung |
View file | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Description:
This add-in script can be used if you want to configure DNS Forwarding on LCOS devices.
List of used variables:
Variable | Description |
---|---|
Add-in code:
/** |
---|
...
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 | ||
---|---|---|
|
...
|