I need to add specific types for parameters in confd.cli. I am executing some scripts from confd.cli, and I want the parameters to have some restrictions on the type, for example: ip, filename. Any way to to do this via types under params in the xml.
See the clispec(5) man page under /clispec/$MODE/cmd/params/param/type/file
and
/clispec/$MODE/cmd/params/param/type/simpleType
IP address simpleType example:
<simpleType name="inetAddressIP" namespace="http://tail-f.com/ns/confd/1.0"/>
Thanks, can we do something for strings and give a regex pattern to match, for example for file names.
I believe you got your question answered here Define custom simpletype
1 Like