Details
Description
sys.interfaces docs should not indicate an inability to iterate over foreign lists
Currently the example shown says
To use this list in a policy, you will need a local copy since only local variables can be iterated.
bundle agent test { vars: # To iterate, we need a local copy "i1" slist => { @(sys.ip_addresses)} ; "i2" slist => { @(sys.interfaces)} ; reports: "Addresses: $(i1)"; "Interfaces: $(i2)"; "Addresses of the interfaces: $(sys.ipv4[$(i2)])"; }
But this is not true now, it is possible to iterate over foreign lists.