package org.ligoj.app.plugin.prov.model;

import org.apache.commons.lang3.ObjectUtils;

/**
 * VM Operating System. Not represented as a table to be able to compare the prices.
 */
public enum VmOs {

	/**
	 * Generic Linux like system, no cost
	 */
	LINUX(null),

	/**
	 * Microsoft Windows
	 */
	WINDOWS(null),

	/**
	 * Suse
	 */
	SUSE(null),

	/**
	 * Red Hat Enterprise
	 */
	RHEL(null),

	/**
	 * Centos
	 */
	CENTOS(LINUX),

	/**
	 * Debian
	 */
	DEBIAN(LINUX);
	
	/**
	 * The related pricing OS.
	 */
	private final VmOs pricingOs;

	VmOs(VmOs pricingOs) {
		this.pricingOs = pricingOs;
	}

	/**
	 * Return the related pricing OS.
	 * @return the related pricing OS.
	 */
	public VmOs toPricingOs() {
		return ObjectUtils.defaultIfNull(pricingOs, this);
	}
}

@@ -460,19 +460,56 @@
 N(LINUX)
+,%0A%0A%09/**%0A%09 * Fedora%0A%09 */%0A%09FEDORA(LINUX)
 ;%0A
-%09
 %0A%09/**%0A%09 

Add Fedora support