Skip to content

Commit

Permalink
[202305][yang][sonic-utilities] update sonic DB version pattern (soni…
Browse files Browse the repository at this point in the history
…c-net#17602)

Supports:
- old version: version_a_b_c
- new version: version_<branch>_<nn>

sonic-utilities:
* b0908bd7 2023-12-21 | [202305][db_migrator] add db migrator version space for 202305/202311 branch (sonic-net#3084) (HEAD -> 202305, github/202305) [Ying Xie]
* 8f343ebb 2023-08-16 | [GCU] Add PORT table StateDB Validator (sonic-net#2936) [isabelmsft]

Signed-off-by: Ying Xie <[email protected]>
  • Loading branch information
yxieca authored Dec 22, 2023
1 parent 40488d3 commit 415c0b7
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 415c0b7

Please sign in to comment.