Hi Team, I have a requirement to limit the count of address types like ipv4: ipv6 and DNS: .
leaf-list host {
description
"Match the Host portion of the URI";
when "../type = 'sip'";
must "not (../pattern)" {
error-message "Please remove pattern before proceeding";
}
tailf:cli-list-syntax;
tailf:cli-full-command;
tailf:cli-full-no;
max-elements 13;
type union {
type string {
length "1..32";
pattern '([0-9,A-Z,a-z-]*T?)';
}//alphanumeric
type inet:ipv4-address;
type inet:ipv6-address;
}
}
Is it possible to get the count of ipv4 ipv6 addresses? (count(ipv4 )+count(ipv46)) < 10 ;
Thank you for helping here.