Useful Functions

From Observer GigaFlow Support | VIAVI Solutions Inc.
Revision as of 11:25, 1 February 2017 by Kevin Wilkie (Talk | contribs)

Jump to: navigation, search


function sleep(delay) {
 var start = new Date().getTime();
 while (new Date().getTime() < start + delay);

Adding Attributes, automaticaly creating the category if it doesn't exists

actions.addIPAttribute("","State","New York"); //Add "New York" Attribute to "State" category for this ip 
actions.addMACAttribute("a4:ba:db:ff:18:bc","State","Washington"); //Add "Washington" Attribute to "State" category for this mac