Finished toNetworkDefinition