Having the following validation statement in https://github.com/vyos/vyos-1x/blob/current/interface-definitions/service_router-advert.xml.in for e.g.
<leafNode name="valid-lifetime">
<properties>
<help>Time in seconds that the prefix will remain valid (default: 30 days)</help>
<completionHelp>
<list>infinity</list>
</completionHelp>
<valueHelp>
<format>1-4294967295</format>
<description>Time in seconds that the prefix will remain valid</description>
</valueHelp>
<valueHelp>
<format>infinity</format>
<description>Prefix will remain preferred forever</description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 0-4294967295"/>
<regex>(infinity)</regex>
</constraint>
</properties>
<defaultValue>2592000</defaultValue>
</leafNode>Will print: 'infinity' is not a valid integer number but the value is accepted. How can we both validate a string an an integer for the same node?