Provisioning Using Other Tools

From Observer GigaFlow Support | VIAVI Solutions Inc.
Revision as of 11:49, 11 January 2019 by Kevin Wilkie (Talk | contribs)

Jump to: navigation, search

Inserting new traffic groups in bulk

To send data from 3rd party apps you either need to setup a portalUser or supply the login credentials in the query.

Function to bulk load traffic groups, each line separated by a carriage return "\n" IP address can be in the format of start,endip or ip/prefix_length

curl -H "Content-Type: application/x-www-form-urlencoded" -X POST -d $'userName=admin&userPass=admin&id=tgbulk&action=Add Traffic Group Bulk&tgbulk=test1_name,test1_desc,192.168.1.1/24\ntest2_name,test2_desc,192.168.2.1/24\ntest3_name,test3_desc,192.168.3.1,192.168.3.102' "http://172.21.21.21:7902/"