In your configuration, when you turn on “VLAN Filtering” on the bridge, most of the ports of the bridge (for example ether2 or ether4) are access port of the VLAN 1 (reason: they have PVID=1 and Frame-Types is admit-all which are the default value, you’ve also added those ports to the untagged list of the /interface bridge vlan entry for VLAN ID 1).
If you plug a device to ether2, then the untagged ethernet frames it receives will be from VLAN 1, and if the device sends untagged ethernet frames to that ether2 port of the switch, that frame will be associated with VLAN 1 by the switch chip. In short, you plug a device to ether2 then everything untagged that it sends and receives is part of VLAN 1. If you want to manage the switch from this device, then VLAN 1 must be one of the management networks of the switch. Which means the switch main CPU must have access to VLAN 1.
Normally if you want the main CPU to have management access or layer 3 access to a VLAN with ID X you have two choices:
A) Give the “bridge” port tagged access to the VLAN (by adding “bridge” to the tagged list of VLAN ID X in the /interface bridge vlan table) AND add a new VLAN interface entry under /interface vlan with “bridge” as parent interface and X as VLAN ID. You then define IP addresses etc. on this VLAN interface.
B) Give the “bridge” port untagged access to the VLAN (by adding “bridge” to the untagged list of VLAN ID X in the /interface bridge vlan table), but no new VLAN interface needs to be added under /interface vlan because the interface “bridge” itself, the one listed under /interface bridge, will be this implicit VLAN interface, with the condition that its PVID value is set to X and its Frame-Types is either admit-all or admit-only-untagged-and-priority-tagged. You then configure IP addresses etc. on the interface “bridge”.
Back to your original configuration: In your case VLAN ID X is VLAN ID 1, and you have chosen option B), because you’ve assigned the IP address and subnet 172.21.9.10/24 to the interface “bridge”. You haven’t changed the default parameters, so “bridge” has the compatible corresponding PVID=1 and Frame Types admit-all.
However, your config also had “bridge” in the tagged list of VLAN ID 1, which is not the correct setting, if you reread the B) section above, you’ll see that it should be in the “untagged” list. But the reason it “worked” after reboot is because RouterOS has a feature that scan the ports of a bridge, and if they have Frame Types admit-all or admit-only-untagged-and-priority-tagged then RouterOS will dynamically add an entry to the /interface bridge vlan table for VLAN ID matching the PVID value of the port, and put the port in the untagged list of that entry. Which means after reboot, a dynamic entry for VLAN ID 1 is added to the table and “bridge” is added to the “untagged” list of that entry. There exists also the wrong entry for VLAN ID 1 that you’ve added, where “bridge” is in the “tagged” list, but it looks like that after the switch has been rebooted, the dynamic entry temporary “wins”, the “bridge” is put into the untagged list of VLAN 1 and the interface “bridge” has access to VLAN 1.
Afterwards, when ports of the bridge go up or down, the /interface bridge vlan table content will be updated by the router, it might need to add/remove dynamic entries depending on the state of the ports, as well as updates the values of the Current Tagged and Current Untagged fields. It appears that during such updates the entry for VLAN ID 1 that you added “wins” over the dynamic entry for VLAN ID 1, and the “bridge” is classified into the tagged list of VLAN 1, the interface “bridge” no longer has access to VLAN 1, which means devices in VLAN 1 no longer reach 172.21.9.10.
At this point you’ve probably also seen why having “bridge” in the untagged list of VLAN ID 99 is wrong (because PVID of the interface “bridge” is not 99 but 1). And you also don’t need to put “bridge” in the tagged list of VLAN ID 99, because you didn’t define a new VLAN interface under /interface vlan with ID 99.
You only need to put “bridge” in the tagged list of the VLANs if you have intention to define corresponding VLAN interfaces for them under /interface vlan.
You only put “bridge” in the untagged list of at most one VLAN ID, if you want to have the interface “bridge” to be part of that VLAN, and the PVID of bridge must match the ID of that VLAN.