Skip to content

[check_db_integrity] Add NETNS environment#104

Closed
stepanblyschak wants to merge 2 commits intomasterfrom
check_db_in-netns
Closed

[check_db_integrity] Add NETNS environment#104
stepanblyschak wants to merge 2 commits intomasterfrom
check_db_in-netns

Conversation

@stepanblyschak
Copy link
Owner

What I did

How I did it

How to verify it

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@stepanblyschak stepanblyschak changed the title [check_db_integrity] Add --namespace option [check_db_integrity] Add NETNS environment Nov 6, 2025
for db_name, schema in DB_SCHEMA.items():
db_dump_file = "/tmp/{}.json".format(db_name)
dump_db_cmd = ["sonic-db-dump", "-n", 'COUNTERS_DB', "-y"]
db_dump_file = "/tmp/{}{}.json".format(NETNS, db_name)

Choose a reason for hiding this comment

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

Can we change to "/tmp/{}{}.json".format(db_name, NETNS) to follow common multi asic approach?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Done

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