LU-9119 lnet: Fix deleting peers from YAML
Deleting peers with lnetctl command "import --del < config.yaml" throws error The above command deletes prim_nid first and then tries deleting the other nids which results in error, since deleting the primary_nid deletes the entire peer and then after that we try to delete non-existent NIDs. The behavior should be if the primary_nid is present in the list of NIDs then delete the entire peer, otherwise delete only the NIDs specified within the peer Test-Parameters: trivial Signed-off-by:Sonia Sharma <sonia.sharma@intel.com> Signed-off-by:
Amir Shehata <amir.shehata@intel.com> Change-Id: I55114fca4d332c950872bd446e02e4f0904ee716 Reviewed-on: https://review.whamcloud.com/27001 Tested-by: Jenkins Tested-by:
Maloo <hpdd-maloo@intel.com> Reviewed-by:
Doug Oucharek <doug.s.oucharek@intel.com> Reviewed-by:
Oleg Drokin <oleg.drokin@intel.com>
Loading
Please register or sign in to comment