Whamcloud - gitweb
LU-7734 lnet: Enhance DLC ip2nets
authorAmir Shehata <amir.shehata@intel.com>
Thu, 8 Sep 2016 01:32:34 +0000 (18:32 -0700)
committerAmir Shehata <amir.shehata@intel.com>
Wed, 25 Jan 2017 03:10:17 +0000 (19:10 -0800)
commit9ff3b408aee72b97ebff9dc04becb14f1e6887b2
treeba70b9470c3a4e2ba48d1b5566736f75d7650257
parentf85f1cd257871a7a54600463a7f6f6ad1513f37e
LU-7734 lnet: Enhance DLC ip2nets

If the interfaces YAML block is specified then commission
the interfaces which match the ip-range if it is defined.
Otherwise commission the interfaces as long as they exist
and are up.

If the interfaces YAML block is not specified but an
ip-range is specified then configure all interfaces
in the system that match the ip-range.

If no interfaces and no ip-range is specified, then
commission the first interface that exists and is UP.

Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Change-Id: I01b2ced6f50fed2528f626166154be874f394e8b
Reviewed-on: http://review.whamcloud.com/22372
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Olaf Weber <olaf@sgi.com>
lnet/utils/lnetconfig/liblnetconfig.c
lnet/utils/lnetctl.c