mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-30 13:24:48 +00:00
0055d8ed58
Part 1, which addresses the issue for simple properties that have a plain remove-by-value function. Rationale: Removing a value/index that does not exist should not be a failure. Woule you like: $ nmcli connection modify "$PROFILE" autoconnect no $ nmcli connection modify "$PROFILE" autoconnect no Error: autoconnect is already disabled So, why would it be a good idea to fail during $ nmcli connection modify "$PROFILE" -vpn.data ca $ nmcli connection modify "$PROFILE" -vpn.data ca Error: failed to remove a value from vpn.data: invalid option 'ca'. Generally, it should not be an error to remove an option, as long as the option itself is valid. For example, $ nmcli connection modify "$PROFILE" -vlan.ingress-priority-map bogus should fail, but $ nmcli connection modify "$PROFILE" -vlan.ingress-priority-map 1:5 should succeed even if there was nothing to remove. |
||
---|---|---|
.. | ||
c-list | ||
c-rbtree | ||
c-siphash | ||
n-acd | ||
nm-utils | ||
systemd | ||
meson.build | ||
nm-common-macros.h | ||
nm-dbus-compat.h | ||
nm-default.h | ||
nm-dispatcher-api.h | ||
nm-ethtool-utils.c | ||
nm-ethtool-utils.h | ||
nm-libnm-core-utils.c | ||
nm-libnm-core-utils.h | ||
nm-meta-setting.c | ||
nm-meta-setting.h | ||
nm-test-libnm-utils.h | ||
nm-test-utils-impl.c | ||
nm-version-macros.h.in |