Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This feature requires changes in multiple components. Mainly the lnetctl interface, the included YAML sub components and in the ksocklnd layer in the kernel as well as the lnet configuration.
So far the The IP address is set in the LNet NID but is ignored by lnetctl and ksocklnd.
To keep a the syntax consistent between static and dynamic configuration a common format will be defined. The format will be interface@ipaddress. The syntax will is backward compatible.The following combinations will be possible
--if interface: The current default behaviour remains the same. The main IP address will be chosen.
--if interface@ipaddress: The main or alias IP address can be specified. The IP address will be checked against the interface.
--if @ipaddress: The first found interface that contains the IP address will be chosenand has to set in the configuration, yaml or lnetctl. It also has to be interpreted in ksocklnd.

Dynamic configuration

lnetctl
The "lnetctl net add" command shall be able to specify the ip address of an interface in the form "lnetctl net add --net tcp1 --nid ipaddress". Equivalent to the add command the "lnetctl net del" shall allow --nid ipaddress. The handling of the the --if interface flag shall remain the same.
The present implementation requests the the IP address of the ethernet interface and sets the IP address in the NID. It doesn't consider any aliases. It shall look for IP address aliases, find the specified IP and set it instead of the main IP address in the interface.

...