def _get_baremetal_switch_info(self, link_info):
try:<EOL><INDENT>switch_info = link_info['<STR_LIT>']<EOL>if not isinstance(switch_info, dict):<EOL><INDENT>switch_info = jsonutils.loads(switch_info)<EOL><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>LOG.error("<STR_LIT>",<EOL>{"<STR_LIT>": e})<EOL>switch_info = {}<EOL><DEDENT>return switch_info<EOL>
Get switch_info dictionary from context.