mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
When `setting_type` is `NM.SettingMatch`, `setting_type.new()` will not work because `nm_setting_match_new()` symbol is only exposed and usable since libnm version 1.32 (using `setting_type.new()` is equivalent to call libnm function `nm_setting_*_new()`). Function `setting_type()` will always construct an instance of that `setting_type` and will not need a workaround when `setting_type` is `NM.SettingMatch`. So drop `setting_type.new()` in favor of `setting_type()`. Signed-off-by: Wen Liang <liangwen12year@gmail.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| network_connections.py | ||