Error when removing unmanaged networks after Removal of Data Center

Hi, Test case is to remove a data center, validating the attached domain goes to an UNATTACHED state. This works, however, the code I am using to clean the system down after the test cannot remove the Default Management Network from the host as part of the cleanup of unmanaged networks. It returns a 400 error when running netService.unmanagedNetworkService(network.id()) .remove() .send(); For the Default Network, which is left on the host as a result of tearing down the Data Center, but the Host still being alive. If I tear down the host without removing the unmanaged network I get a successful test, but later use of the host results in errors relating to the same unmanaged network. In the engine log I see the following Exception: java.lang.IllegalStateException: There isn't unique management network for cluster <name> among networks (). Any help is much appreciated.
participants (1)
-
scott.fitzgerald@oracle.com