Description of problem: [ovn] Missing/wrong openflow rules after ofport change (localnet,l2gateway,vtep) Version-Release number of selected component (if applicable): ovn2.13-20.12.0-135 How reproducible: always Steps to Reproduce: When the tyep are localnet,l2gateway,vtep, the issue exist #ovn-nbctl ls-add sw #ovn-nbctl lsp-add sw lsp1 -- lsp-set-type lsp1 l2gateway #ovn-nbctl lsp-add sw lsp2 #ovs-vsctl add-port br-int vm1 -- set Interface vm1 type=internal external_ids:iface-id=lsp1 ofport-request=1 #ovs-vsctl add-port br-int vm2 -- set Interface vm2 type=internal external_ids:iface-id=lsp2 ofport-request=2 #sleep 5 #ovs-ofctl dump-flows br-int | grep output cookie=0xb9768735, duration=4.140s, table=65, n_packets=0, n_bytes=0, idle_age=4, priority=100,reg15=0x2,metadata=0x1 actions=output:2 cookie=0xb2ca0323, duration=4.140s, table=65, n_packets=0, n_bytes=0, idle_age=4, priority=100,reg15=0x1,metadata=0x1 actions=output:1 # #ovs-vsctl del-port vm1 #ovs-vsctl add-port br-int vm1 -- set Interface vm1 type=internal external_ids:iface-id=lsp1 ofport-request=5 #sleep 5 #ovs-ofctl dump-flows br-int | grep output cookie=0xb9768735, duration=9.180s, table=65, n_packets=0, n_bytes=0, idle_age=9, priority=100,reg15=0x2,metadata=0x1 actions=output:2 cookie=0xb2ca0323, duration=9.180s, table=65, n_packets=0, n_bytes=0, idle_age=9, priority=100,reg15=0x1,metadata=0x1 actions=output:1 <<< This is STALE. # # ovn-appctl -t ovn-controller recompute #ovs-ofctl dump-flows br-int | grep output cookie=0xb9768735, duration=11.136s, table=65, n_packets=0, n_bytes=0, idle_age=11, priority=100,reg15=0x2,metadata=0x1 actions=output:2 cookie=0xb2ca0323, duration=11.136s, table=65, n_packets=0, n_bytes=0, idle_age=11, hard_age=1, priority=100,reg15=0x1,metadata=0x1 actions=output:5