exports.main = function (config, context) {
// /Setup/Config/Access-Table
|
---|
var accessTable = config.getTableByOid("1.2.11.15");
|
---|
var rowLan = accessTable.getFirstRowByOid("1", "1"); //LAN
|
---|
rowLan.setByOid("2", "0");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowLan.setByOid("3", "1");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowLan.setByOid("4", "1");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowLan.setByOid("5", "1");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowLan.setByOid("6", "1");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowLan.setByOid("7", "1");
|
---|
//Telnet-SSL : VPN (16), Yes (1), Read (4), No (0)
|
---|
rowLan.setByOid("8", "1");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowLan.setByOid("9", "1");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
accessTable.addOrMerge(rowLan);
|
---|
var rowWan = accessTable.getFirstRowByOid("1", "2"); //WAN
|
---|
rowWan.setByOid("2", "0");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWan.setByOid("3", "0");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWan.setByOid("4", "0");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWan.setByOid("5", "0");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWan.setByOid("6", "16"); //HTTPS
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWan.setByOid("7", "0");
|
---|
//Telnet-SSL : VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWan.setByOid("8", "0");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWan.setByOid("9", "0");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
accessTable.addOrMerge(rowWan);
|
---|
var rowWlan = accessTable.getFirstRowByOid("1", "3"); //WLAN
|
---|
rowWlan.setByOid("2", "0");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWlan.setByOid("3", "1");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWlan.setByOid("4", "1");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWlan.setByOid("5", "1");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWlan.setByOid("6", "1");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWlan.setByOid("7", "1");
|
---|
//Telnet-SSL : VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWlan.setByOid("8", "1");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
rowWlan.setByOid("9", "1");
|
---|
: VPN (16), Yes (1), Read (4), No (0)
|
---|
accessTable.addOrMerge(rowWlan);
|
---|
}; Add-in as JSON file: View file |
---|
name | access_table.json |
---|
height | 150 |
---|
|
|