YANG Instance Data for Documenting Server Capabilities

Slides:



Advertisements
Similar presentations
YANG Boot Camp The YANG Gang IETF 71. YANG Boot Camp The YANG Gang IETF 71.
Advertisements

Systems Analysis I Data Flow Diagrams
NETMOD Architecture Phil Shafer IETF 72.
SIP working group IETF#70 Essential corrections Keith Drage.
Representing Netconf Data Models using Document Schema Definition Languages (DSDL) Rohan Mahy Sharon Chisholm Lada Lhotka IETF 72 - Dublin.
November 8, 2005"Field of Use" RFC Modification1 “Field of Use” RFC Modification Permissions David L. Black EMC Corporation November 8, 2005.
Subscribing to datastore push updates draft-netmod-clemm-datastore-push-00.txt Alexander Clemm, Alberto Gonzalez Prieto, Eric Voit.
Using DSDL plus annotations for Netconf (+) data modeling Rohan Mahy draft-mahy-canmod-dsdl-01.
SIP Events: Changes and Open Issues IETF 50 / SIP Working Group Adam Roach
YANG Data Model for IPv4-in-IPv6 Softwire draft-sun-softwire-yang November 2014 Q. Sun, H. Wang, Y. Cui, I. Farrer (presenter), M. Boucadair.
YANG Background and Discussion: Why we need a new language for NETCONF configuration modeling The YANG Gang IETF 70 Vancouver, Canada.
Briefing and Planning meeting on INSPIRE validator implementation – Discussion 16/12/2015.
IETF YANG models for VLAN interface classification draft-wilton-netmod-intf-vlan-yang Robert Wilton (Cisco)
Netconf Notifications Sharon Chisholm Hector Trevino IETF 67 November 2006.
Microwave Radio Link Framework
YANG Modelling and NETCONF Protocol Discussion
YANG Hackathon Achievements
Yang model for requesting
“with-defaults” capability in NETCONF
Interface extensions YANG & VLAN sub-interface YANG Status update
ALTO Protocol draft-ietf-alto-protocol-14
Cross Platform Development using Software Matrix
IETF 55 IPv6 Working Group IPv6 Node Requirements
Ethernet PHY Information Model Clarification at OT IM
ECE 551: Digital System Design & Synthesis
CVS revisions UML diagram
Magento Technical Guidelines Eugene Shakhsuvarov, Software Magento
draft-clacla-netmod-yang-model-update-02
Subscribing to YANG datastore push updates draft-netconf-yang-push-00 IETF #94 Yokohama A. Clemm A. Gonzalez Prieto
draft-bagnulo-tcpm-generalized-ecn-00 M. Bagnulo & B. Briscoe IETF97
NETCONF Configuration I/F Advertisement by WSDL and XSD
NETCONF Base Notifications for NMDA
IETF 101 NETMOD Working Group
AMA Data Model Edward Birrane
Yang-Push On-change Notification Capability
Balazs Lengyel, Ericsson
Comparison of NMDA datastores draft-ietf-netmod-nmda-diff-00
Joe Clarke (presenting)
Machine Independent Features
Oracle Sales Cloud Sales campaign
What’s changed in the Shibboleth 1.2 Origin
Factory default Setting draft-wu-netmod-factory-default-01
Instance Model Structure
Binary encoding draft-MAHESH-NETCONF-binary-encoding
Stream Issues Alex, Ambika, Eric, Tim
EO Data Access Protocol
Documentation Comments in C#.
NETMOD IETF 103 Bangkok Nov , 2018
NMDA Q & A draft-dsdt-nmda-guidelines &
AES The Alliance's name for the proposal is OCA 1.4.
Post WG LC NMDA datastore architecture draft
Distributed Data Collection
ETSI TC MTS TDL SC meeting Reports
Evolution of the Subscription & Event Notification Drafts IETF #98 Chicago Eric Voit 28-Mar-2017 DRAFT Authors on at least 1 drafts Andy Bierman Alexander.
ETSI TC MTS TDL SC meeting Reports
ETSI TC MTS TDL SC meeting Reports
CSE591: Data Mining by H. Liu
Data Annotation for On-Change Notifications
draft-ietf-dtn-bpsec-06
Handling YANG Revisions – Discussion Kickoff
János Farkas, Balázs Varga, Rodney Cummings, Jiang Yuanlong
NETMOD Versioning Design Team Update
Joe Clarke (presenting)
Device Management Profile and Requirements
Task 57 Scope – Profile and Template
NETMOD Versioning Design Team Update
Rob Wilton (presenting)
Interface extensions YANG & VLAN sub-interface YANG Status update
Schema version selection Reshad Rahman (presenting), Rob Wilton
Comparison of NMDA datastores draft-ietf-netmod-nmda-diff-02
Presentation transcript:

YANG Instance Data for Documenting Server Capabilities 2018-07-10 YANG Instance Data for Documenting Server Capabilities Balazs Lengyel Benoit Claise 2018-07-15 draft-lengyel-netmod-yang-instance-data © Ericsson AB 2018

