public boolean isVersionedOsFamilyExtendedByVersionedFamily(String currentVersionedFamily, String versionedFamily) {
      Map<String,String> pos = this.parse_os(currentVersionedFamily);
      String currentFamily = pos.get(OS_DISTRO);
      String currentFamilyVersion = pos.get(OS_VERSION);

      pos = this.parse_os(versionedFamily);
      String family = pos.get(OS_DISTRO);
      String familyVersion = pos.get(OS_VERSION);

      return currentFamilyVersion.equals(familyVersion) && isFamilyExtendedByFamily(currentFamily, family);
    }
Form list of all supported os types
@return one dimension list with os types
ambari-server/src/main/java/org/apache/ambari/server/state/stack/OsFamily.java