cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Cisco Community Designated VIP Class of 2020

202
Views
0
Helpful
1
Replies
Highlighted
Cisco Employee

YDK Example for Interface Encapsulation

Team,

 

Can someone post example YDK code for configuring interface encapsulation?  Like this XML...

 

    <config>
      <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
        <interface-configuration>
          <active>act</active>
          <interface-name>HundredGigE0/0/1/0.11</interface-name>
          <interface-mode-non-physical>l2-transport</interface-mode-non-physical>
          <ethernet-service xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-l2-eth-infra-cfg">
            <encapsulation>
              <outer-tag-type>match-dot1q</outer-tag-type>
              <outer-range1-low>1011</outer-range1-low>
            </encapsulation>
          </ethernet-service>
1 REPLY 1
Beginner

Re: YDK Example for Interface Encapsulation

I could not find any published example for the path 

Cisco-IOS-XR-ifmgr-cfg/interface-configurations/interface-configuration/ethernet-service

The closest examples with the same YANG model can be found here.

Are you experiencing any specific issue related to that YANG model and/or path? What YDK release are you using for your application? What is programming language? 

Regards,

Yan

Yan Gorelik
YDK Solutions
Content for Community-Ad
FusionCharts will render here