const idx = {
	'Enabled': 1,
	'Disabled': 2,
	'Absent': 3,
	'Deferring': 4,
	'InTest': 5,
	'Quiesced': 6,
	'StandbyOffline': 7,
	'StandbySpare': 8,
	'Starting': 9,
	'UnavailableOffline': 10,
	'Updating': 11
};

return typeof idx[value] === 'undefined' ? 0 : idx[value];