Invalid value error from confd cli for the route-target and route-distinguisher

Hi,

I am using the ietf-routing-types.yang in which the route-target and route-distinguisher have the valid values as “0:2:2” but it fails with invalid string error in CLI. If I set “0:02:02”, it works fine.

Snapshot of the regex match in yang file
typedef route-distinguisher {
type string {
pattern
‘(0:(6553[0-5]|655[0-2]\d|65[0-4]\d{2}|6[0-4]\d{3}|’
+ ‘[0-5]?\d{0,3}\d):(429496729[0-5]|42949672[0-8]\d|’
+ ‘4294967[01]\d{2}|429496[0-6]\d{3}|42949[0-5]\d{4}|’
+ ‘4294[0-8]\d{5}|429[0-3]\d{6}|42[0-8]\d{7}|4[01]\d{8}|’
+ ‘[0-3]?\d{0,8}\d))|’
+ ‘(1:(((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5]).){3}(\d|[1-9]\d|’
+ ‘1\d{2}|2[0-4]\d|25[0-5])):(6553[0-5]|655[0-2]\d|’
+ ‘65[0-4]\d{2}|6[0-4]\d{3}|[0-5]?\d{0,3}\d))|’
+ ‘(2:(429496729[0-5]|42949672[0-8]\d|4294967[01]\d{2}|’
+ ‘429496[0-6]\d{3}|42949[0-5]\d{4}|4294[0-8]\d{5}|’
+ ‘429[0-3]\d{6}|42[0-8]\d{7}|4[01]\d{8}|[0-3]?\d{0,8}\d):’
+ ‘(6553[0-5]|655[0-2]\d|65[0-4]\d{2}|6[0-4]\d{3}|’
+ ‘[0-5]?\d{0,3}\d))|’
+ ‘(([3-9a-fA-F]|[1-9a-fA-F][\da-fA-F]{1,3}):’
+ ‘[\da-fA-F]{1,12})’;
}

The command snapshot from the CLI, it throws error as below.
rsachde_Host2(config-network-instance-vrf)# network-instances network-instance vrf l3vpn route-distinguisher config rd 0:2:2
-----------------------------------------------------------------------------------------------------------------------^
syntax error: “0:2:2” is an invalid value.

rsachde_Host2(config-network-instance-vrf)# network-instances network-instance vrf l3vpn route-distinguisher config rd 0:02:02
rsachde_Host2(config-network-instance-vrf)# commit
Commit complete.

Can you please suggest on this ?