fixed create_vswitch_table