Interface List - Strange issues / Possible corruption - Advice to fix without complete reload [Solved]

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!

I just reinstalled firmware / updated main package, then did a reset config and had it run the config import (not backup file) after with no errors. Same thing. Not listing WAN or LAN correctly and coming up with a strange list.

Is it possible to put the router in netinstall mode without pressing the reset button? Under Routerboard Settings you can select a Boot Device. Having issues finding info on what flash boot does. I’m able to remotely run netinstall on the correct interface if so. I’ll keep reading what boot device options do.

Nevermind!

:foreach interface in=[/interface list member print as-value where list=WAN] do={:put ($interface->“interface”)}

Fixed this