Commit 9aa5f691 authored by Jean Rebiffe's avatar Jean Rebiffe
Browse files

Merge branch 'system-issue' into 'main'

Update scripts/inventory/INV_FW_01/system_transform.xsl,...

See merge request sdn/mwt/mwt-sdn-plugtests-4-materials!11
parents ea97da34 2a234077
Loading
Loading
Loading
Loading
+8 −6
Original line number Original line Diff line number Diff line
@@ -3,11 +3,13 @@
    <xsl:template match="/nc:data/sys:system-state/sys:platform"
    <xsl:template match="/nc:data/sys:system-state/sys:platform"
                xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
                xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
                xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-system">
                xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-system">
        <system-states>
            <system-state>
            <system-state>
                <xsl:copy-of select="sys:os-name" />
                <xsl:copy-of select="sys:os-name" />
                <xsl:copy-of select="sys:os-release" />
                <xsl:copy-of select="sys:os-release" />
                <xsl:copy-of select="sys:os-version" />
                <xsl:copy-of select="sys:os-version" />
                <xsl:copy-of select="sys:machine" />
                <xsl:copy-of select="sys:machine" />
            </system-state>
            </system-state>
        </system-states>
    </xsl:template>
    </xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
+7 −5
Original line number Original line Diff line number Diff line
@@ -3,10 +3,12 @@
    <xsl:template match="/nc:data/sys:system"
    <xsl:template match="/nc:data/sys:system"
                xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
                xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
                xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-system">
                xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-system">
        <systems>
            <system>
            <system>
                <xsl:copy-of select="sys:contact" />
                <xsl:copy-of select="sys:contact" />
                <xsl:copy-of select="sys:hostname" />
                <xsl:copy-of select="sys:hostname" />
                <xsl:copy-of select="sys:location" />
                <xsl:copy-of select="sys:location" />
            </system>
            </system>
        </systems>
    </xsl:template>
    </xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>