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

YDK Example for Interface Encapsulation

brfoster
Cisco Employee
Cisco Employee

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

yangorelik
Spotlight
Spotlight

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
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: