You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcpcfg/lib/has_role

14 lines
330 B

[%
# vi: ft=tt2
# Checks whether a given host has a given role.
#
# @param argv.host The hostname to check the role for.
# @param argv.role The role of the node to process, one of:
# proxy, lb, mgmt
# @return out 0 if false, 1 if true.
out = ngcp.has_role(argv.host, argv.role);
-%]