Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature table cli command update #1271

Merged
merged 6 commits into from
Nov 26, 2020
Merged

Conversation

abdosi
Copy link
Contributor

@abdosi abdosi commented Nov 25, 2020

What I did:

  • added new value "always_enabled" for the state and auto-restart field of Feature Table

  • Once the field value is "always_enabled" it can-not be changed from config feature .. command

  • Updated Command Reference Manual

How I Verify:

Added the unit test case to change state/auto-restart field value of feature that has always_enabled and it should not update the field value.

Copy link
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Can you also please update the Command Line Reference guide as part of this PR? I realized that the guide did not get updated once we changed the command from show/config container feature autorestart to show/config feature autorestart, and show/config feature state were never added. See: https://github.com/Azure/sonic-utilities/blob/master/doc/Command-Reference.md#container-auto-restart.

Thus can you please do the following:

  1. Rename (and relocate alphabetically) the sections for show/config container feature autorestart to show/config feature autorestart and update the example output to display the "always_enabled" states
  2. Add documentation for show/config container feature state commands

@abdosi
Copy link
Contributor Author

abdosi commented Nov 25, 2020

LGTM. Can you also please update the Command Line Reference guide as part of this PR? I realized that the guide did not get updated once we changed the command from show/config container feature autorestart to show/config feature autorestart, and show/config feature state were never added. See: https://github.com/Azure/sonic-utilities/blob/master/doc/Command-Reference.md#container-auto-restart.

Thus can you please do the following:

  1. Rename (and relocate alphabetically) the sections for show/config container feature autorestart to show/config feature autorestart and update the example output to display the "always_enabled" states
  2. Add documentation for show/config container feature state commands

Thanks @jleveque for pointing this out. I have updated the document accordingly.

doc/Command-Reference.md Outdated Show resolved Hide resolved
Signed-off-by: Abhishek Dosi <[email protected]>
Signed-off-by: Abhishek Dosi <[email protected]>
abdosi added a commit to sonic-net/sonic-buildimage that referenced this pull request Nov 25, 2020
…d auto-restart fields. (#6000)

Added new flag value 'always_enabled' for the state and auto-restart field of feature table

init_cfg.json is updated to initialize state field of database/swss/syncd/teamd feature and auto-restart field of database feature
as always_enabled

Once the state/auto-restart value is initialized as "always_enabled" it is immutable and cannot be change via feature config commands. (config feature..) PR#sonic-net/sonic-utilities#1271

hostcfgd will not take any action if state field value is 'always_enabled'

Since we have always_enabled field for auto-restart updated supervisor-proc-exit-listener
not to have special check for database and always rely on value from Feature table.
abdosi added a commit to sonic-net/sonic-buildimage that referenced this pull request Nov 25, 2020
…d auto-restart fields. (#6000)

Added new flag value 'always_enabled' for the state and auto-restart field of feature table

init_cfg.json is updated to initialize state field of database/swss/syncd/teamd feature and auto-restart field of database feature
as always_enabled

Once the state/auto-restart value is initialized as "always_enabled" it is immutable and cannot be change via feature config commands. (config feature..) PR#sonic-net/sonic-utilities#1271

hostcfgd will not take any action if state field value is 'always_enabled'

Since we have always_enabled field for auto-restart updated supervisor-proc-exit-listener
not to have special check for database and always rely on value from Feature table.
@abdosi
Copy link
Contributor Author

abdosi commented Nov 25, 2020

@daall Seems some issue with DVS test case for Policer.
These failure are un-related to this PR.

@daall
Copy link
Contributor

daall commented Nov 25, 2020

@daall Seems some issue with DVS test case for Policer.
These failure are un-related to this PR.

ack

@abdosi
Copy link
Contributor Author

abdosi commented Nov 25, 2020

retest this please

@abdosi abdosi merged commit cfb7a22 into sonic-net:master Nov 26, 2020
@abdosi abdosi deleted the feature_update branch November 26, 2020 01:25
abdosi added a commit that referenced this pull request Nov 26, 2020
added new value "always_enabled" for the state and auto-restart field of Feature Table

Once the field value is "always_enabled" it can be changes from config feature .. command

Updated Command Reference Manual
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
…d auto-restart fields. (sonic-net#6000)

Added new flag value 'always_enabled' for the state and auto-restart field of feature table

init_cfg.json is updated to initialize state field of database/swss/syncd/teamd feature and auto-restart field of database feature
as always_enabled

Once the state/auto-restart value is initialized as "always_enabled" it is immutable and cannot be change via feature config commands. (config feature..) PR#sonic-net/sonic-utilities#1271

hostcfgd will not take any action if state field value is 'always_enabled'

Since we have always_enabled field for auto-restart updated supervisor-proc-exit-listener
not to have special check for database and always rely on value from Feature table.
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
[routeorch] Handle the empty "nexthop" field for backward compatibility (sonic-net#1263)
[vnet] Set MTU for the VNET bridge RIF in BITMAP implementation (sonic-net#1271)
 [vnet] Verify if BITMAP route exists before creating new one to avoid
 dublication (sonic-net#1272)
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
49cd91d (HEAD -> 201911, origin/201911) Feature table cli command update (sonic-net#1271)
167d67a [201911]  CRM show/config commands changes for multi-asic (sonic-net#1127) (sonic-net#1236)

Signed-off-by: Abhishek Dosi <[email protected]>
ganglyu pushed a commit to sonic-net/sonic-host-services that referenced this pull request Jul 12, 2022
…d auto-restart fields. (#6000)

Added new flag value 'always_enabled' for the state and auto-restart field of feature table

init_cfg.json is updated to initialize state field of database/swss/syncd/teamd feature and auto-restart field of database feature
as always_enabled

Once the state/auto-restart value is initialized as "always_enabled" it is immutable and cannot be change via feature config commands. (config feature..) PR#sonic-net/sonic-utilities#1271

hostcfgd will not take any action if state field value is 'always_enabled'

Since we have always_enabled field for auto-restart updated supervisor-proc-exit-listener
not to have special check for database and always rely on value from Feature table.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants