Modifying the logic in the restart testcase

Modifying the logic in ecmp serial testcases to shut
the VMs before rebooting the nodes.

Change-Id: I147999f9ffb089ae13d9eb2cfd66c1af8af408d3
Merge "Modifying the logic in the restart testcase"