[YANG] update sonic DB version string format (#17608)

Old format: version_a_b_c
New format: version_<branch>_<nn>

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
This commit is contained in:
Ying Xie 2024-01-02 08:38:30 -08:00 committed by GitHub
parent c410b18f8f
commit a0210df43a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ module sonic-versions {
leaf VERSION {
type string {
length 1..255;
pattern 'version_([1-9]|[1-9]{1}[0-9]{1})_([0-9]{1,2})_([0-9]{1,2})';
pattern 'version_(([1-9]|[1-9]{1}[0-9]{1})_([0-9]{1,2})_([0-9]{1,2})|([1-9]{1}[0-9]{5})_([0-9]{2}))';
}
}
}