diff options
author | l0crian1 <143656816+l0crian1@users.noreply.github.com> | 2025-03-17 12:59:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-17 12:59:46 -0400 |
commit | 39976646e0944c76c9aa35ea2ba1e0321af47d25 (patch) | |
tree | 22fa2a6034a5c57884aa07e6b7c1a837d28c10fd /src | |
parent | aeb25214ecddab10953b322fc39bc4dc09b15ed5 (diff) | |
download | vyos-1x-39976646e0944c76c9aa35ea2ba1e0321af47d25.tar.gz vyos-1x-39976646e0944c76c9aa35ea2ba1e0321af47d25.zip |
T7138: Fix show qos
This change corrects a behavior witnessed in T7138. If a policy name had a `-` in it, the command would fail, returning nothing.
Diffstat (limited to 'src')
-rwxr-xr-x | src/op_mode/qos.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/qos.py b/src/op_mode/qos.py index b8ca149a0..464b552ee 100755 --- a/src/op_mode/qos.py +++ b/src/op_mode/qos.py @@ -38,7 +38,7 @@ def get_tc_info(interface_dict, interface_name, policy_type): if not policy_name: return None, None - class_dict = op_mode_config_dict(['qos', 'policy', policy_type, policy_name], key_mangling=('-', '_'), + class_dict = op_mode_config_dict(['qos', 'policy', policy_type, policy_name], get_first_key=True) if not class_dict: return None, None |