Open
Conversation
Author
|
I will adhere to your CLA! |
Author
|
Any idea when this MR will get looked at? |
joehandzik
reviewed
Aug 4, 2022
|
|
||
| nv-mlnxipcfg.py configures and sets persistency behavior for IP addresses, IP rules, IP route, and ARP settings | ||
|
|
||
| Requires: Python 3.x and python3-click |
Contributor
There was a problem hiding this comment.
This is my biggest concern - that there are non-inbox (I assume) dependencies for this code to run without a requirements.txt file or something similar to facilitate someone bootstrapping this correctly. Is it too much trouble to ask that you include a requirements.txt file, along with instructions on how to use it?
inf0rmatiker
reviewed
Dec 3, 2025
Comment on lines
+114
to
+127
| BOOTPROTO=none | ||
| NAME={} | ||
| DEVICE={} | ||
| ONBOOT=yes | ||
| IPADDR={} | ||
| PREFIX={} | ||
| DEFROUTE=yes | ||
| GATEWAY={} | ||
| ROUTING_RULE="priority 32761 from {} table {}" | ||
| IPV4_FAILURE_FATAL=no | ||
| IPV6INIT=yes | ||
| IPV6_AUTOCONF=yes | ||
| IPV6_DEFROUTE=yes | ||
| IPV6_FAILURE_FATAL=no |
There was a problem hiding this comment.
RHEL/Rocky 9.X and onward have moved away from using ifcfg network-script files, in favor of NetworkManager connection profiles (see /etc/NetworkManager/system-connections/*.nmconnection for what those look like).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This small python script may be useful to some people requiring configuration of multiple, consecutive IP and ARP settings.
Only the starting IP address/netmask is required (either IPv4 or IPv6). The "flush" option can be given and this will
remove all IP address (ip addr flush) before adding an IP address. The "verbose" option just shows
more detail of the steps taken. The "dryrun" option will show the steps taken but will not actually configure anything.
You can also specify which devices you wish to configure as comma separated strings ("-d eth1,eth2,eth3").
More details are provided in the README file.