Skip to content

Commit 4ca2a11

Browse files
committed
[YANG] update sonic DB version string format
Old format: version_a_b_c New format: version_<branch>_<nn> sonic-utilities: * 20d1495 2023-12-21 | [db_migrator] add db migrator version space for 202305/202311 branch (sonic-net#3081) (HEAD -> master, github/master) [Ying Xie] * a68d3d3 2023-12-20 | Collect module EEPROM data in dump (sonic-net#3009) [Junchao-Mellanox] * e7a8def 2023-12-19 | Enhanced route_check.py for multi_asic platforms (sonic-net#3077) [Deepak Singhal] Signed-off-by: Ying Xie <[email protected]>
1 parent d892626 commit 4ca2a11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sonic-yang-models/yang-models/sonic-versions.yang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module sonic-versions {
2323
leaf VERSION {
2424
type string {
2525
length 1..255;
26-
pattern 'version_([1-9]|[1-9]{1}[0-9]{1})_([0-9]{1,2})_([0-9]{1,2})';
26+
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}))';
2727
}
2828
}
2929
}

0 commit comments

Comments
 (0)