Learn YANG! Full Tutorial for Beginners (Yet Another Next Generation)

  Рет қаралды 38,526

Ultra Config

Ultra Config

Күн бұрын

YANG is a data modelling language used to model configuration data, state data, Remote Procedure Calls, and notifications for network management protocols. In today's tutorial, let's do a deep dive and learn the language from scratch.
Ultra Config:
ultraconfig.com.au
Ultra Config Generator is an enterprise-grade software application for multi-vendor network automation. The product enables organizations to build robust automation solutions compatible with all major equipment vendors such as Cisco, Juniper and Huawei.
Today's Tutorial:
(Learn YANG in 16 mins)
ultraconfig.com.au/blog/learn...
RFC 7950 - The YANG 1.1 Data Modeling Language:
tools.ietf.org/html/rfc7950
pyang GitHub:
github.com/mbj4668/pyang
pyang Command Line Reference:
www.yang-central.org/twiki/pub...
yang2dsdl Command Line Reference:
www.yang-central.org/twiki/pub...
IETF YANG Modules:
www.netconfcentral.org/modulelist
OpenConfig GitHub:
github.com/openconfig/public
#yang #ietf #pyang #networkautomation #netconf

Пікірлер: 40
@markkaganovsky5676
@markkaganovsky5676 Жыл бұрын
Excellent tutorial! Thank you for putting this together.
@brunofranca2828
@brunofranca2828 4 жыл бұрын
What a GREAT video!
@AshutoshKumar-wy3vn
@AshutoshKumar-wy3vn 3 жыл бұрын
Thank you for a great overview. FYI, I did encounter few problems for which I've noted the solutions below. 1. One needs to use switch `-x` to ignore yang version error 2. When using python virtual environment, export PYANG_XSLT_DIR=env/share/yang/xslt and export PYANG_RNG_LIBDIR=env/share/yang/schema
@ultraconfig9489
@ultraconfig9489 3 жыл бұрын
That's great Ashutosh, thanks for the valuable tips
@jebssan9
@jebssan9 2 жыл бұрын
Thanks a lot for putting this together!
@bilalsaheli7505
@bilalsaheli7505 2 жыл бұрын
This makes easy to understand, Thanks mate
@kaustubhshantanu
@kaustubhshantanu Жыл бұрын
Very well explained. Kudos !!
@IslamJoieDeVivre
@IslamJoieDeVivre 2 жыл бұрын
Thank you, well explained !
@Slavey
@Slavey 9 ай бұрын
Very good summary, thank you!
@watermanli
@watermanli 2 жыл бұрын
Really amazing tutorial... demystified
@billmichae
@billmichae Жыл бұрын
Super clear.
@arjunanranjit452
@arjunanranjit452 3 жыл бұрын
Amazing video mate
@ultraconfig9489
@ultraconfig9489 3 жыл бұрын
Thanks Arjunan, I appreciate the feedback
@ashwinramachandran118
@ashwinramachandran118 Жыл бұрын
Excellent video
@ultraconfig9489
@ultraconfig9489 4 жыл бұрын
Hope you liked our video on YANG! Let me know what you think about the topic. Also, check out YANG Explorer - I forgot to mention it in the video. It's a great interactive tool that allows users to browse through YANG models in a very readable way github.com/CiscoDevNet/yang-explorer
@KalyanPuvvada
@KalyanPuvvada 4 жыл бұрын
nice video
@LifeOfSoftwareEngineer
@LifeOfSoftwareEngineer 2 жыл бұрын
How yang revisions are supported by yang libraries. AFAIK it is done by maintaining different file for each revision per module such as @.yang files. Any other information I can read about the same?
@anas6435
@anas6435 2 жыл бұрын
Thanks, can you please share the link of the written blog you are using for explanation
@derka211
@derka211 3 жыл бұрын
hi. can i omit module-header in yang-module?
@oscarsalgado189
@oscarsalgado189 4 жыл бұрын
ok now i have a tree that is based on a cisco xe. How can we put the pieces together in order to form a valid URI that we can use for example at postman???
@ultraconfig9489
@ultraconfig9489 4 жыл бұрын
Hi Oscar, check out our blog post linked in this comment where we construct a URI path for a RESTCONF request using the Cisco Native Interface YANG model. Once that example makes sense, check out YANG explorer too which has RESTCONF support. Over time, writing the URI paths will become very easy and can be done just by looking at the YANG model. ultraconfig.com.au/blog/restconf-tutorial-everything-you-need-to-know-about-restconf-in-2020/
@jamalawyonis8603
@jamalawyonis8603 3 жыл бұрын
yang2dsdl only works with pyang version 1 but not version 2..even if i change to version 1 i am having a problem running the code. Is there another way to to validate the models?
@ultraconfig9489
@ultraconfig9489 3 жыл бұрын
Hi Jamal, you could try downloading the shell script for yang2dsl directly and see if that works (github.com/mbj4668/pyang/blob/master/bin/yang2dsdl). Alternatively, you could try YANG Explorer or ANX (Advanced Netconf Explorer)
@jackr1162
@jackr1162 Жыл бұрын
Hi ultra config, Can you please help me with this? I want the pattern in leaf to take only 2 strings as input. The strings are ["IPv4"] ["IPv6"] Along with the square brackets and quotations. If the address mentioned is ipv4 then they also should mention that they mentioned ipv4 as ["IPv4"] and for ipv6 also the same. So the pattern for this given is '((["IPv4"] | ["IPv6"]))' ; But this didn't work Also tried '(([\"IPv4\"] | [\"IPv6\"]))' ; this one is working but it is also taking all kinds of strings which is not the requirement so can you help in getting only ["IPv4"] and ["IPv6"] Thank you
@taoli5497
@taoli5497 4 жыл бұрын
👍
@sloppydoggy9257
@sloppydoggy9257 2 жыл бұрын
Where did the IP addresses come from?
@Rodrigo_Bodhisava
@Rodrigo_Bodhisava 3 жыл бұрын
Ultra Config, how can I validate a yang file in windows or save as file.yang? Or which editor can recognize a yang file? Thanks
@ultraconfig9489
@ultraconfig9489 3 жыл бұрын
Hey Rodrigo, I recommend Visual Studio Code for an editor. They have a plugin for displaying yang files well. You can still use pyang in Windows, you'll just have to install python first. Hope that helps!
@Rodrigo_Bodhisava
@Rodrigo_Bodhisava 3 жыл бұрын
@@ultraconfig9489 Ok :). I will use VSCode. I am working with YANG since a while. Thank you for you video!! Keep the spirit :)
@ultraconfig9489
@ultraconfig9489 3 жыл бұрын
@@Rodrigo_Bodhisava Will do :)
@NikhilSharma-js7ct
@NikhilSharma-js7ct 3 жыл бұрын
What does Key means under list?
@ultraconfig9489
@ultraconfig9489 3 жыл бұрын
Hi Nikhil, keys are used to uniquely identify an entry in a list. Check out section 7.8.2 in RFC 7950 for the full definition
@zeenatsyed2498
@zeenatsyed2498 3 жыл бұрын
Is it possible to send iot sensor data using YANG or is only for network configuration?
@ultraconfig9489
@ultraconfig9489 3 жыл бұрын
Hi Zeenat, Sending sensor data might not be too applicable to YANG but I image it would be possible to build a YANG datastore on IOT devices for managing their configuration
@zeenatsyed2498
@zeenatsyed2498 3 жыл бұрын
@@ultraconfig9489 Thank you for replying.. I need help on how to send sensor data through SDN network... There was a plugin called iotdm for opendaylight but now I cannot build it anymore...could you help me please?
@ultraconfig9489
@ultraconfig9489 3 жыл бұрын
@@zeenatsyed2498 I haven't too much experience with OpenDaylight but you could try to reach out to the developers for resources github.com/orgs/opendaylight/people
@MrChonch
@MrChonch 4 жыл бұрын
Can you pl give a tutorial of libyang also?
@ultraconfig9489
@ultraconfig9489 4 жыл бұрын
Hi Vishal. Good idea, we'll add it to our backlog of topics to cover
@Rodrigo_Bodhisava
@Rodrigo_Bodhisava 3 жыл бұрын
It will be lovely if you could perform a tutorial of libyang with Fedora 33 :)
@abhisinghal3759
@abhisinghal3759 3 ай бұрын
any solution ? yang-tutorial % yang2dsdl -v data.xml ultraconfig-interfaces.yang warning: failed to load external entity "/usr/local/share/yang/xslt/basename.xsl" cannot parse /usr/local/share/yang/xslt/basename.xsl == Generating RELAX NG schema './-data.rng' warning: failed to load external entity "schema-dir" cannot parse schema-dir
Getting Started with NETCONF
17:36
Kevin Wallace Training, LLC
Рет қаралды 53 М.
YANG Explained and Explored | Pyang | DevNet | CCNP
13:36
Data Knox
Рет қаралды 16 М.
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 13 МЛН
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 33 МЛН
Каха ограбил банк
01:00
К-Media
Рет қаралды 11 МЛН
Introduction to the YANG data modeling language
40:31
Arista Networks
Рет қаралды 7 М.
YANG Tutorial part 1
44:16
Tail-f Systems
Рет қаралды 70 М.
NETCONF and YANG Concepts
26:31
Tail-f Systems
Рет қаралды 17 М.
"I Hate Agile!" | Allen Holub On Why He Thinks Agile And Scrum Are Broken
8:33
Netconf Made Easy with Advanced Netconf Explorer (ANX)
10:52
Data Knox
Рет қаралды 3,2 М.
Deep Dive Into Model Driven Programmability with NETCONF and YANG
59:34
NETCONF with YANG Suite
10:55
Cisco
Рет қаралды 10 М.
После ввода кода - протирайте панель
0:18
Up Your Brains
Рет қаралды 1,1 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2 МЛН