11 changed files with 110 additions and 5 deletions
@ -0,0 +1,25 @@ |
|||||
|
<?xml version="1.0" ?> |
||||
|
<xsl:stylesheet version="1.0" |
||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
||||
|
<xsl:output omit-xml-declaration="yes" indent="yes"/> |
||||
|
|
||||
|
<!-- Target portgroup --> |
||||
|
<xsl:param name="portgroup" select="'lab16'"/> |
||||
|
|
||||
|
<!-- XSLT Identity template --> |
||||
|
<xsl:template match="node()|@*"> |
||||
|
<xsl:copy> |
||||
|
<xsl:apply-templates select="node()|@*"/> |
||||
|
</xsl:copy> |
||||
|
</xsl:template> |
||||
|
|
||||
|
<!-- Put the NIC in the desired portgroup --> |
||||
|
<xsl:template match="/domain/devices/interface/source"> |
||||
|
<xsl:copy> |
||||
|
<xsl:apply-templates select="@*|node()"/> |
||||
|
<xsl:attribute name="portgroup"> |
||||
|
<xsl:value-of select="$portgroup"/> |
||||
|
</xsl:attribute> |
||||
|
</xsl:copy> |
||||
|
</xsl:template> |
||||
|
</xsl:stylesheet> |
||||
@ -0,0 +1,25 @@ |
|||||
|
<?xml version="1.0" ?> |
||||
|
<xsl:stylesheet version="1.0" |
||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
||||
|
<xsl:output omit-xml-declaration="yes" indent="yes"/> |
||||
|
|
||||
|
<!-- Target portgroup --> |
||||
|
<xsl:param name="portgroup" select="'lab32'"/> |
||||
|
|
||||
|
<!-- XSLT Identity template --> |
||||
|
<xsl:template match="node()|@*"> |
||||
|
<xsl:copy> |
||||
|
<xsl:apply-templates select="node()|@*"/> |
||||
|
</xsl:copy> |
||||
|
</xsl:template> |
||||
|
|
||||
|
<!-- Put the NIC in the desired portgroup --> |
||||
|
<xsl:template match="/domain/devices/interface/source"> |
||||
|
<xsl:copy> |
||||
|
<xsl:apply-templates select="@*|node()"/> |
||||
|
<xsl:attribute name="portgroup"> |
||||
|
<xsl:value-of select="$portgroup"/> |
||||
|
</xsl:attribute> |
||||
|
</xsl:copy> |
||||
|
</xsl:template> |
||||
|
</xsl:stylesheet> |
||||
@ -0,0 +1,25 @@ |
|||||
|
<?xml version="1.0" ?> |
||||
|
<xsl:stylesheet version="1.0" |
||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
||||
|
<xsl:output omit-xml-declaration="yes" indent="yes"/> |
||||
|
|
||||
|
<!-- Target portgroup --> |
||||
|
<xsl:param name="portgroup" select="'lab48'"/> |
||||
|
|
||||
|
<!-- XSLT Identity template --> |
||||
|
<xsl:template match="node()|@*"> |
||||
|
<xsl:copy> |
||||
|
<xsl:apply-templates select="node()|@*"/> |
||||
|
</xsl:copy> |
||||
|
</xsl:template> |
||||
|
|
||||
|
<!-- Put the NIC in the desired portgroup --> |
||||
|
<xsl:template match="/domain/devices/interface/source"> |
||||
|
<xsl:copy> |
||||
|
<xsl:apply-templates select="@*|node()"/> |
||||
|
<xsl:attribute name="portgroup"> |
||||
|
<xsl:value-of select="$portgroup"/> |
||||
|
</xsl:attribute> |
||||
|
</xsl:copy> |
||||
|
</xsl:template> |
||||
|
</xsl:stylesheet> |
||||
@ -0,0 +1,25 @@ |
|||||
|
<?xml version="1.0" ?> |
||||
|
<xsl:stylesheet version="1.0" |
||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
||||
|
<xsl:output omit-xml-declaration="yes" indent="yes"/> |
||||
|
|
||||
|
<!-- Target portgroup --> |
||||
|
<xsl:param name="portgroup" select="'lab7'"/> |
||||
|
|
||||
|
<!-- XSLT Identity template --> |
||||
|
<xsl:template match="node()|@*"> |
||||
|
<xsl:copy> |
||||
|
<xsl:apply-templates select="node()|@*"/> |
||||
|
</xsl:copy> |
||||
|
</xsl:template> |
||||
|
|
||||
|
<!-- Put the NIC in the desired portgroup --> |
||||
|
<xsl:template match="/domain/devices/interface/source"> |
||||
|
<xsl:copy> |
||||
|
<xsl:apply-templates select="@*|node()"/> |
||||
|
<xsl:attribute name="portgroup"> |
||||
|
<xsl:value-of select="$portgroup"/> |
||||
|
</xsl:attribute> |
||||
|
</xsl:copy> |
||||
|
</xsl:template> |
||||
|
</xsl:stylesheet> |
||||
Loading…
Reference in new issue