Documenting server capabilities YANG Instance Data 2018-07-10 Documenting server capabilities Server capabilities are often readable via Netconf/Restconf Ietf-yang-library: Modules, revisions, features, deviations, datastores Ietf-netconf-monitoring : Netconf-capabilities, etc. Alarms supported YangPush on-change notification capabilities Most are set/fixed at implementation time and don’t change Server capabilities needed in implementation-time To start the NMS implementation in parallel Operator buying decision may depend on the OAM capabilities, Standard formal YANG based form of documentation preferred SW / automation needs to read capabilities Makes capabilities available both via Netconf and via documentation Same format on Netconf and documents Encourages easy to read uniform documentation © Ericsson AB 2018

Preloading Data Define sets of default data for configuration YANG Instance Data 2018-07-10 Preloading Data Define sets of default data for configuration Default Access control groups readOnlyUser, systemAdministrator, securityAdministrator Default rule-lists, rules for the default groups Default monitoring routines for a node Document/Load these in YANG instance-data-sets May later be modified © Ericsson AB 2018

Instance Data Format Simple – Nothing new XML & JSON format YANG Instance Data 2018-07-10 Instance Data Format Simple – Nothing new XML & JSON format (later maybe CBOR) Based on GET reply formats – already defined Add metadata (name, revision, description) Follows YANG modules that define the relevant datastore parts (target YAMs) Allow partial data sets May contain configuration and/or state data © Ericsson AB 2018

YANG Instance Data 2018-07-10 Changes Recommendation to document server capabilities changed to be just the primary use-case It is a very important message. Should we really exclude it? Redefined using yang-data-ext Moved meta data into ordinary leafs/lists Allows more precise definition of metadata Clarified encoding XML declaration UTF-8 encoding We follow RFC 7950/7951 rules In case of conflict live data from Netconf/Restconf has precedence over instance data © Ericsson AB 2018

YANG Instance Data 2018-07-10 Open Issues 1 Shall we recommend as a general practice: servers SHOULD document their capabilities using instance data Proposal: Yes It is an important recommendation that might get lost otherwise If no : defining instance-data format is still important Would you support a new draft/bis to recommend that data in ietf-yang-library SHOULD be documented as instance-data ? How the correct versions of the target models used inside instance data are defined Proposal: Don’t use revisions – way to strict. Wait for Versioning draft and reuse their import-by-semantic-version solution. © Ericsson AB 2018

YANG Instance Data 2018-07-10 Open Issues 2 Should we use yang-data-ext to define the instance data module? Proposal: yes. This is the perfect use case for it. It does not affect the actual instance-data-file format. but It maybe more difficult for some tools. Exactly how ? It might be important for mixed modules, but not here Shall we add a datastore parameter for config=true data? Proposal: Only if we find a use-case for it, so not now The draft does not specify how instance data is used by the YANG server For now all config=false data belongs to operational, all config=true data belongs to running/candidate © Ericsson AB 2018

Open Issues 3 Allow multiple instance-data-sets in one file YANG Instance Data 2018-07-10 Open Issues 3 Allow multiple instance-data-sets in one file Proposal: No. Even in YANG one-file=one-module is the practice. The convention to use the main contained item as a file name is useful Create tags to hold instance data blocks in RFCs like <CODE BEGINS> <CODE ENDS> e.g. <INSTANCE DATA BEGINS> <INSTANCE DATA ENDS> Proposal: No, Yang examples are not using the <CODE> tags either Shall we include a semantic version for the instance-data-set Proposal: Don’t do it, maybe later. What does compatibility mean for instance data? Who would use the semver numbers? © Ericsson AB 2018

Way Forward Request adoption as workgroup document YANG Instance Data 2018-07-10 Way Forward Request adoption as workgroup document Received support on last IETF Received support and comments on the mailing list © Ericsson AB 2018

YANG Instance Data 2018-07-10 Background slides © Ericsson AB 2018

Metadata Yang Module module ietf-yang-instance-data 2018-07-10 Metadata Yang Module module ietf-yang-instance-data Defines metadata annotations to for YANG Instance Data sets instance-data-set : name of the instance data Contact Organization Description Revision © Ericsson AB 2018

YANG Instance Data XML Format 2018-07-10 <instance-data-set xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-instance-data“> <name>acme-router-modules</name> <revision>2108-01-25</revision> <description>The set of modules that acme-router will contain. </description> <data> <yang-library xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-library"> <module-set> <name>basic</name> <module> <name>ietf-system</> <revision>2014-08-06</revision> <namespace>urn:ietf:params:xml:ns:yang:ietf-system</namespace> <feature>authentication</feature> <feature>radius-authentication</feature> </module> </module-set> </yang-library> </data> </instance-data-set> © Ericsson AB 2018

Needed - Used Already used in multiple implementations YANG Instance Data 2018-07-10 Needed - Used Already used in multiple implementations Based on similar principles, but slightly different formats Needed for YangPush Proposed to be used for documenting on-change notification capabilities Needed for Yang-Library Ietf-yang-library contains a lot of server capabilities that are usually set in implementation file, but may change © Ericsson AB 2018

Out-of-Scope Which server capabilities to document YANG Instance Data 2018-07-10 Out-of-Scope Which server capabilities to document Separate drafts e.g. draft-lengyel-netconf-notification-capabilities Which yang modules to preload with data How instance data is loaded by the server Using an instance-data-file Any other way Life-cycle of any documented/preloaded data Is it protected from modification, or it may change later YangPush may supply notifications about any change © Ericsson AB 2018