added a check of the db connection state
fix a check of the existence of vxlan port
fix an issue of reset_all_ports and destroy_port