CN108055142A - A kind of interface automatic configuration method and system of vCPE equipment - Google Patents
A kind of interface automatic configuration method and system of vCPE equipment Download PDFInfo
- Publication number
- CN108055142A CN108055142A CN201710932254.0A CN201710932254A CN108055142A CN 108055142 A CN108055142 A CN 108055142A CN 201710932254 A CN201710932254 A CN 201710932254A CN 108055142 A CN108055142 A CN 108055142A
- Authority
- CN
- China
- Prior art keywords
- interface
- file
- back end
- vcpe
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0886—Fully automatic configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0866—Checking the configuration
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of interface automatic configuration method and system of vCPE equipment, this method includes:Data modeling is carried out to the functional configuration order of vCPE equipment, obtain corresponding YANG models, and extract the back end of the YANG models, it is saved in node path file, according to the YANG models and the functional module interface of node path file structure vCPE equipment, finally functional module interface is integrated into vCPE equipment, realizes the interface automatic configuration of vCPE equipment.Using the embodiment of the present invention, it can realize that vCPE equipment automatizations configure, reduce the workload of network O&M personnel and the O&M cost of operator, while shorten the service fulfillment cycle of enterprise customer, the user experience of enterprise user.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of vCPE equipment interface automatic configuration method and be
System.
Background technology
Telecom operators access virtual client terminal device (the Virtual Customer of network edge by being located at
Premise Equipment, abbreviation vCPE) and cpe device provide network service for corporate client.But vCPE equipment and CPE are set
Standby configuration order is complicated, can only be manually or semi-automatic configuration and commissioning device numerous and diverse to take, and easily error,
Many troubles are brought to the work of network maintenance staff, also increase the O&M cost of operator.Further, since the configuration of equipment
It is complicated with debugging, the problems such as cycle that activates the service is long, flow is cumbersome is also brought to enterprise customer, reduces the operational efficiency of enterprise.
The content of the invention
The embodiment of the present invention proposes a kind of interface automatic configuration method and system of vCPE equipment, realizes vCPE equipment
Interface automatic configuration reduces the O&M cost of operator, the user experience of enterprise user.
The embodiment of the present invention provides a kind of interface automatic configuration method of vCPE equipment, including:
Data modeling is carried out to the functional configuration order of vCPE equipment, obtains what is formed in the form of back end and RPC
YANG models;
The back end of the YANG models is extracted, and the back end of extraction is saved in node path file;
According to the YANG models and the node path file, the functional module interface of the vCPE equipment is built;Its
In, the functional module interface includes api interface file and the XML file formed by the YANG model conversions;The API connects
Mouth file is used for the self-defined api interface that the vCPE equipment is called to provide, and performs the functional configuration order;
The functional module interface is integrated into the vCPE equipment.
Further, in the back end of the extraction YANG models, and the back end of extraction is saved in section
After in point path file, further include:
According to the YANG models and the node path file, structure syntax and semantics verification file;Wherein, institute's predicate
Method and semantic verification file are used to verify the syntax and semantics of the functional configuration order.
Further, the functional module interface further includes:The grammer and semantic verification file.
Further, the back end of the extraction YANG models, and the back end of extraction is saved in node
In path file, it is specially:
According to the back end in the level of the YANG models, the back end of the YANG models is extracted, and will
The back end of extraction is saved in node path file.
Further, the functional configuration order includes:Increase, change, deleting the order of vCPE device configurations and check
Device configuration and status command.
Correspondingly, the embodiment of the present invention also provides a kind of interface automatic configuration system of vCPE equipment, including:Model mould
Block, extraction module, structure module and integration module;
Wherein, the functional configuration order that the modeling module is used for vCPE equipment carries out data modeling, obtains with data
The YANG models that node and RPC forms are formed;
The extraction module is used to extract the back end of the YANG models, and the back end of extraction is saved in section
In point path file;
The structure module is used for according to the YANG models and the node path file, builds the vCPE equipment
Functional module interface;Wherein, the functional module interface includes api interface file and is formed by the YANG model conversions
XML file;The api interface file is used for the self-defined api interface that the vCPE equipment is called to provide, and performs the function and matches somebody with somebody
Put order;
The integration module is used to the functional module interface being integrated into the vCPE equipment.
Further, the interface automatic configuration system further includes:Correction verification module;
The correction verification module is used to extract the back end of the YANG models in the extraction module, and by the number of extraction
After being saved according to node in node path file, further include:
According to the YANG models and the node path file, structure syntax and semantics verification file;Wherein, institute's predicate
Method and semantic verification file are used to verify the syntax and semantics of the functional configuration order.
Further, the functional module interface further includes:The grammer and semantic verification file.
Further, the extraction module is used to extracting the back end of the YANG models, and by the data section of extraction
Point is saved in node path file, is specially:
The extraction module in the level of the YANG models, extracts the numbers of the YANG models according to the back end
It is saved according to node, and by the back end of extraction in node path file.
Further, the functional configuration order includes:Increase, change, deleting the order of vCPE device configurations and check
Device configuration and status command.
Implement the embodiment of the present invention, have the advantages that:
The interface automatic configuration method and system of vCPE equipment provided in an embodiment of the present invention, to the function of vCPE equipment
Configuration order carries out data modeling, obtains corresponding YANG models, and extracts the back end of the YANG models, is saved in node
In path file, according to the YANG models and the functional module interface of node path file structure vCPE equipment, finally by interface
Function module is integrated into vCPE equipment, realizes the interface automatic configuration of vCPE equipment.Compared with the prior art artificial or
Semi-automatic collocation method, technical solution of the present invention can realize that vCPE equipment automatizations configure, reduce the work of network O&M personnel
Work amount and the O&M cost of operator, while shorten the service fulfillment cycle of enterprise customer, the user's body of enterprise user
It tests.
Description of the drawings
Fig. 1 is a kind of flow signal of embodiment of the interface automatic configuration method of vCPE equipment provided by the invention
Figure;
Fig. 2 is a kind of structural representation of embodiment of the interface automatic configuration system of vCPE equipment provided by the invention
Figure.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment belongs to the scope of protection of the invention.
An embodiment of the present invention provides a kind of interface automatic configuration method and system of vCPE equipment, pass through the interface pair
The SDN controllers for supporting NETCONF agreements are connect, can realize the automatic configuration, Remote configuration and management of vCPE equipment.Referring to
Fig. 1, is a kind of flow diagram of embodiment of the interface automatic configuration method of vCPE equipment provided by the invention, this method
Including step 101 to step 104, each step is specific as follows:
Step 101:Data modeling is carried out to the functional configuration order of vCPE equipment, is obtained in the form of back end and RPC
The YANG models of composition.
In the present embodiment, data are carried out to the functional configuration order of vCPE equipment using YANG model modelings language to build
Mould obtains the YANG models formed in the form of back end and RPC.The functional configuration order includes increasing, changes, deletes vCPE
It device configuration order and checks device configuration and status command, realizes the configuration and management of vCPE equipment.
Step 102:The back end of YANG models is extracted, and the back end of extraction is saved in node path file
In.
In the present embodiment, step 102 is specially the level in YANG models according to back end, extraction YANG models
Back end, and the back end of extraction is saved in node path file.The node path file is used for construction step 103
In api interface file.For the level of the YANG models depending on the function complexity of vCPE equipment, function is more complicated,
The level of YANG models is more.
Step 103:According to YANG models and node path file, the functional module interface of structure vCPE equipment;Wherein, connect
Mouth function module includes api interface file and the XML file formed by YANG model conversions;Api interface file is used to call
The self-defined api interface that vCPE equipment provides, perform function configuration order.
In the present embodiment, according to YANG models and node path file, the python feet provided using libnetconf
This instrument lnctool or customized software tool build the functional module interface of vCPE equipment.Functional module interface includes
Api interface file and the XML file formed by YANG model conversions.Api interface file be used for call vCPE equipment provide from
Api interface is defined, performs corresponding functional configuration order.XML file always collects for definition module configuration order, and all users match somebody with somebody
Put a subset that order is all XML file.
As a kind of citing of the present embodiment, after step 102, further include:According to YANG models and node path text
Part, structure syntax and semantics verification file;Wherein, syntax and semantics verification file for verifying function configuration order grammer and
It is semantic.After the completion of verification, the functional module interface of the structure further includes:The grammer and semantic verification file.
In the present embodiment, functional module interface can be, but not limited to further include compiling file.
Step 104:Functional module interface is integrated into vCPE equipment.
In the present embodiment, after functional module interface is integrated into vCPE equipment, controlled by the functional module interface and SDN
Device is attached, and can be realized increase, modification, sweep equipment configuration and the returning equipment implementing result of vCPE equipment, be checked and set
Standby configuration and state.
Correspondingly, referring to Fig. 2, Fig. 2 is a kind of reality of the interface automatic configuration system of vCPE equipment provided by the invention
Apply the structure diagram of example.As shown in Fig. 2, the interface automatic configuration system includes:Modeling module 1, extraction module 2, structure
Module 3 and integration module 4.
Wherein, the functional configuration order that modeling module 1 is used for vCPE equipment carries out data modeling, obtains with back end
The YANG models formed with RPC forms.
Extraction module 2 is used to extract the back end of YANG models, and the back end of extraction is saved in node path
In file.
Build the functional module interface that module 3 is used to build vCPE equipment according to YANG models and node path file;Its
In, functional module interface includes api interface file and the XML file formed by YANG model conversions;Api interface file is used to adjust
The self-defined api interface provided with vCPE equipment, perform function configuration order.
Integration module 4 is used to functional module interface being integrated into vCPE equipment.
As a kind of citing of the present embodiment, interface automatic configuration system further includes:Correction verification module.Correction verification module is used for
In the back end of extraction module extraction YANG models, and after the back end of extraction is saved in node path file,
It further includes:According to YANG models and node path file, structure syntax and semantics verification file;Wherein, syntax and semantics verify
File is used for the syntax and semantics of verifying function configuration order.
The more detailed operation principle of the system and process step can be, but not limited to referring to foregoing description.
Therefore the interface automatic configuration method and system of vCPE equipment provided in an embodiment of the present invention, to vCPE
The functional configuration order of equipment carries out data modeling, obtains corresponding YANG models, and extracts the back end of the YANG models,
It is saved in node path file, the functional module interface of vCPE equipment is built according to the YANG models and node path file,
Finally functional module interface is integrated into vCPE equipment, realizes the interface automatic configuration of vCPE equipment.Compared to existing skill
The artificial or semi-automatic collocation method of art, technical solution of the present invention can realize that vCPE equipment automatizations configure, and reduce network fortune
The workload of dimension personnel and the O&M cost of operator, while the service fulfillment cycle of enterprise customer is shortened, enterprise is used
The user experience at family.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (10)
1. a kind of interface automatic configuration method of vCPE equipment, which is characterized in that including:
Data modeling is carried out to the functional configuration order of vCPE equipment, obtains the YANG moulds formed in the form of back end and RPC
Type;
The back end of the YANG models is extracted, and the back end of extraction is saved in node path file;
According to the YANG models and the node path file, the functional module interface of the vCPE equipment is built;Wherein, institute
Stating functional module interface includes api interface file and the XML file formed by the YANG model conversions;The api interface text
Part is used for the self-defined api interface that the vCPE equipment is called to provide, and performs the functional configuration order;
The functional module interface is integrated into the vCPE equipment.
2. the interface automatic configuration method of vCPE equipment according to claim 1, which is characterized in that in the extraction institute
The back end of YANG models is stated, and after the back end of extraction is saved in node path file, is further included:
According to the YANG models and the node path file, structure syntax and semantics verification file;Wherein, the grammer and
Semanteme verification file is used to verify the syntax and semantics of the functional configuration order.
3. the interface automatic configuration method of vCPE equipment according to claim 2, which is characterized in that the interface function
Module further includes:The grammer and semantic verification file.
4. the interface automatic configuration method of vCPE equipment according to claim 1, which is characterized in that described in the extraction
The back end of YANG models, and the back end of extraction is saved in node path file, it is specially:
According to the back end in the level of the YANG models, the back end of the YANG models is extracted, and will extraction
Back end be saved in node path file.
5. the interface automatic configuration method of vCPE equipment according to claim 1, which is characterized in that the functional configuration
Order includes:Increase, change, deleting the order of vCPE device configurations and check device configuration and status command.
6. a kind of interface automatic configuration system of vCPE equipment, which is characterized in that including:Modeling module, extraction module, structure
Module and integration module;
Wherein, the functional configuration order that the modeling module is used for vCPE equipment carries out data modeling, obtains with back end
The YANG models formed with RPC forms;
The extraction module is used to extract the back end of the YANG models, and the back end of extraction is saved in node road
In the file of footpath;
The structure module is used to, according to the YANG models and the node path file, build the interface of the vCPE equipment
Function module;Wherein, the functional module interface includes api interface file and the XML texts formed by the YANG model conversions
Part;The api interface file is used for the self-defined api interface that the vCPE equipment is called to provide, and performs the functional configuration life
Order;
The integration module is used to the functional module interface being integrated into the vCPE equipment.
7. the interface automatic configuration system of vCPE equipment according to claim 6, which is characterized in that the interface is automatic
Change configuration system to further include:Correction verification module;
The correction verification module is used to extract the back end of the YANG models in the extraction module, and by the data section of extraction
After point is saved in node path file, further include:
According to the YANG models and the node path file, structure syntax and semantics verification file;Wherein, the grammer and
Semanteme verification file is used to verify the syntax and semantics of the functional configuration order.
8. the interface automatic configuration system of vCPE equipment according to claim 7, which is characterized in that the interface function
Module further includes:The grammer and semantic verification file.
9. the interface automatic configuration system of vCPE equipment according to claim 6, which is characterized in that
The extraction module is used to extract the back end of the YANG models, and the back end of extraction is saved in node road
In the file of footpath, it is specially:
The extraction module in the level of the YANG models, extracts the data sections of the YANG models according to the back end
Point, and the back end of extraction is saved in node path file.
10. the interface automatic configuration system of vCPE equipment according to claim 6, which is characterized in that the function is matched somebody with somebody
Putting order includes:Increase, change, deleting the order of vCPE device configurations and check device configuration and status command.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710932254.0A CN108055142B (en) | 2017-09-30 | 2017-09-30 | Automatic interface configuration method and system for vCPE (virtual customer premise equipment) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710932254.0A CN108055142B (en) | 2017-09-30 | 2017-09-30 | Automatic interface configuration method and system for vCPE (virtual customer premise equipment) |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108055142A true CN108055142A (en) | 2018-05-18 |
CN108055142B CN108055142B (en) | 2021-02-02 |
Family
ID=62119494
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710932254.0A Active CN108055142B (en) | 2017-09-30 | 2017-09-30 | Automatic interface configuration method and system for vCPE (virtual customer premise equipment) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108055142B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109361550A (en) * | 2018-11-21 | 2019-02-19 | 国家计算机网络与信息安全管理中心 | The method, device and equipment of network equipments configuration management |
CN111988179A (en) * | 2020-08-21 | 2020-11-24 | 华信塞姆(成都)科技有限公司 | YANG model management system, method and storage medium |
CN112597343A (en) * | 2020-12-21 | 2021-04-02 | 安徽皖通邮电股份有限公司 | Netconf automatic configuration generation method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103701653A (en) * | 2014-01-06 | 2014-04-02 | 迈普通信技术股份有限公司 | Processing method for interface hot plugging and unplugging configuration data and network configuration server |
CN106559251A (en) * | 2015-09-30 | 2017-04-05 | 中兴通讯股份有限公司 | A kind of Compilation Method and corresponding interface, component and system based on YANG models |
-
2017
- 2017-09-30 CN CN201710932254.0A patent/CN108055142B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103701653A (en) * | 2014-01-06 | 2014-04-02 | 迈普通信技术股份有限公司 | Processing method for interface hot plugging and unplugging configuration data and network configuration server |
CN106559251A (en) * | 2015-09-30 | 2017-04-05 | 中兴通讯股份有限公司 | A kind of Compilation Method and corresponding interface, component and system based on YANG models |
Non-Patent Citations (2)
Title |
---|
SRINI: "Experimenting with NETCONF connector in OpenDaylight", 《HTTP://SDNHUB.ORG/TUTORIALS/OPENDAYLIGHT-TUTORIAL/EXPERIMENTING-WITH-NETCONF-CONNECTOR-IN-OPENDAYLIGHT/》 * |
WELLBEING: "SDN开发笔记(六):yang模型理解", 《SDNLAB专注网络创新技术》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109361550A (en) * | 2018-11-21 | 2019-02-19 | 国家计算机网络与信息安全管理中心 | The method, device and equipment of network equipments configuration management |
CN109361550B (en) * | 2018-11-21 | 2021-06-08 | 国家计算机网络与信息安全管理中心 | Method, device and equipment for network equipment configuration management |
CN111988179A (en) * | 2020-08-21 | 2020-11-24 | 华信塞姆(成都)科技有限公司 | YANG model management system, method and storage medium |
CN112597343A (en) * | 2020-12-21 | 2021-04-02 | 安徽皖通邮电股份有限公司 | Netconf automatic configuration generation method |
Also Published As
Publication number | Publication date |
---|---|
CN108055142B (en) | 2021-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108055143A (en) | The collocation method and system of a kind of SDN-Hub | |
CN108055142A (en) | A kind of interface automatic configuration method and system of vCPE equipment | |
CN106713357A (en) | Universal network protocol analysis method | |
CN110348201A (en) | A kind of configuration method and device of device security policy | |
CN107766042A (en) | A kind of visual data manager and device of the model file based on CSAR | |
CN109032949A (en) | A kind of front-end code quality determining method and device | |
CN107291450A (en) | A kind of quick code automatic generation method for programming friendly | |
CN101977121A (en) | Configuration file processing method, device and system | |
CN103425497B (en) | The method and apparatus that a kind of network engineering script is changed across producer | |
CN106354492A (en) | Automatic code generation method and system capable of rapidly adjusting transaction process connection | |
CN105138454B (en) | Automatic testing method for B/S architecture security software | |
CN109117377A (en) | It is a kind of based on the automatic generation of test data, device and equipment of building table statement | |
US9038058B2 (en) | Configuration of software for a wind turbine | |
CN109445794A (en) | A kind of page building method and device | |
CN103678349A (en) | Method and device for filtering useless data | |
CN110018835A (en) | YANG model configuration data processing method and device, terminal device and storage medium | |
CN113031944A (en) | Template-based service opening device and method | |
CN107423105A (en) | A kind of automatic generation method of interface document | |
CN106919387A (en) | A kind of software delivery system and dissemination method | |
CN111813648A (en) | Automatic testing method and device applied to App, storage medium and electronic equipment | |
CN116483707A (en) | Test method, test device, test apparatus, test program, and test program | |
CN102882737A (en) | Transaction language-1(TL1) command automatically testing method based on extensible markup language (XML) script | |
CN110134904A (en) | A kind of page check method, apparatus, equipment and medium | |
US8495596B1 (en) | System, method, and computer program for interfacing an automatic operational support system with a legacy operational support system | |
CN109240660A (en) | A kind of cut-in method of ad data, storage medium, electronic equipment and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |