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

containernetworking / plugins / 34466296268
53%
master: 55%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/golang-8d073ec575
DEFAULT BRANCH: master
Ran 10 Sep 2026 10:38AM UTC
Jobs 1
Files 70
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

10 Sep 2026 10:28AM UTC coverage: 52.93%. First build
34466296268

Pull #1257

github

SchSeba
host-device: copy host interface IP addresses and routes into container

Add a new configuration option `useInterfaceNetwork` that instructs the
host-device plugin to capture the interface's IP addresses and routes
from the host before moving the device into the container namespace,
and then apply them inside the container.

This is critical for virtual environments (AWS, IBM Cloud, GPC) where
the cloud provider configures IP addresses and routes directly on the
network device. In these environments, there is no traditional IPAM
source; the ground truth for L3 configuration lives on the host
interface itself.

When `useInterfaceNetwork` is enabled, the plugin:
  - Captures all global-scope addresses and non-local routes from the
    host device before moving it into the container namespace.
  - Applies the captured addresses and routes to the interface inside
    the container.
  - Reports the addresses and routes in the CNI result (merged with
    any IPAM result if an IPAM plugin is also configured).

NOTE: The interface configuration on the host node must be persistent.
When the device is moved back to the host (via DEL) and renamed to its
original name, the system's network management service (e.g.
NetworkManager, systemd-networkd, cloud-init, or cloud-specific agents)
is expected to detect the device and re-apply the IP addresses and
routes. This plugin does NOT re-configure the host interface on DEL; it
relies on the node's network configuration being declarative and
reconciled by the platform's networking stack.

Signed-off-by: Sebastian Sch <sebassch@gmail.com>
Pull Request #1257: host-device: copy host interface IP addresses and routes into container

135 of 177 new or added lines in 2 files covered. (76.27%)

5139 of 9709 relevant lines covered (52.93%)

27.47 hits per line

Uncovered Changes

Lines Coverage ∆ File
36
72.09
plugins/main/host-device/host-network-state.go
6
64.64
plugins/main/host-device/host-device.go
Jobs
ID Job ID Ran Files Coverage
1 34466296268.1 10 Sep 2026 10:38AM UTC 70
52.93
GitHub Action Run
Source Files on build 34466296268
  • Tree
  • List 70
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1257
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc