Commit 8433fdd3 authored by Jean Rebiffe's avatar Jean Rebiffe
Browse files

Merge branch 'vilmos-proposal-vlan' into 'main'

Adding VLAN name in INV_SRV_01: Vilmos proposal vlan

See merge request sdn/mwt/mwt-sdn-plugtests-4-materials!19
parents 5d5fb1ad c6e902ec
Loading
Loading
Loading
Loading
+6 −1
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>