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

xapi-project / xen-api / 27329817902
79%

Build:
DEFAULT BRANCH: master
Ran 11 Jun 2026 07:03AM UTC
Jobs 1
Files 36
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 Jun 2026 08:09AM UTC coverage: 78.996%. Remained the same
27329817902

push

github

web-flow
Add DHCP setting for VIF IP configuration (#7118)

XAPI exposes a `VIF.configure_ipv4/v6` message to instruct guest agents
to configure the VM's IP settings on the host's behalf.

This feature currently works by setting
`/local/domain/<domid>/xenserver/device/vif/<N>/static-ip-setting/enabled`
to one of the following values:

- `enabled=0`: None (unconfigured), so IP settings are decided by the VM
itself
- `enabled=1`: Static, using the `address` and `gateway` values in the
same key

From the modes above, there's no way to go from a static IP config back
to DHCP, and therefore, someone wanting to switch back to DHCP would
need to log into the VM and make the changes there.

Add the following new VIF configuration modes:

- `enabled=2`: DHCP (IPv4) or autoconfigured (IPv6). The XS guest agent
[already tolerates this
value](https://github.com/xenserver/win-xenguestagent/blob/f4353ff30/src/xenguestlib/FeatureStaticIpSetting.cs#L534)
since a very long time, and from my testing with the XS 9.6.0 guest
agent, is capable of reverting to DHCP if enabled=2 is set.

3667 of 4642 relevant lines covered (79.0%)

0.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 27329817902.1 11 Jun 2026 07:03AM UTC 36
79.0
GitHub Action Run
Source Files on build 27329817902
  • Tree
  • List 36
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27329817902
  • 788869e5 on github
  • Prev Build on gh-readonly-queue/master/pr-7117-132059b4a5d71129179713f2570d33798e072a39 (#27139862347)
  • Next Build on master (#27334840675)
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