YANG Roque Gagliano.

Slides:



Advertisements
Similar presentations
Complex Types and Typed Instance Identifiers as YANG Extension
Advertisements

Service Description: WSDL COMP6017 Topics on Web Services Dr Nicholas Gibbins –
XML Schema Heewon Lee. Contents 1. Introduction 2. Concepts 3. Example 4. Conclusion.
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
YANG Boot Camp The YANG Gang IETF 71. YANG Boot Camp The YANG Gang IETF 71.
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
1 Mind Visual Diff An architecture comparison tool December 16 th, 2014 – v0.2.2 Seyvoz Stephane Assystem.
Simple tutorial Yang & Netconf.
1 CP3024 Lecture 9 XML revisited, XSL, XSLT, XPath, XSL Formatting Objects.
17 Apr 2002 XML Schema Andy Clark. What is it? A grammar definition language – Like DTDs but better Uses XML syntax – Defined by W3C Primary features.
NETMOD Architecture Phil Shafer IETF 72.
1/151/15 ENT Metamodel Implementation & Applications ENT metamodel, prototype implementation Component substitutability checking, ENT based component comparison.
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
Processing of structured documents Spring 2002, Part 2 Helena Ahonen-Myka.
Abierman-nanog-30may03 1 XML Router Configs BOF Operator Involvement Andy Bierman
© Hitachi, Ltd All rights reserved. NETCONF Configuration I/F Advertisement by WSDL and XSD Hideki Okita, Tomoyuki Iijima, Yoshifumi Atarashi, Ray.
Using DSDL plus annotations for Netconf (+) data modeling Rohan Mahy draft-mahy-canmod-dsdl-01.
68th IETF – OPS area – XML MIB Modules XML MIB Modules draft-stephan-ops-xml-mib-module-template-00 draft-stephan-ops-xml-mib-module-template-00.
FIMS v1.1 Version numbers in schema Richard Cartwright Quantel July 2013.
Verified Network Configuration. Verinec Goals Device independent network configuration Automated testing of configuration Automated distribution of configuration.
An OO schema language for XML SOX W3C Note 30 July 1999.
Schemas 1www.tech.findforinfo.com. What is a Schema a schematic or preliminary plan Description of a structure, details... 2www.tech.findforinfo.com.
YANG in a Nutshell The YANG Gang IETF 71. YANG has... A reasonable self-contained specification A focus on readers and reviewers Text-based , patch,
I2RS draft-rfernando-yang-mods.txt I2RS Yang Extensions draft-rfernando-yang-data-mods R.Fernando, P.Chinnakannan, M.Madhayyan, A.Clemm.
Accessing Data Using XML CHAPTER NINE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
Tutorial 13 Validating Documents with Schemas
ESA UNCLASSIFIED – For Official Use SOIS EDS & Toolchain ESA YGT Study F. Torelli & P. Skrzypek CCSDS Fall Meeting /10/2013.
Representing Netconf Data Models using Document Schema Definition Languages (DSDL) Rohan Mahy Sharon Chisholm Lada Lhotka IETF 72 - Dublin.
Abierman-netconf-mar07 1 NETCONF WG 68 th IETF Prague, CZ March 19, 2007.
Lecture 23 XQuery 1.0 and XPath 2.0 Data Model. 2 Example 31.7 – User-Defined Function Function to return staff at a given branch. DEFINE FUNCTION staffAtBranch($bNo)
Using DSDL plus annotations for Netconf (+) data modeling Rohan Mahy draft-mahy-canmod-dsdl-01.
Lecture VI: SOAP-based Web Service CS 4593 Cloud-Oriented Big Data and Software Engineering.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
XML Extensible Markup Language
What problems are we trying to solve? Hannes Tschofenig.
Re Write POGO using openArchitectureWare Technology ● Pogo History ● OpenArchitectureWare technology ● Generated code ● Project status.
YANG/NETCONF/RESTCONF
Product Training Program
Using DSDL plus annotations for Netconf (+) data modeling
Junos Automation Stack
Collectd 101.
YANG Hackathon Achievements
The Simple Corpus Tool Martin Weisser Research Center for Linguistics & Applied Linguistics Guangdong University of Foreign Studies
Displaying XML Data with XSLT
XML Schema for WIRED XML Detector Description Workshop
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
Information Delivery Manuals: Functional Parts
Subscribing to YANG datastore push updates draft-netconf-yang-push-00 IETF #94 Yokohama A. Clemm A. Gonzalez Prieto
Data Modeling II XML Schema & JAXB Marc Dumontier May 4, 2004
NETCONF Configuration I/F Advertisement by WSDL and XSD
Nov, 2015 Howard Huang, Huawei Julien Zhang, ZTE
Balazs Lengyel, Ericsson
Comparison of NMDA datastores draft-ietf-netmod-nmda-diff-00
Joe Clarke (presenting)
Part of the Multilingual Web-LT Program
NMDA Q & A draft-dsdt-nmda-guidelines &
Post WG LC NMDA datastore architecture draft
Constructing MDA-based Application Using Rational XDE for .NET
NIEM Tool Strategy Next Steps for Movement
New Applications Modeled
Getting to Know Model-Driven Management With the YANG Catalog
Brief update and critical issues
Task 55 Scope – TOSCA Profile
NETMOD WG IETF 104 (Prague)
Bernd Zeuner (Deutsche Telekom) December 2, 2018
Joe Clarke (presenting)
Introduction to Models, Interfaces, Guidelines & Tooling from ONF Open Information Model & Tooling (OIMT) project and ONF Open Transport Configuration.
Task 62 Scope – Config / Operational State
NETMOD Versioning Design Team Update
Presentation transcript:

