Whamcloud - gitweb
LU-17455 scripts: add IPv6 support to ksocklnd-config 33/54833/4
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Wed, 17 Apr 2024 21:15:22 +0000 (14:15 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 May 2024 18:39:36 +0000 (18:39 +0000)
commite35bafc3089776629de75f506ef0f73f90d92b53
tree135ce6a0a5e554a55c32d5ce19f2eaac65053106
parent36a1074ca0225d675c1e3272c07b1f1990e1c3cb
LU-17455 scripts: add IPv6 support to ksocklnd-config

Expand ksocklnd-config script to support IPv6.
For every interface listed as the argument, check if IPv6
address is configured and set up routing accordingly.
The change replicates existing behavior for IPv4:
   - if existing route is found for the interface,
     or skip_mr_routing is enabled, the script skips
     adding a new route and prints a warning
   - if default gateway is found on the same subnet,
     a source-based rule and route are added for the
     IP/interface using the gateway
   - if default gateway is not found, a source-based rule
     and a local route are added for the IP/interface

Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: I69e249f2858a201f1b108afa05cce9fdf4ee8c80
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54833
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/scripts/ksocklnd-config
lustre/tests/sanity-lnet.sh