Skip to content

Commit

Permalink
Fixed UT bugs and YANG model bugs revealed by UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
assrinivasan committed May 9, 2024
1 parent 4b512d0 commit fc44000
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
},
"STORMOND_POLLING_INTVL_BAD_LEN_MAX": {
"desc": "Configure an invalid daemon polling interval: out of range value",
"eStrKey" : "Pattern"
"eStrKey" : "InvalidValue"
},
"STORMOND_SYNC_INTVL_BAD_LEN_MAX": {
"desc": "Configure an invalid fsstats file sync interval: out of range value",
"eStrKey" : "Pattern"
"eStrKey" : "InvalidValue"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"sonic-stormond-config:sonic-stormond-config": {
"sonic-stormond-config:STORMOND_CONFIG": {
"INTERVALS":{
"daemon_polling_interval" : "",
"daemon_polling_interval" : "-1",
"fsstats_sync_interval" : "86400"

}
Expand All @@ -26,7 +26,7 @@
"sonic-stormond-config:STORMOND_CONFIG": {
"INTERVALS":{
"daemon_polling_interval" : "3600",
"fsstats_sync_interval" : ""
"fsstats_sync_interval" : "five_thousand_two_hundred_seconds"

}
}
Expand Down
4 changes: 2 additions & 2 deletions src/sonic-yang-models/yang-models/sonic-stormond-config.yang
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ module sonic-stormond-config{
leaf daemon_polling_interval {
description "Polling inerval for Storage Monitoring Daemon in STORMOND_CONFIG table";
type string {
length 1..32;
length 1..86400;
}
}

leaf fsstats_sync_interval {
description "FSSTATS JSON file syncing interval for the Storage Monitoring Daemon in STORMOND_CONFIG table";
type string {
length 1..32;
length 1..604800;
}
}
}
Expand Down

0 comments on commit fc44000

Please sign in to comment.