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

Script to apply configlet added to /usr/bin in image. #3564

Closed
wants to merge 5 commits into from

Conversation

renukamanavalan
Copy link
Contributor

- What I did
SONiC requires the ability to apply configlets.
This script is built on top of ConfigDBConnector
This is a very simple script that parses and invokes API from ConfigDBConnector to apply the updates.
- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

This enables, providing same key multiple times within one action.
This is required by NDM, as it may add PORTCHANNEL table multiple times
as one per device.
This format is reviewed with NDM team.
@renukamanavalan
Copy link
Contributor Author

retest this please.

…utermost list.

This is to help an entry get completely digested by SONiC daemons, before updating/deleting another.
@@ -446,6 +446,9 @@ EOF
## Copy over clean-up script
sudo cp ./files/scripts/core_cleanup.py $FILESYSTEM_ROOT/usr/bin/core_cleanup.py

## Copy over configlet application script
sudo cp ./files/image_config/configlet/configlet.py $FILESYSTEM_ROOT/usr/bin/configlet.py
Copy link
Collaborator

Choose a reason for hiding this comment

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

suggest to move this into sonic utilities

@renukamanavalan
Copy link
Contributor Author

Moved to sonic-utilities and added to setup.py, which would copy to /usr/bin. Hence this PR is no longer needed.

@renukamanavalan renukamanavalan deleted the configlet branch April 17, 2022 22:07
mssonicbld added a commit that referenced this pull request Oct 3, 2024
…atically (#20411)

#### Why I did it
src/sonic-utilities
```
* 008a078a - (HEAD -> master, origin/master, origin/HEAD) Add Unit Test for portstat (#3564) (5 hours ago) [Changrong Wu]
```
#### How I did it
#### How to verify it
#### Description for the changelog
saksarav-nokia pushed a commit to saksarav-nokia/sonic-buildimage that referenced this pull request Oct 9, 2024
…atically (sonic-net#20411)

#### Why I did it
src/sonic-utilities
```
* 008a078a - (HEAD -> master, origin/master, origin/HEAD) Add Unit Test for portstat (sonic-net#3564) (5 hours ago) [Changrong Wu]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants