Commit c1ab9fc
committed
fix(drivers): parse interface source by its own type, not hypervisor's
_domain2machine/_list_interfaces read a <source> element's attribute
keyed by self._spec.network_type (the hypervisor's own bridge/network
setting), but the boot-network port is always type='network' regardless
of that setting (see the earlier create_machine fix). On a bridge-type
hypervisor this made every boot-network interface look like it had no
mac/source at all, breaking pool listing (and everything depending on
it - pool_volume, pool_machine) for the entire hypervisor.
Read the interface's own 'type' attribute instead of assuming it
matches the hypervisor's network_type.1 parent 4f06fdf commit c1ab9fc
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
625 | 629 | | |
626 | 630 | | |
627 | 631 | | |
| |||
700 | 704 | | |
701 | 705 | | |
702 | 706 | | |
703 | | - | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
704 | 710 | | |
705 | 711 | | |
706 | 712 | | |
| |||
0 commit comments