The firewall rule numbering behaviour is changed since v6
If I’m in say /ip/firewall/filter and do “print”, it shows them in order from 0 upwards
I move rule 8 to position 2, do a print, and it behaves as before, and the rules are in order, from 0 upwards
However if I do say
print where chain=‘forward’
it doesn’t show new numbering (0, 1, 2, 3), but instead shows the print order from the full “print”, only filtering out the matching lines
3 ;;; Allow all Established
chain=forward action=accept connection-state=established
6 ;;; Allow all Related
chain=forward action=accept connection-state=related
9 ;;; Allow ICMP
chain=forward action=accept protocol=icmp
I then do a move, to say shift rule 9 above rule 3, and do another print where chain=‘input’, it doesn’t reorder
9 ;;; Allow ICMP
chain=forward action=accept protocol=icmp
3 ;;; Allow all Established
chain=forward action=accept connection-state=established
6 ;;; Allow all Related
chain=forward action=accept connection-state=related
Do a print without the where param, then print with where, and it’s all renumbered
3 ;;; Allow ICMP
chain=forward action=accept protocol=icmp
4 ;;; Allow all Established
chain=forward action=accept connection-state=established
7 ;;; Allow all Related
chain=forward action=accept connection-state=related
Feels inconsistent to me.