Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Compiling method based on YANG model, and corresponding interface, module and system

A compilation method and application program interface technology, applied in components and systems, YANG model-based compilation, interface field, can solve the problem of inflexible configuration of network equipment, reduce the requirements of professional knowledge, reduce development and maintenance costs, and reduce steps Effect

Active Publication Date: 2017-04-05
ZTE CORP
View PDF4 Cites 40 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the problem of inflexible configuration of network equipment and the need to hard-code the YANG model on the network management side, the present invention provides a compilation method based on the YANG model, and corresponding interfaces, components and systems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Compiling method based on YANG model, and corresponding interface, module and system
  • Compiling method based on YANG model, and corresponding interface, module and system
  • Compiling method based on YANG model, and corresponding interface, module and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0131] Flow chart such as Image 6 .

[0132] First, configure the configuration file, mainly including the full path of the directory where the source YANG file is stored, the full path of the directory where the generated code is stored, and the user can add the prefix name in front of the generated code, etc.

[0133]Second, parse the YANG file according to RFC6020, confirm the version number, correctness, and integrity of the YANG file (that is, in line with the dependencies with other YANG modules), and generate the corresponding YANG model.

[0134] Finally, according to the YANG mapping rules, the corresponding code is generated.

[0135] The following is an example of generating JAVA code based on the YANG file:

[0136] In the configuration file, including but not limited to the following:

[0137] yangSource=E:\\

[0138] codePath=D:\\

[0139] prefixName=com.zte

[0140] yangSource represents the full path of the directory where the source YANG file is stored....

Embodiment 2

[0175] like Figure 9 As shown, the user wants to configure the node data, taking NETCONF as the PLUG-IN component as an example:

[0176] Step 301 Initialization: read configuration file information, such as Agent device ID, IP address, port number, account password, etc.

[0177] Step 302 uses the service data class of the corresponding version to fill in the configuration information of the corresponding node information.

[0178] Step 303 calls the corresponding data access object class, and establishes a NETCONF connection to the Agent according to the information such as the ID, IP, and the like of the Agent.

[0179] Step 304 calls the Plug-in component (NETCONF component) to generate a NETCONF protocol message.

[0180] Step 305 sends the NETCONF protocol message generated in step 304 to the Agent according to the channel established in step 303.

[0181] Step 306 receives the result of the NETCONF message returned by the Agent; parses the result into a content part...

Embodiment 3

[0184] like Figure 9 As shown, the user wants to obtain node data, taking NETCONF as the PLUG-IN component as an example:

[0185] Step 401: System initialization: read configuration file information, such as Agent device ID, IP address, port number, account password, etc.

[0186] Step 402 uses the service data class to fill in the node information to be acquired.

[0187] Step 403 invokes the data access object class of the corresponding version, and establishes a NETCONF connection to the Agent according to the information such as the ID, IP, and the like of the Agent.

[0188] Step 404 invokes the Plug-in component (NETCONF component) to generate a NETCONF protocol message.

[0189] Step 405 sends the NETCONF protocol message generated in step 404 to the Agent according to the channel established in step 403.

[0190] Step 406 receives the result of the NETCONF message returned by the Agent; parses the result into a content part.

[0191] Step 407 encapsulates the ret...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention proposes a compiling method based on a YANG model, and a corresponding interface, module and system, and relates to the technical field of network communication. The method comprises the steps: obtaining a to-be-analyzed YANG file; analyzing the YANG file, and obtaining a corresponding YANG model; generating corresponding API (application program interface) data based on the YANG model. The method reduces the requirements of a user for an NETCONF protocol message and the professional knowledge of the YANG model, reduces the unnecessary manual configuration steps of equipment, and reduces the development and maintenance cost of the user.

Description

technical field [0001] The present invention relates to the technical field of network communication, in particular to a compiling method based on a YANG model, and a corresponding interface, component and system. Background technique [0002] With the continuous expansion of the network scale, the need for automation and intelligence of network configuration management is becoming more and more urgent. Software Defined Network (SDN) technology is one of the solutions. After the unified management and integration of network resources is achieved through the centralized SDN controller, the standardized northbound interface is used to provide on-demand network resources and services for upper-layer applications to realize network capability opening. At present, the NETCONF protocol is one of the protocols that can meet the above requirements, and exists as a channel of the northbound interface. YANG is a model definition language that models the configuration data and manage...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/24G06F9/45G06F17/30
CPCH04L9/40
Inventor 冯冲杜宝伟戴娴娴
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products