Skip to content

Commit

Permalink
Add functional spec for optional feature control enhancement (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
pra-moh authored and jleveque committed Oct 19, 2019
1 parent 5aeb7fc commit 0f4311a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doc/Optional-Feature-Control.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# SONiC Optional Feature Control Enhancement #

## Revision ##

| Rev | Date | Author | Change Description |
|:---:|:--------:|:-----------:|--------------------|
| 0.1 | 10/10/19 | Pradnya Mohite | Initial version |

## Scope ##
Add support to enable/disable features in sonic. Features like telemetry agent can be optional and this enhancement will provide a way to control that.

### Implementation Details ###
* Add feature table in config db.
* Modify sonic-cfggen tool to add table and enable the telemetry feature by default.
* For each feature, key is FEATURE|feature name, status :enabled/disabled.
* Add "config feature enable|disable [feature name]" command line.
* Add support for show and config commands.
* Add feature in hostcfgd to listen for Config DB FEATURE table entry changes, and enable & start or stop & disable the respective service as appropriate.
* When hostcfgd first starts, it reads all entries in the FEATURE table and compares with current status of each service. If there is mismatch, hostcfgd will enable & start or stop & disable as appropriate.

0 comments on commit 0f4311a

Please sign in to comment.