Whamcloud - gitweb
LU-9480 lnet: add "lnetctl discover"
[fs/lustre-release.git] / lnet / utils / lnetconfig / liblnetconfig.h
index 3909f3b..fad28b2 100644 (file)
@@ -381,6 +381,19 @@ int lustre_lnet_list_peer(int seq_no,
 int lustre_lnet_ping_nid(char *pnid, int timeout, int seq_no,
                        struct cYAML **show_rc, struct cYAML **err_rc);
 
+/* lustre_lnet_discover_nid
+ *   Discover the nid list, pnids.
+ *
+ *    pnids - NID list to discover.
+ *    force - force discovery.
+ *    seq_no - sequence number of the command.
+ *    show_rc - YAML structure of the resultant show.
+ *    err_rc - YAML strucutre of the resultant return code.
+ *
+ */
+int lustre_lnet_discover_nid(char *pnid, int force, int seq_no,
+                            struct cYAML **show_rc, struct cYAML **err_rc);
+
 /*
  * lustre_yaml_config
  *   Parses the provided YAML file and then calls the specific APIs