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

xapi-project / xen-api / 17543931208
80%
master: 80%

Build:
Build:
LAST BUILD BRANCH: private/changleli/fix-xenops-cache
DEFAULT BRANCH: master
Ran 08 Sep 2025 08:02AM UTC
Jobs 1
Files 34
Run time 4min
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

08 Sep 2025 08:01AM UTC coverage: 80.368%. Remained the same
17543931208

push

github

web-flow
CA-416692 Sync vlan or sriov pif.device (#6651)

For pif which is vlan-master or sriov-logic-pif, its pif.device comes
from its vlan-slave or sriov-physical-pif pif.device.
For example:
```
uuid ( RO)                     : 00bfb6be-041b-2d16-4118-e98d4f4758a1
                   device ( RO): eth1
                 physical ( RO): false
       currently-attached ( RO): false
                     VLAN ( RO): 12
           vlan-master-of ( RO): 7efb4476-95d7-e27e-6646-983e33ef9a67
            vlan-slave-of ( RO):

uuid ( RO)                     : 32073526-d992-3a2f-9653-f5f5b368680f
                   device ( RO): eth1
                 physical ( RO): true
       currently-attached ( RO): true
                     VLAN ( RO): -1
           vlan-master-of ( RO): <not in database>
            vlan-slave-of ( RO): 7efb4476-95d7-e27e-6646-983e33ef9a67
```
Their names are both eth1. In this feature branch, the interface name
may change after RPU. The physical pif.device is synced in
refresh_internal. But the vlan or sriov non-physical pif.device is not
handled.

This PR syncs the vlan or sriov pif.device by finding its corresponding
physical pif device and get the real device name.
What's more, for all the pif types:
- Physical: maybe change, need to lookup device_to_position_table to get
new device
 - VLAN_untagged: get the underlying physical PIF device
 - Network_sriov_logical: get the underlying physical PIF device
 - Tunnel_access: tunnelN, no need to change
 - Bond_master: bondN, no need to change
 
The function `get_pif_device` is extracted to handle the pif.device by
its type.

At last, the currently-attached:false and nonphysical pif.device need to
be updated too. The refresh_all function is changed to handle all the
pifs on the host.

3496 of 4350 relevant lines covered (80.37%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 17543931208.1 08 Sep 2025 08:02AM UTC 34
80.37
GitHub Action Run
Source Files on build 17543931208
  • Tree
  • List 34
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17543931208
  • 0a408574 on github
  • Prev Build on feature/host-network-device-ordering (#17197869551)
  • Next Build on feature/host-network-device-ordering (#17574379141)
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

© 2025 Coveralls, Inc