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 and filters a ‘host expression’ into a list of xnames. a host expression is a comma separated list of NIDs or XNAMEs, a regex or a hostlist NOTE: user can provice a host expression and expand the list to all siblings
- get_
curated_ hsm_ group_ from_ xname_ hostlist - Returns a HashMap with keys HSM group names the user has access to and values a curated list of memembers that matches hostlist
- 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_
hosts_ expression - Convenience wrapper that fetches node metadata from the backend and resolves a hosts expression to a sorted, deduplicated list of xnames.
- resolve_
target_ nodes - Resolve target nodes from either a hosts expression, an explicit HSM group name, or the settings-level HSM group.
- validate_
xname_ format - Return
trueifxnamematches the HPE Cray xname regex.