Commit 18c6ea82 authored by Jean Rebiffe's avatar Jean Rebiffe
Browse files

Update scripts/inventory/INV_SRV_01/vlans_transform.xsl

parent 5d5fb1ad
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -7,8 +7,13 @@
                        xmlns:dot1q="urn:ieee:std:802.1Q:yang:ieee802-dot1q-bridge">
                <vlan>
                    <!--TODO: Includes additional fields as needed -->
                    <xsl:copy-of select="dot1q:name" />
		            <xsl:copy-of select="dot1q:vids" />
		            <xsl:variable name="vlan_id" select="dot1q:vids" />
		            <xsl:for-each select="./../../dot1q:bridge-vlan/dot1q:vlan" >
			            <xsl:if test="dot1q:vid=$vlan_id" >
				            <xsl:copy-of select="dot1q:name" />
			            </xsl:if>
	                </xsl:for-each>
                    <xsl:copy-of select="dot1q:entry-type" />
                    <port-left><xsl:value-of select="dot1q:port-map[1]/dot1q:port-ref" /></port-left>
                    <port-left-vlan-transmitted><xsl:value-of select="dot1q:port-map[1]/dot1q:static-vlan-registration-entries/dot1q:vlan-transmitted" /></port-left-vlan-transmitted>