After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 729845 - Clean up connection matching algorithms
Clean up connection matching algorithms
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: IP and DNS config
unspecified
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks: nm-1-2
 
 
Reported: 2014-05-08 21:23 UTC by Dan Williams
Modified: 2016-01-20 14:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Williams 2014-05-08 21:23:51 UTC
Thomas says...

----
For the record:

I am doubting this algorithm to remove the properties from the settings if we match it and then check at the end, that no settings are left.

This seems wrong to me because the settings properties are present in the dictionary, *iff* they differ from the default value. Why would we remove non-default properties and ensuring that we removed that all? These default values don't seem any special for check_p_match().

Anyway, if it works for now, covering all previous cases + the bug you are trying to fix, I am fine with it. In general, I think our algorithm for matching is wrong/insufficient, and we will have to revise/improve it later -- which means, we really have to write good test cases now!

Another thing that might be improved later, is that nm_utils_match_connection() keeps the first @best_match it finds, instead improving later on, if if finds a still better one... or if there are two equal connections, we should prioritize least-recently-used...
----

So lets continue that discussion here and maybe make some fixes.
Comment 1 Dan Williams 2014-07-03 18:11:49 UTC
One issue I found is bug 732703 for bond options.
Comment 2 Dan Williams 2014-12-03 21:46:32 UTC
We're probably not going to do anything additional here unless somethign really, really important comes up.
Comment 3 Thomas Haller 2016-01-20 14:55:34 UTC
closing this bug.

There are not concrete issues that needs to be fixed here. And in the long term, connection assumption should anyway work entirely different so that we don't generate-and-match connections.

See bug 746440 and https://mail.gnome.org/archives/networkmanager-list/2015-November/msg00031.html