summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorl0crian1 <143656816+l0crian1@users.noreply.github.com>2025-03-17 12:59:46 -0400
committerGitHub <noreply@github.com>2025-03-17 12:59:46 -0400
commit39976646e0944c76c9aa35ea2ba1e0321af47d25 (patch)
tree22fa2a6034a5c57884aa07e6b7c1a837d28c10fd /src
parentaeb25214ecddab10953b322fc39bc4dc09b15ed5 (diff)
downloadvyos-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-xsrc/op_mode/qos.py2
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