-
Notifications
You must be signed in to change notification settings - Fork 9
Added nv-mlnxipcfg.py #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
I will adhere to your CLA! |
|
Any idea when this MR will get looked at? |
|
|
||
| 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 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.