oVirt / vdsm

The Virtual Desktop Server Manager
GNU General Public License v2.0
160 stars 201 forks source link

Fix default route with libnl3.8+ #405

Closed dupondje closed 6 months ago

dupondje commented 6 months ago

Since libnl3.8, he nl_addr_parse does not return 'none' anymore for 'default', but it returns a 0.0.0.0/0 addr. https://github.com/thom311/libnl/commit/0c0aee829c1d2d468d89eda75d38e7490e4de575

But since we depend on that value in vdsm, it never reported a default gateway anymore, and caused networks to be out of sync.

So next to 'none' we also check for '0.0.0.0/0' or '::/0'.

michalskrivanek commented 6 months ago

/ost

michalskrivanek commented 6 months ago

/ost