Bug 1852317
Summary: | [RFE] Ability to report DNS_SEARCH field via nmcli | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | jnikolak |
Component: | NetworkManager | Assignee: | Ana Cabral <acabral> |
Status: | CLOSED ERRATA | QA Contact: | Matej Berezny <mberezny> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.2 | CC: | acabral, acardace, atragler, bgalvani, fge, jmaxwell, lrintel, mberezny, nm-team, rkhan, sukulkar, thaller, till, vbenes |
Target Milestone: | rc | Keywords: | FutureFeature, Triaged |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | NetworkManager-1.32.4-1.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-09 19:28:55 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: |
Description
jnikolak
2020-06-30 06:33:41 UTC
First of all, there is a fundamental difference between a connection profile (short "connection") and an actual interface (a "device"). A profile is "what you want to configure". It's only settings and descriptive. Nothing "happens". A device is something that currently exists on the system, that has configuration (IP addresses) and things happen (DHCP runs, a profile activates). In NetworkManager, you activate a profile, to make things on a device happen. To get the contents of the profile do: nmcli -g ipv4.dns-search connection show "$PROFILE" Indeed, you cannot get the DNS search domains for a device. This works: nmcli -g IP4.DOMAIN device show "$DEVICE" but nmcli -g IP4.SEARCHES device show "$DEVICE" does not. Likewise, if a profile is currently active, then you can get the same (upper case) runtime information of the device via nmcli -g IP4.DOMAIN connection show "$PROFILE" (again, the field IP4.SEARCHES is not available, like it isn't available for `device show`). Yes, that should be added. Thanks for the explanation on the difference between profile and devices. I will surely add that to the redhat solution. 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 (Moderate: NetworkManager security, bug fix, and enhancement update), 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/RHSA-2021:4361 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days |