Commit be2b057
committed
tests: Set stable datapath-id on bridges in system tests.
When a port with a globally-administered MAC address (e.g.,
00:00:00:00:00:04) is added to br-int, OVS may recalculate the
bridge datapath ID if no explicit datapath-id is configured.
The new DPID causes OVS to tear down all OpenFlow connections
to the bridge, since there is no OpenFlow message to notify
the controller of a DPID change.
This triggers ovn-controller's ofctrl_seqno_flush(), which
resets the internal sequence counter to 0. If a flow update
from before the reconnection is still in-flight, ofctrl_put()
detects that the new req_cfg is smaller than the pending one
and emits "req_cfg regressed from 2 to 1".
Fix this by deriving a stable other-config:datapath-id from
the bridge name in the ADD_BR macro. This ensures the DPID
never changes when ports are added or removed, preventing
spurious OpenFlow reconnections during tests.
Assisted-by: Claude Opus 4.6, OpenCode
Signed-off-by: Ales Musil <amusil@redhat.com>1 parent f6e58e2 commit be2b057
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
0 commit comments