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

containernetworking / plugins / 28881576554
53%
master: 55%

Build:
Build:
LAST BUILD BRANCH: fix_dhcp_ipam_release
DEFAULT BRANCH: master
Ran 07 Jul 2026 05:01PM 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

07 Jul 2026 04:18PM UTC coverage: 52.691%. First build
28881576554

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 33 new or added lines in 1 file covered. (81.82%)

5033 of 9552 relevant lines covered (52.69%)

29.53 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
69.67
plugins/main/bridge/bridge.go
Jobs
ID Job ID Ran Files Coverage
1 28881576554.1 07 Jul 2026 05:01PM UTC 69
52.69
GitHub Action Run
Source Files on build 28881576554
  • 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