881
Views
0
Helpful
1
Replies
YDK Example for Interface Encapsulation

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 09:59 AM
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>
Labels:
- Labels:
-
YANG Development Kit (YDK)
1 Reply 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 01:49 PM
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
YDK Solutions
