Code:Select all
:local ifs {"ether1"; "ether2";}; :local ether1 {1.1.0.0/16; 2.2.0.0/16;}; :local ether2 {192.168.1.0/24; 192.168.2.0/24;}; :local num 1; :put ($ether1->$num); :foreach if in=$ifs do={ :put ($if->$num); }
Output:
Code:Select all
2.2.0.0/16
Expected output:
Code:Select all
2.2.0.0/16 2.2.0.0/16 192.168.2.0/24