Whamcloud - gitweb
LU-10214 lnet: allow expressions for route config 48/32248/3
authorAmir Shehata <amir.shehata@intel.com>
Thu, 12 Apr 2018 03:24:43 +0000 (20:24 -0700)
committerJohn L. Hammond <jhammond@whamcloud.com>
Wed, 1 Aug 2018 16:35:56 +0000 (16:35 +0000)
commit8c610a5f483d53de7d9579587f304b551c847e99
tree0205a9a63b1b0895e8c4f1b3213313d473650de7
parente124f39b6b4dd56780ba4490b81dca32ab08575c
LU-10214 lnet: allow expressions for route config

Support the ip2nets syntax for route gateway configuration. Only support
a maximum of 128 gateways per configuration command. This upper limit is
to prevent a large number of routes to be configured by mistake. This
feature is available from both command line and YAML interfaces.

Command line examples:
lnetctl route add --net tcp1 --gateway 12.3.4.[2-6]@tcp
lnetctl route del --net tcp1 --gateway 12.3.4.[2-6]@tcp

YAML examples:
route:
    - net: tcp1
      gateway: 12.3.4.[2-20]@tcp

Lustre-change: https://review.whamcloud.com/30511
Lustre-commit: 235e8dea46f6f9ec0021c789cb5b9214cee94e38

Test-Parameters: trivial
Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Change-Id: I0d8a0f94cce7140602a64f13f0401ef209f3ca57
Reviewed-by: Sonia Sharma <sonia.sharma@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/32248
Reviewed-by: Sonia Sharma <sharmaso@whamcloud.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
lnet/utils/lnetconfig/liblnetconfig.c