Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/sonic-yang-models/doc/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,10 @@ The FG_NHG_PREFIX table provides the FG_NHG_PREFIX for which FG behavior is desi
"WRED_ECN_PORT": {
"FLEX_COUNTER_STATUS": "enable",
"POLL_INTERVAL": "1000"
},
"SWITCH": {
"FLEX_COUNTER_STATUS": "enable",
"POLL_INTERVAL": "1000"
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/sonic-yang-models/tests/files/sample_config_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -1525,6 +1525,10 @@
"SRV6": {
"FLEX_COUNTER_STATUS": "enable",
"POLL_INTERVAL": "10000"
},
"SWITCH": {
"FLEX_COUNTER_STATUS": "enable",
"POLL_INTERVAL": "60000"
}
},
"FLOW_COUNTER_ROUTE_PATTERN": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
"SRV6": {
"FLEX_COUNTER_STATUS": "enable",
"POLL_INTERVAL": 1000
},
"SWITCH": {
"FLEX_COUNTER_STATUS": "enable",
"POLL_INTERVAL": 1000
}
}
}
Expand Down
13 changes: 13 additions & 0 deletions src/sonic-yang-models/yang-models/sonic-flex_counter.yang
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,19 @@ module sonic-flex_counter {
}
}

container SWITCH {
/* SWITCH_STAT_COUNTER_FLEX_COUNTER_GROUP */
leaf FLEX_COUNTER_STATUS {
type flex_status;
}
leaf FLEX_COUNTER_DELAY_STATUS {
type flex_delay_status;
}
leaf POLL_INTERVAL {
type poll_interval;
}
}

}
/* end of container FLEX_COUNTER_TABLE */

Expand Down
Loading