Skip to content

Commit

Permalink
[YANG][utilities] update sonic DB version string format
Browse files Browse the repository at this point in the history
Old format: version_a_b_c
New format: version_<branch>_<nn>

sonic-utilities:
* a68d3d3a 2023-12-20 | Collect module EEPROM data in dump (sonic-net#3009) [Junchao-Mellanox]
* e7a8def6 2023-12-19 | Enhanced route_check.py for multi_asic platforms (sonic-net#3077) [Deepak Singhal]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
  • Loading branch information
yxieca committed Dec 23, 2023
1 parent 0866610 commit 1e05929
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sonic-yang-models/yang-models/sonic-versions.yang
Original file line number Diff line number Diff line change
Expand Up @@ -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}))';
}
}
}
Expand Down

0 comments on commit 1e05929

Please sign in to comment.