Hello everyone :)
I'm writing my first IND script, I want to parase the following JSON array:
"allow":["192.168.135.1","172.28.65.150","172.28.31.140","10.0.0.0/24","All"]
And print it as a live config.
I couldn't find a way to prase the array into a list (without key values)
Code:
Output:
INFO - Metric Name: allowed-ips ||| Tags: device = F5 ||| Value: [ { "IP" : "10.0.0.0/24" }, { "IP" : "172.28.31.140" }, { "IP" : "172.28.65.150" }, { "IP" : "192.168.135.1" }, { "IP" : "All" } ]
Source:
Any suggestions?
Thanks,
Daniel.