Closed mssonicbld closed 3 weeks ago
Summary: Fixes # (issue)
Fix the following issue:
def is_sonic_console(conn_graph_facts, dut_hostname): > return conn_graph_facts['device_console_info'][dut_hostname]["Os"] == "sonic" E KeyError: 'Os'
Signed-off-by: Longxiang Lyu lolv@microsoft.com
Some lab device console information doesn't have the "Os" attribute. Let's retrieve it with an empty string as a default.
"Os"
Run on dualtor.
Original PR: https://github.com/sonic-net/sonic-mgmt/pull/14176
Description of PR
Summary: Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Fix the following issue:
Signed-off-by: Longxiang Lyu lolv@microsoft.com
How did you do it?
Some lab device console information doesn't have the
"Os"
attribute. Let's retrieve it with an empty string as a default.How did you verify/test it?
Run on dualtor.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation