For example:
Code: Select all/interface bridge host print Flags: D - DYNAMIC; L - LOCAL; E - EXTERNAL Columns: MAC-ADDRESS, ON-INTERFACE, BRIDGE # MAC-ADDRESS ON-INTE BRIDGE 0 D E 00:21:86:A1:63:56 ether9 bridge 1 D E 20:1A:06:5F:C0:3D ether15 bridge 2 D E 24:A4:3C:06:6C:2D ether1 bridge 3 DL C4:AD:34:78:E1:88 bridge bridge 4 DL C4:AD:34:78:E1:90 ether9 bridge 5 DL C4:AD:34:78:E1:96 ether15 bridge
I need to read all fields of these data records, incl the flags. I tried the following, but as can be seen
the flags are missing:
Code: Select all:foreach i in=[/interface bridge host print detail as-value] do={ :put $i; } .id=*5c;bridge=bridge;comment=;interface=ether9;mac-address=00:21:86:A1:63:56;on-interface=ether9 .id=*5a;bridge=bridge;comment=;interface=ether15;mac-address=20:1A:06:5F:C0:3D;on-interface=ether15 .id=*57;bridge=bridge;comment=;interface=ether1;mac-address=24:A4:3C:06:6C:2D;on-interface=ether1 .id=*5b;bridge=bridge;comment=;interface=bridge;mac-address=C4:AD:34:78:E1:88;on-interface=bridge .id=*58;bridge=bridge;comment=;interface=ether9;mac-address=C4:AD:34:78:E1:90;on-interface=ether9 .id=*59;bridge=bridge;comment=;interface=ether15;mac-address=C4:AD:34:78:E1:96;on-interface=ether15
Btw, it applies not only to the above example, but rather generally to all such data that has flags in its normal output.
Is this a bug in beta5?
How can I read these flags?
If it's currently not possible then I propose that it should be added into the next beta version.
PS: the above example was tested on a CRS326 switch with RouterOS 7.0beta5.