cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
760
Views
0
Helpful
0
Replies

netconf for secondary vlan tag

mrjoli021
Level 1
Level 1

I have an interface on a IOS-XR router that I am trying to configure using netconf. I am going through the yang models, specifically the Cisco-IOS-XR-ifmgr-cfg and looking for an option to add the second-dot1q vlan tag. I am not able to find that option anywhere. Could someone help me figure out either how to add it and/or which file that option would be under. This is what it looks like on the cli:

interface bundle-ether4.1013000
description WAN-Transit"
ipv4 address 10.0.0.1 255.255.255.0
encapsulation dot1q 101 second-dot1q 3000

 

This is what I have on the Yang Model.

 

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
        <interface-configuration>
          <interface-name>Bundle-Ether4.1013000</interface-name>
          <active>True</active>
          <encapsulation>
            <encapsulation>dot1q</encapsulation>
            <capsulation-options>101</capsulation-options>
          </encapsulation>
          <description>This is a test</description>
          <ipv4-network xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-io-cfg">
            <addresses>
              <primary>
                <address>10.0.0.1</address>
                <netmask>255.255.255.0</netmask>
              </primary>
            </addresses>
          </ipv4-network>
        </interface-configuration>
      </interface-configurations>
    </config>
  </edit-config>
</rpc>
0 Replies 0