Commit 53370ae
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 6a91d18 commit 53370ae
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
615 | 619 | | |
616 | 620 | | |
617 | 621 | | |
| |||
690 | 694 | | |
691 | 695 | | |
692 | 696 | | |
693 | | - | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
694 | 700 | | |
695 | 701 | | |
696 | 702 | | |
| |||
0 commit comments