Bug 1533830
Summary: | team values should return to runner's default when empty value entered in nmcli | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Vladimir Benes <vbenes> | ||||
Component: | NetworkManager | Assignee: | Francesco Giudici <fgiudici> | ||||
Status: | CLOSED ERRATA | QA Contact: | Desktop QE <desktop-qa-list> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.5 | CC: | atragler, bgalvani, fgiudici, jreznik, lmiksik, lrintel, rkhan, sukulkar, thaller | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | NetworkManager-1.10.2-11.el7 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-04-10 13:35:58 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Vladimir Benes
2018-01-12 10:35:03 UTC
Created attachment 1383340 [details]
libnm-core: ensure alignment of team.config and other team properties
There are two different behaviors here:
1) string properties specific to runners (runner-hwaddr-policy, runner-tx-hash and runner-agg-select-policy) and runner-tx-hash: when set in nmcli editor, the alignment with the team.config property is not performed. When performed (when saving for instance) the alignment routine is run, bringing back the expected default value (runner dependent). This caused nmcli editor to report "connection is not saved" when quitting as the connection did not changed indeed despite the save. Moreover, what previewed with the "print" command was wrong.
2) integer properties set to no value, would set '0'. This would be properly shown with "print" and saved when "save" is call.
Note that 0 is a legit value there.
The right way to set them to their default value, is to set them with the "default" keyword. What we should expect when setting them to "", could be argued. I would let this as is.
So, addressing just point 1.
Please review attached patch.
(In reply to Francesco Giudici from comment #1) > Created attachment 1383340 [details] > libnm-core: ensure alignment of team.config and other team properties lgtm (In reply to Thomas Haller from comment #2) > (In reply to Francesco Giudici from comment #1) > > Created attachment 1383340 [details] > > libnm-core: ensure alignment of team.config and other team properties > > lgtm Thanks. Merged upstream on master and nm-1-10 https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=381c1a19b6d1903ec3d791df8d8a933fd9c306f3 https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=fa3efd3ed6d91447d24e6f3f3d6c58180a0c36f0 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0778 |