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

[chassis] Add chassis support for CLI "config qos reload" #3233

Merged
merged 5 commits into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2994,7 +2994,14 @@ def _qos_update_ports(ctx, ports, dry_run, json_data):
for table_name in tables_multi_index:
entries = config_db.get_keys(table_name)
for key in entries:
port, _ = key
# Add support for chassis/multi-dut:
# on a single-dut, key = ('Ethernet136', '6')
# while on a chassis, key = ('str2-chassis-lcx-1', 'Asic0', 'Ethernet84', '5')
for element in key:
if element.startswith('Eth'):
port = element
break
assert port is not None, "Port is not found in config DB"
if not port in portset_to_handle:
continue
config_db.set_entry(table_name, '|'.join(key), None)
Expand Down
Loading