Whamcloud - gitweb
LU-10825 lnet: add ip2nets syntax handling for peer 50/32250/3
authorAmir Shehata <amir.shehata@intel.com>
Fri, 23 Mar 2018 17:04:19 +0000 (10:04 -0700)
committerJohn L. Hammond <jhammond@whamcloud.com>
Wed, 1 Aug 2018 16:35:16 +0000 (16:35 +0000)
commite124f39b6b4dd56780ba4490b81dca32ab08575c
treefd2aff892341336e2cb8764a05167b316b37950b
parenta48dc3fd0f738b545571a6d2cfdeb337f2d3243b
LU-10825 lnet: add ip2nets syntax handling for peer

Allow peers to be added using ip2nets syntax, from
both command line and YAML block.

Command line example:
lnetctl peer add --ip2nets 10.10.10.[3-6,9]@tcp
lnetctl peer del --ip2nets 10.10.10.[3-6,9]@tcp

YAML example:
peer:
    ip2nets:
      - nid: 30.10.10.[3-8]@tcp
      - nid: 40.10.10.[9-40]@tcp

Lustre-change: https://review.whamcloud.com/31786
Lustre-commit: 70c95457f6836a9c0a9e95ae0c4bdd20f99a8747

Test-Parameters: trivial
Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Change-Id: I904be8d496ad2be277c3d21dc7f72cbc7ed02b50
Reviewed-by: Sonia Sharma <sonia.sharma@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/32250
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
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
lnet/utils/lnetconfig/liblnetconfig.h
lnet/utils/lnetctl.c