diff options
author | Dan Winship <danw@gnome.org> | 2014-09-15 13:30:07 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-09-17 08:21:21 -0400 |
commit | c47165081a6a8b11792c01b795c97e9aab56984b (patch) | |
tree | cd96e3211ca8691c14081ae4463a1ba328e07ad7 /libnm-core/nm-setting-team.c | |
parent | 6c6cec0366453d6f1820c8dbf814da88f0dd2409 (diff) | |
download | NetworkManager-c47165081a6a8b11792c01b795c97e9aab56984b.tar.gz |
libnm-core: drop the ability to verify settings from property overrides
It needs to be possible to deserialize a connection hash into an
invalid NMConnection; in particular, AddAndActivateConnection()
explicitly allows this.
Previously, the SetFunc and NotSetFunc passed to
_nm_setting_class_override_property() could return a verification
error immediately, but this functionality has to go away if we're
going to be able to deserialize invalid connections.
That functionality was only used in the handling of invalid virtual
interface names; reorganize how that code works so that
NMSettingConnection does all of the verification itself. (The code to
make sure that it returned the "correct" error domain in that case
turned out to be irrelevant, since the setting error domains don't get
serialized over D-Bus correctly anyway.)
Diffstat (limited to 'libnm-core/nm-setting-team.c')
-rw-r--r-- | libnm-core/nm-setting-team.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-core/nm-setting-team.c b/libnm-core/nm-setting-team.c index 5946ec75a8..8fb94c3992 100644 --- a/libnm-core/nm-setting-team.c +++ b/libnm-core/nm-setting-team.c @@ -185,5 +185,5 @@ nm_setting_team_class_init (NMSettingTeamClass *setting_class) _nm_setting_class_add_dbus_only_property (parent_class, "interface-name", G_TYPE_STRING, _nm_setting_get_deprecated_virtual_interface_name, - _nm_setting_set_deprecated_virtual_interface_name); + NULL); } |