Skip to content

Commit

Permalink
[YANG] 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:
* 20d1495b 2023-12-21 | [db_migrator] add db migrator version space for 202305/202311 branch (sonic-net#3081) (HEAD -> master, github/master) [Ying Xie]
* 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 21, 2023
1 parent d892626 commit 4ca2a11
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 4ca2a11

Please sign in to comment.