YANG model expansion verification method and device, computer-readable storage medium

A technology of model and verification program, which is applied in the field of communication, can solve the problems that business scenarios cannot be described and processed, and achieve the effects of facilitating maintenance and upgrading processing, strong scalability, and ensuring correctness

Inactive Publication Date: 2019-01-04
ZTE CORP
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the object of the present invention is to provide a method and device for YANG model extension verification, and a computer-readable storage medium to solve the problem that business scenarios cannot be described and processed through the existing YANG grammar

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
  • YANG model expansion verification method and device, computer-readable storage medium
  • YANG model expansion verification method and device, computer-readable storage medium
  • YANG model expansion verification method and device, computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0037] Such as figure 1 As shown, the first embodiment of the present invention provides a method for YANG model extension verification, the method includes steps:

[0038] S10. Parse the service configuration model, and acquire the verification parameters defined by the YANG model extension tag from the service configuration model;

[0039] In this embodiment, a basic verification parameter model can be defined according to the extension needs of the YANG model, and a specific service configuration model can be defined by introducing the defined verification parameter model.

[0040] As an example, the definition of the basic calibration parameter model is as follows:

[0041] 1.1) The field "priority" that defines the priority of the script, the smaller the value of this field, the lower the priority.

[0042] Specifically, it can be defined by the following code:

[0043]

[0044]

[0045] 1.2) Define the field "target" that triggers the script execution condition,...

no. 2 example

[0099] Such as image 3 As shown, the second embodiment of the present invention provides a device for YANG model extension verification, the device includes an analysis unit 21, a data change collection unit 22, a script collection unit 23 and a script execution unit 24;

[0100] The parsing unit 21 is configured to parse the business configuration model, and acquire the verification parameters defined using the YANG model extension tag from the business configuration model;

[0101] In this embodiment, a basic verification parameter model can be defined according to the extension needs of the YANG model, and a specific service configuration model can be defined by introducing the defined verification parameter model.

[0102] As an example, the definition of the basic calibration parameter model is as follows:

[0103] 1.1) The field "priority" that defines the priority of the script, the smaller the value of this field, the lower the priority.

[0104] Specifically, it ca...

no. 3 example

[0157] Such as Figure 4 As shown, the third embodiment of the present invention provides a device for YANG model extension verification, and the device for YANG model extension verification includes: a memory 31, a processor 32, and a device stored on the memory 31 and capable of processing The YANG model extension verification program running on the processor 32, when the YANG model extension verification program is executed by the processor, implements the steps of the YANG model extension verification method described in the first embodiment.

[0158] A device for YANG model extension verification in the embodiment of the present invention obtains and executes the script execution list by using the verification parameters defined by the YANG model extension tag and the business configuration model, thereby obtaining the result of the YANG model extension verification; on the one hand Realized the extension of YANG syntax, which can meet the special needs of users through e...

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 discloses a YANG model expansion verification method and a device thereof, a computer-readable storage medium. The method comprises the following steps: analyzing a service configurationmodel; obtaining a verification parameter defined by an YANG model expansion tag from the service configuration model; obtaining a verification parameter defined by a YANG model expansion tag from the service configuration model; monitoring the change operation of the data, and collecting the data of the change operation if the change operation of the data is monitored; obtaining a script execution list according to the obtained verification parameters and the collected data of the change operation; based on the obtained script execution list, starting the script execution environment to execute the contents of the script execution list, and obtaining the YANG model extension verification results. The invention realizes the expansion of the YANG syntax, and can meet the special requirements of users through the expansion. It also realizes the decoupling between the service configuration model and the specific service definition, and has a strong scalability, which is conducive to thelater maintenance and upgrade processing.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a method and device for YANG model extension verification, and a computer-readable storage medium. Background technique [0002] NETCONF (Network Configuration Protocol, Network Configuration Management Protocol) is a more effective method to solve the problem of network configuration management. It is an XML (Extensible Markup Language , Extensible Markup Language) Network Data Device Configuration Protocol, which provides mechanisms for installing, manipulating, and deleting network device configurations. [0003] YANG (Yet Another Next Generation, referred to as YANG) language is an abstract data model description language proposed by IETF. As an important part of the NETCONF protocol, it supports relatively common keywords, but in the actual application process, these keywords cannot fully meet the needs of business scenarios, and these business scenarios play a very ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30G06F9/445
CPCG06F8/30G06F9/44505G06F9/44G06F9/445
Inventor 赵光跃严军喜姬文燕
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products