Skip to content

Commit 3997664

Browse files
authored
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.
1 parent aeb2521 commit 3997664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/op_mode/qos.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def get_tc_info(interface_dict, interface_name, policy_type):
3838
if not policy_name:
3939
return None, None
4040

41-
class_dict = op_mode_config_dict(['qos', 'policy', policy_type, policy_name], key_mangling=('-', '_'),
41+
class_dict = op_mode_config_dict(['qos', 'policy', policy_type, policy_name],
4242
get_first_key=True)
4343
if not class_dict:
4444
return None, None

0 commit comments

Comments
 (0)