Besides some other strange issues:
Settings:
/interface/list> /interface list print
Flags: *, D - DYNAMIC
Columns: NAME
NAME
;;; contains all interfaces
0 * all
;;; contains no interfaces
1 * none
;;; contains dynamic interfaces
2 * dynamic
;;; contains static interfaces
3 * static
4 WAN
5 LAN
6 LAN-UNRESTRICTED
7 LAN-RESTRICTED
8 MANAGEMENT
/interface list/export
jun/10/2023 22:29:40 by RouterOS 7.9.2
software id = R5GM-0XAW
model = CCR1009-7G-1C-1S+
serial number = 849807DD584F
/interface list
add name=WAN
add name=LAN
add name=LAN-UNRESTRICTED
add name=LAN-RESTRICTED
add name=MANAGEMENT
/interface list member
add interface=ether1--gw--isp list=WAN
add interface=ether2--gw--isp2 list=WAN
add interface=ether3--gw--isp3 list=WAN
add interface=lan--mgt-vlan list=MANAGEMENT
add interface=lan--guest-vlan list=LAN
add interface=lan--pub-vlan list=LAN
add interface=lan--pvt-vlan list=LAN
add interface=lan--pvt-vlan list=LAN-UNRESTRICTED
add interface=lan--sd-vlan list=LAN
add interface=lan--mgt-vlan list=LAN
add interface=ether7--mgt-vlan list=MANAGEMENT
add interface=gw--isp3--mgt-vlan list=MANAGEMENT
add interface=gw--isp2--mgt-vlan list=MANAGEMENT
When I run this script:
:local gwinterfaces [/interface list member find list=LAN];
:foreach interface in=$gwinterfaces do={
:put [/interface get $interface name]
}
Results:
/system/script> run test
ether6
ether7--mgt-vlan
bridge--lan
lan--pub-vlan
lan--pvt-vlan
Results when I change form LAN to WAN:
/system/script> run test
sfp-sfpplus1--lan--trk
combo1--lan--trk2
ether1--gw--isp
I have no idea where its getting these results. Does not match what is in lists. Any advise? Trying to fix without remote reset or going on-site. Bug? Corruption? My ignorance? Thanks!