Intelligent Proxy Steering - Office365
Hello Brett,
I've tried to setup your solution as a test on a virtual F5.
I started with version 12.1.3 but because I got a syntax error unexpected token => when I try to load the plugin I upgraded to version 13.1.3.1 because I saw you used version 13.
But I still have the same error.
In the workspace no problem is mentioned, I can save the index.js but when the plugin is reloaded I see the following in the ltm log :
Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst] /var/sdm/plugin_store/plugins/:Common:lxpi_o365_tst_38969_15/extensions/lxex_o365_tst/index.js:75
Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst] products.find().forEach((v, i) => {
Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst] ^^
Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst] SyntaxError: Unexpected token =>
Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst] at exports.runInThisContext (vm.js:73:16)
Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst] at Module._compile (module.js:443:25)
Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst] at Object.Module._extensions..js (module.js:478:10)
Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst] at Module.load (module.js:355:32)
Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst] at Function.Module._load (module.js:310:12)
Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst] at Function.Module.runMain (module.js:501:10)
Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst] at startup (node.js:129:16)
I'm not familiar with Javascript but this seams a valid syntax to me :
function logStatistics() {
// statistics about entries in loki database.
var v, i;
console.log('info: ' + products.count() + ' serviceAreas found.');
products.find().forEach((v, i) => {
console.log ('info: serviceArea ' + v.name + ' holds ' + v.ipAddresses.length + ' IP addresses and ' + v.urls.length + ' URLs');
});
}
Am I overlooking something ?
Thanks in advance.
Best regards,
Guy