Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3153279
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/rgmanager/src/resources/ra2csv.xsl b/rgmanager/src/resources/ra2csv.xsl
deleted file mode 100644
index a00243a0e..000000000
--- a/rgmanager/src/resources/ra2csv.xsl
+++ /dev/null
@@ -1,19 +0,0 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output method="text" indent="no"/>
-
-<xsl:template name="normalize-name">
- <xsl:param name="type"/>
- <xsl:param name="value"/>
- <xsl:variable name="normalized" select="concat( translate(substring(@name, 1, 1), '_abcdefghijklmnopqrstuvwrxyz', '-ABCDEFGHIJKLMNOPQRSTUVWRXYZ'), translate(substring(@name, 2), '_ABCDEFGHIJKLMNOPQRSTUVWRXYZ', '-abcdefghijklmnopqrstuvwrxyz'))"/>
- <xsl:choose>
- <xsl:when test="$normalized = 'Name'"></xsl:when>
- <xsl:otherwise><xsl:value-of select="$type"/>,rhcs<xsl:value-of select="$normalized"/><xsl:text>
-</xsl:text></xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="/resource-agent"><xsl:call-template name="normalize-name"><xsl:with-param name="type">obj</xsl:with-param><xsl:with-param name="value" select="normalize-space(@name)"/></xsl:call-template>
-<xsl:for-each select="parameters/parameter"><xsl:call-template name="normalize-name"><xsl:with-param name="type">attr</xsl:with-param><xsl:with-param name="value" select="normalize-space(@name)"/></xsl:call-template>
-</xsl:for-each>
-</xsl:template>
-</xsl:stylesheet>
diff --git a/rgmanager/src/resources/ra2oid.xsl b/rgmanager/src/resources/ra2oid.xsl
deleted file mode 100644
index 697bd4932..000000000
--- a/rgmanager/src/resources/ra2oid.xsl
+++ /dev/null
@@ -1,68 +0,0 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output method="text" indent="no"/>
-
-<xsl:template name="normalize-name">
- <xsl:param name="value"/>
- <xsl:variable name="normalized" select="concat( translate(substring(@name, 1, 1), '_abcdefghijklmnopqrstuvwrxyz', '-ABCDEFGHIJKLMNOPQRSTUVWRXYZ'), translate(substring(@name, 2), '_ABCDEFGHIJKLMNOPQRSTUVWRXYZ', '-abcdefghijklmnopqrstuvwrxyz'))"/>
- <xsl:choose>
- <xsl:when test="$normalized = 'Name'">name</xsl:when>
- <xsl:otherwise>rhcs<xsl:value-of select="$normalized"/></xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="/resource-agent">
-#
-# Resource Agent: <xsl:value-of select="@name"/>
-# Provider: <xsl:value-of select="@provider"/>
-# Provider Version: <xsl:value-of select="@version"/>
-# API Version: <xsl:value-of select="normalize-space(version)"/>
-# Description: <xsl:value-of select="normalize-space(shortdesc)"/>
-#
-objectClasses: (
- 1.3.6.1.4.1.2312.8.1.2.@@OBJ_CLASS_<xsl:call-template name="normalize-name"><xsl:with-param name="value" select="@name"/></xsl:call-template>@@ NAME '<xsl:call-template name="normalize-name">
- <xsl:with-param name="value" select="@name"/>
- </xsl:call-template>' SUP top STRUCTURAL
- DESC '<xsl:value-of select="normalize-space(shortdesc)"/>'
- MUST( <xsl:for-each select="parameters/parameter">
- <xsl:if test="@required = 1 or @primary = 1">
- <xsl:call-template name="normalize-name">
- <xsl:with-param name="value" select="@name"/>
- </xsl:call-template>
- <xsl:if test="position()!=last()"> $ </xsl:if>
- </xsl:if>
- </xsl:for-each> )
- MAY( <xsl:for-each select="parameters/parameter">
- <xsl:if test="string(number(@primary)) = 'NaN' or @primary = 0">
- <xsl:if test="string(number(@required)) = 'NaN' or @required = 0">
- <xsl:call-template name="normalize-name">
- <xsl:with-param name="value" select="@name"/>
- </xsl:call-template>
- <xsl:if test="position()!=last()"> $ </xsl:if>
- </xsl:if>
- </xsl:if>
- </xsl:for-each> )
-)
-
-#
-# Object Attributes
-# FIXME: Run a list of known attribute types
-#
-<xsl:for-each select="parameters/parameter">
-<xsl:if test="@name != 'name'">
-attributeTypes: (
- 1.3.6.1.4.1.2312.8.1.1.@@ATTR_TYPE_<xsl:call-template name="normalize-name"><xsl:with-param name="value" select="@name"/></xsl:call-template>@@ NAME '<xsl:call-template name="normalize-name"><xsl:with-param name="value" select="@name"/></xsl:call-template>'
- DESC '<xsl:value-of select="normalize-space(shortdesc)"/>'
- <xsl:choose>
- <xsl:when test="content/@type = 'integer'">EQUALITY integerMatch
- SYNTAX 1.3.6.1.4.1.1466.115.121.1.27</xsl:when>
- <xsl:when test="content/@type = 'boolean'">EQUALITY booleanMatch
- SYNTAX 1.3.6.1.4.1.1466.115.121.1.7</xsl:when>
- <xsl:otherwise>EQUALITY caseExactIA5Match
- SYNTAX 1.3.6.1.4.1.1466.115.121.1.26</xsl:otherwise>
- </xsl:choose>
- SINGLE-VALUE
-)
-</xsl:if>
-</xsl:for-each>
-</xsl:template>
-</xsl:stylesheet>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Feb 25, 3:27 PM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1464878
Default Alt Text
(4 KB)
Attached To
Mode
rR Resource Agents
Attached
Detach File
Event Timeline
Log In to Comment