|
Ran
|
Jobs
1
|
Files
36
|
Run time
1min
|
Badge
README BADGES
|
push
github
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
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | python3.11 - 27262553302.1 | 36 |
79.0 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|