Module node_ops

Module node_ops 

Source
Expand description

Node-expression resolution: parsing hostlist strings, NID-to-xname translation, HSM-group expansion, and the authorization helpers that validate the caller can act on the resolved set.

Functions§

from_hosts_expression_to_xname_vec
Translates a ‘host expression’ into a list of xnames.
from_user_hosts_expression_to_xname_vec
Convenience wrapper that fetches node metadata from the backend and resolves a hosts expression to a sorted, deduplicated list of xnames.
get_curated_group_from_xname_hostlist
Group the supplied xnames by their parent HSM group.
get_xname_from_nid_hostlist
Resolve a NID hostlist expression to xnames by cross-referencing available node metadata.
get_xname_from_xname_hostlist
Filter available node metadata to only those xnames present in node_vec.
resolve_target_nodes
Resolve target nodes from either a hosts expression, an explicit HSM group name, or the settings-level HSM group.