Make better documentation for nmcli, NetworkManager Keyfiles
tl;dnr: If you want people to adopt new tech that is WILDLY different from old tech, document the bajeebus out of it with lots of examples...
Do a page search for 'keyfile' on the RHEL 7 networking guide. You'll get one hit, and not a relevant one.
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html-single/Networking_Guide/index.html
The guide only discusses ifcfg-rh which is a legacy transition tool at best - the official docs should do better than that.
The Fedora docs have a bit better coverage of keyfiles:
http://fedoraproject.org/wiki/Networking/Bridging#Using_configuration_files_.28keyfile.29
...but if you want to be real about it, even that documentation kind of sucks because it doesn't provide a solid practical example. Had to find one in the comments of a bugreport of all places (via google):
https://bugzilla.redhat.com/show_bug.cgi?id=1080643#c1
Just a complaint about the state of RHEL 7 docs in a couple places.
Responses
I had similar thoughts on the nmcli documentation and posted comments here:
https://access.redhat.com/discussions/644133
Posting your concerns/issues in that thread may get some visibility as it was actively monitored at the time.
Hello
Could you give me some examples of when you would want to use a keyfile?
I try to document tasks a typical subscriber might reasonably be expected to perform, so use cases would help me.
Thank you
Hello Kodiak
As NetworkManager has a RHEL specific plugin, ifcfg-rh, there should be no need to use the generic keyfile plugin. (I thought you should not have to edit or use any plugin yourself for that matter).
Could you take a look at the bridging chapter in the Networking Guide and tell me if that helps you achieve your task in some other way?
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Networking_Guide/ch-Configure_Network_Bridging.html
Thank you
Hello Kodiak
How do you feel about using the nmcli tool?
The guide was planned to promote the use of nmcli rather than editing config files {covered in the Using the Command Line Interface (CLI) section}.
The instructions for nmcli and editing ifcfg files were recently tested by a colleague. Not saying they could not be improved of course.
The style of the guide is different to older guides. We try to describe tasks rather than things and I was never asked to document the direct editing of keyfiles or changing the ifcfg-rh plugin. So that is why I asked about use cases. Trying to understand if that is easier or better than the other methods.
Thank you
"Does using nmcli result in the placement of text files anywhere? I think it would be foolish for the state of the network to be completely hidden from the filesystem and was hoping if you are moving away from /etc/sysconfig/network-scripts, that it only means the files go somewhere else like /etc/NetworkManager/system-connections."
Using any of the nm-tools (like nmcli
) leads to changes to /etc/sysconfig/network-scripts/
... As far as I'm aware (and I teach RHEL7 classes), there is no plan to "move away from" use of that directory in RHEL7.
Have you read this introductory section explaining about the use of the Command Line Interface (CLI)?
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Networking_Guide/sec-Network_Config_Using_CLI.html
It is followed by two sections also related to your questions.
But please do try one of the methods in the bridging chapter.
From the guide "The file /etc/sysconfig/network is for global settings. Information for VPNs, mobile broadband and PPPoE connections is stored in /etc/NetworkManager/system-connections/. " and NetworkManager uses the ifcfg-rh plug-in to read and write the traditional files in /etc/sysconfig/network-scripts/