Skip to content

Commit 647b57e

Browse files
authored
[iface_namingmode] Convert iface_speed to string (#2203)
Convert `iface_speed` that from Ansible variables to string to align with the return from `port_alias`. Signed-off-by: Longxiang Lyu <[email protected]>
1 parent dd108e7 commit 647b57e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/iface_namingmode/test_iface_namingmode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def setup(duthost):
3333
if not port_speed_facts:
3434
all_vars = duthost.host.options['variable_manager'].get_vars()
3535
iface_speed = all_vars['hostvars'][duthost.hostname]['iface_speed']
36+
iface_speed = str(iface_speed)
3637
port_speed_facts = {_: iface_speed for _ in
3738
port_alias_facts['port_alias_map'].keys()}
3839

0 commit comments

Comments
 (0)