advertisement
YumaPro User Manual
3.1.7 YANG Files
YANG modules and submodules are text files encoded in UTF-8. . There is also an alternate XML encoding called
YIN. Sometimes the term YANG module is used to refer to the conceptual module, whether it is encoded in YANG format or YIN format.
All YumaPro Tools programs will accept either encoding format, however line and column numbers are not correct in log messages for YIN encoded modules. Instead, each XML node is given a monotonically increasing value, and the
XML document order is used instead of line numbers in error/warning messages for YIN files. The column number is always '1' for YIN files.
A module can be validated and checked for possible programming mistakes, by using the yangdump-pro program.
Many 'reports' can also be generated:
•
• exported symbols (--exports) imported modules (--dependencies)
• object identifiers (--identifiers)
The yangdump-pro program is also used to generate other files, derived from the YANG content:
•
•
•
•
•
•
XML Schema Document (XSD): extends the NETCONF XSD with the YANG content layer definitions (-format=xsd)
HTML <div> or full file output: hyper-linked, color-coded formatting of YANG modules to support netconfcentral or other WEB-based documentation system. There are several options for configuring the output, and all formatting is done with Cascading style-sheets (CSS) (--format=html)
netconf-central documentation SQL database input file: supports the automated online documentation of
YANG content (--format=sqldb). Refer to the netconfcentral.sql file for details on this output, in the Developer
Manual.
server instrumentation code-stubs: the instrumentation callback functions, used in netconfd-pro for activating specific YANG content, can be generated. This procedure is described in more detail in the
Developer Manual.
canonical YANG: a YANG file can be reformatted so all statements are indented uniformly, and always appear in the same order. Objects maked as hidden (see the 'hidden' extension in yuma-ncx.yang) will not be generated. (--format=yang)
copy-YANG-and-set-name: A YANG module can be validated and then copied (if no errors) to another location, adding the revision-date to the file name. (--format=copy)
3.1.8 NETCONF Managers
The NETCONF client is an application that initiates and utilizes NETCONF sessions to control and monitor a
NETCONF server.
YumaPro includes the yangcli-pro application for this purpose. It can be used as a stand-alone tool with any
NETCONF server.
3.1.9 NETCONF Servers
The NETCONF server is a server application that is always running on the managed device. It listens for NETCONF session requests from a NETCONF client, and allows specific users to access specific subsets of the available content (operations, database access, and notifications). It processes all incoming protocol operation requests from the client, and insulates all the instrumentation code from these protocol operations.
YumaPro includes the netconfd-pro application for this purpose. It can be run on several different platforms, or easily adapted to embedded platforms.
Version 15.10-16 Page 23
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 4 1 Preface
- 4 1.1 Legal Statements
- 4 1.2 Additional Resources
- 4 1.2.1 WEB Sites
- 5 1.2.2 Mailing Lists
- 5 1.3 Conventions Used in this Document
- 5 2 Summary
- 5 2.1 What is YumaPro?
- 7 2.2 Intended Audience
- 8 3 Introduction
- 8 3.1 System Components
- 10 3.1.1 YANG
- 13 3.1.2 NETCONF
- 15 3.1.3 YANG-based Automation
- 19 3.1.4 YANG Language Extensions
- 20 3.1.5 YANG Compiler
- 20 3.1.6 YANG Module Library
- 23 3.1.7 YANG Files
- 23 3.1.8 NETCONF Managers
- 23 3.1.9 NETCONF Servers
- 24 4 System Configuration
- 24 4.1 Environment Variables
- 25 4.1.1 $HOME
- 25 4.1.2 $YUMAPRO_HOME
- 26 4.1.3 $YUMAPRO_INSTALL
- 26 4.1.4 $YUMAPRO_MODPATH
- 27 4.1.5 $YUMAPRO_DATAPATH
- 28 4.1.6 $YUMAPRO_RUNPATH
- 28 4.2 Searching for Files
- 30 4.2.1 YumaPro Work Directory
- 30 4.2.2 Parameter Searches
- 31 4.2.3 Import/Include Searches
- 32 4.2.4 File Search Paths
- 34 4.3 Configuration Files
- 35 4.3.1 XML Configuration Files
- 35 4.3.2 Text Configuration Files
- 37 4.4 Logging
- 38 4.4.1 Logging Output Stream Commands
- 38 4.4.2 Logging Detail Commands
- 39 4.4.3 Logging Debug and Development Commands
- 39 4.4.4 Logging Examples
- 43 4.4.5 Logging Backtrace Information
- 44 4.4.6 Logging Hints
- 44 4.5 Pthreads Images
- 45 4.6 Bootstrap CLI
- 46 4.7 Configuration Parameters
- 46 4.7.1 Parameter Syntax
- 46 4.7.2 ncx:cli Extension
- 47 4.7.3 ncx:default-parm Extension
- 48 5 XPath Reference
- 48 5.1 XPath
- 48 5.1.1 XML Namespaces
- 49 5.2 YANG Specific XPath Behavior
- 49 5.3 Custom XPath Variables
- 50 5.3.1 user
- 50 5.4 Custom XPath Functions
- 50 5.4.1 module-loaded
- 51 5.4.2 feature-enabled
- 52 6 Error Reference
- 52 6.1 Error Messages