YANG Roque Gagliano

YANG Status YANG 1.0 is currently most popular YANG 1.1 just released Some backward incompatibilities (YANG 1.0 is not obsolete) Version needs to be there for 1.1 support YANG models are organized in modules (that can also have sub- modules) YANG modules name match the file name.yang If there is YANG, there is a YIN

YANG to YIN to YANG is lossless

YANG is not only for configuration: Model-driven telemetry or Orchestrated assurance Assurance hand-over should be part of the provisioning process Modeling assurance should be part of service design Model-driven telemetry: Using YANG models for telemetry data exposed from the devices to the collectors gRPC proposed as transport option: gNMI - gRPC Network Management Interface Required for ”reactive-design” or “close-loop design”

YANG Tools YANG Editors with plugins: YANG OS Tools: VI Emacs Eclipse Sublime Commercials… YANG OS Tools: PYANG YANG to Python objects: pyangbind: https://github.com/robshakir/pyangbind

PYANG: An extensible YANG validator and converter in python Validate YANG modules. Convert YANG modules to YIN, and YIN to YANG. Translate YANG data models to DSDL schemas, which can be used for validating various XML instance documents. See InstanceValidation. Translate YANG data models to XSD. Generate UML diagrams from YANG models. See UMLOutput for an example. Generate compact tree representation of YANG models for quick visualization. See TreeOutput for an example. Generate a skeleton XML instance document from the data model. Schema-aware translation of instance documents encoded in XML to JSON and vice-versa. See XmlJson. Plugin framework for simple development of other outputs, such as code generation.

YANG Content – Order is important module <module-name> { // header information <yang-version statement> <namespace statement> <prefix statement> // linkage statements <import statements> <include statements> // meta information <organization statement> <contact statement> <description statement> <reference statement> // revision history <revision statements> // module definitions <other statements> }

Augment Statement Allows a module (or submodule) to add to schema tree define by another module

Yang Base Types Augmenting: Restrictions: For integer: range (include max) For string: length pattern Union statements: Allows special types

Use RFC7950 as documentation YANG Grouping Statement + Grouping statements with ”refine”

YANG Data Definitions

Leaf Statement

Container statement

Leaf-list statement

List Statement

Leafref

Deref() XPATH Operator

YANG Actions, RPCs and Notifications

YANG Action Statement: YANG RPC Statement: Administrative actions with input and outputs No tied with any node YANG Action Statement: Administrative actions with input and outputs Tied to a specific node

YANG Notification statement Used to define notifications One single argument as identifier Followed by sub-statements with detail information

Advance YANG statements choice must when identity feature deviations

Upgrading a YANG module Rules are written in standard (example of rules) MUST add revision statement An "enumeration" type may have new enums added (at the end please), provided the old enums's values do not change. A "range", "length", or "pattern" statement may expand the allowed value space. A "min-elements" statement may be removed, or changed to require fewer elements. New data definition statements may be added if they do not add mandatory nodes to existing nodes or at the top level in a module or submodule, or if they are conditionally dependent on a new feature