CheckTopoPolicy checks that a given policy is valid for a given network.