} else if (network.getNetworkType() == NetworkType.GRE) {
checkNotNull(network.getSegmentationId(), "segmentationId must be present when NetworkType=GRE");
}
}
CreateNetworkRequest createNetworkRequest = new CreateNetworkRequest();
if (network.getName() != null)
createNetworkRequest.name = network.getName();
if (network.getAdminStateUp() != null)
createNetworkRequest.admin_state_up = network.getAdminStateUp();
if (network.getExternal() != null)