Commit 2321661
committed
fix(drivers): prefer the logical network name when reporting a port's source
A type='network' interface backed by a libvirt network with <forward
mode='bridge'/> (e.g. a boot network riding the same bridge as the
main network) gets rewritten by libvirt to type='bridge' in the live
domain XML, but its <source> element keeps both the original 'network'
attribute and the underlying 'bridge' one. Reading by iface type alone
picked up the bridge name, permanently diverging from the target
state's logical network name and leaving update_on_dp() stuck logging
"Unknown update action" every iteration since no tracked field
actually looked different to it.1 parent c1ab9fc commit 2321661
1 file changed
Lines changed: 21 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
44 | 63 | | |
45 | 64 | | |
46 | 65 | | |
| |||
621 | 640 | | |
622 | 641 | | |
623 | 642 | | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
| 643 | + | |
629 | 644 | | |
630 | 645 | | |
631 | 646 | | |
| |||
704 | 719 | | |
705 | 720 | | |
706 | 721 | | |
707 | | - | |
708 | | - | |
709 | | - | |
| 722 | + | |
710 | 723 | | |
711 | 724 | | |
712 | 725 | | |
| |||
0 commit comments