Fix SoftwareSwitch get_switch_id bug