• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

containernetworking / plugins / 27704481435
53%
master: 55%

Build:
Build:
LAST BUILD BRANCH: fix_dhcp_ipam_release
DEFAULT BRANCH: master
Ran 17 Jun 2026 04:46PM UTC
Jobs 1
Files 69
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Jun 2026 04:36PM UTC coverage: 52.675%. First build
27704481435

Pull #1265

github

twz123
bridge: re-generate a bridge MAC when the kernel has zeroed it out

The kernel zeroes a bridge's MAC address when its last port is removed.
The ensureAddr function pins the bridge's MAC address using the
address read when the bridge was looked up, which is before the veth
is attached. So for an existing bridge that had previously lost all its
ports, the address it tried to pin is all zeros, and pinning an all-zero
address fails with EINVAL.

In fact, this can happen in practice: an ADD that fails has its veth
cleaned up, which, if it was the first ADD, leaves the bridge portless
and hence its MAC zeroed, so the next ADD fails to pin it.

Detect that case and regenerate a random MAC address the same way the
kernel does. This is fine as it only happens if the bridge has no ports,
so no peer can hold stale state about the old address.

Signed-off-by: Tom Wieczorek <twieczorek@mirantis.com>
Pull Request #1265: bridge: reliably pin the MAC on a bridge that lost its ports

27 of 32 new or added lines in 1 file covered. (84.38%)

5031 of 9551 relevant lines covered (52.68%)

29.53 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
69.76
plugins/main/bridge/bridge.go
Jobs
ID Job ID Ran Files Coverage
1 27704481435.1 17 Jun 2026 04:46PM UTC 69
52.68
GitHub Action Run
Source Files on build 27704481435
  • Tree
  • List 69
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1265
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc