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

HLD for Golden config CLI support in multi-asic #1684

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wen587
Copy link
Contributor

@wen587 wen587 commented Apr 28, 2024

Repo PR Title State
sonic-utilities [config]Support multi-asic Golden Config override with fix GitHub issue/pull request detail
sonic-utilities [show] Update show run all to cover all asic config in multiasic GitHub issue/pull request detail
sonic-utilities [config]Improve config save cli to save to one file for multiasic GitHub issue/pull request detail
sonic-utilities [[config]Improve config reload cli to consume one file for multiasic]

@wen587 wen587 marked this pull request as ready for review April 28, 2024 05:48
@wen587 wen587 requested a review from qiluo-msft April 28, 2024 05:48
qiluo-msft pushed a commit to sonic-net/sonic-utilities that referenced this pull request May 17, 2024
)

HLD design : sonic-net/SONiC#1684

#### What I did
Add support for config save to one file for multi-aisc.
#### How I did it
Extend support for one file save for multiasic using the below format:
```
{
  "localhost": {/*host config*/},
  "asic0": {/*asic0 config*/},
  ...
  "asicN": {/*asicN config*/}
}
```
#### How to verify it
Unit test and manual test on multiasic platform.
Example running multi:
```
admin@str2-8800-sup-2:~$ sudo config save -y tmp.json
Integrate each ASIC's config into a single JSON file tmp.json.
admin@str2-8800-sup-2:~$ cat tmp.json |more
{
    "localhost": {
        "ACL_TABLE": {
            "NTP_ACL": {
                "policy_desc": "NTP_ACL",
                "services": [
                    "NTP"
...
    "asic0": {
        "AUTO_TECHSUPPORT": {
            "GLOBAL": {
                "available_mem_threshold": "10.0",
```
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.

None yet

1 participant