Changes for LegacyVpnTest

CHERRY PICKED CHANGES FROM AOSP

Modified the code to ensure the VPN connections are terminated properly
1. The test does not always send the terminate packets to the server
resulting in dangling states on the VMs.
2. This happens when the ping to the 10.10.10.x address fails and tests
throws an assert.
3. The existing connection is never terminated and server does not clean
up the connection.
4. The subsequent tests to the same VPN server fail because there is
already a VPN state on the server.

Bug: 62946567
Test: Verified
Change-Id: Ife2238f10bb41a397c6c934cf7e19a391574626f
1 file changed
tree: 107199cb89f2365c67259dde1bf0b54d1164ad29
  1. acts/
  2. tools/
  3. Android.mk
  4. PREUPLOAD.cfg