Whamcloud - gitweb
LU-11006 lnet: fix show peer yaml tree with no peer 20/32320/2
authorSonia Sharma <sonia.sharma@intel.com>
Tue, 8 May 2018 04:08:03 +0000 (21:08 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 4 Sep 2018 03:49:05 +0000 (03:49 +0000)
commit40295e5ca3e5ed51c8236a2e641627d687b7d59c
treefae058a05f5c2c99e8a3a8951fb8f7c5f1e12a47
parentbef1069506c38e6d8ebdb4393cccb5a33978a61e
LU-11006 lnet: fix show peer yaml tree with no peer

When no peer exists then the root created for the peer
yaml tree should be deleted. And lnetctl show peer
should not display anything.

Currently lnetctl peer show shows the root string "peer"
even when there is no peer. This create issues when
starting lnet using /etc/lnet.conf derived from the
existing configuration.

Change-Id: Ie310a49e60386b579b48898b032467b1bc112da9
Test-Parameters: trivial
Signed-off-by: Sonia Sharma <sonia.sharma@intel.com>
Reviewed-on: https://review.whamcloud.com/32320
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/utils/lnetconfig/liblnetconfig.c