Skip to content
Snippets Groups Projects
Commit 8c610a5f authored by Amir Shehata's avatar Amir Shehata Committed by John L. Hammond
Browse files

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: 235e8dea

Test-Parameters: trivial
Signed-off-by: default avatarAmir Shehata <amir.shehata@intel.com>
Change-Id: I0d8a0f94cce7140602a64f13f0401ef209f3ca57
Reviewed-by: default avatarSonia Sharma <sonia.sharma@intel.com>
Tested-by: Jenkins
Tested-by: default avatarMaloo <hpdd-maloo@intel.com>
Reviewed-by: default avatarDmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarMinh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/32248


Reviewed-by: default avatarSonia Sharma <sharmaso@whamcloud.com>
Reviewed-by: default avatarAmir Shehata <ashehata@whamcloud.com>
Reviewed-by: default avatarJohn L. Hammond <jhammond@whamcloud.com>
parent e124f39b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment