CN103701653A - Processing method for interface hot plugging and unplugging configuration data and network configuration server - Google Patents

Processing method for interface hot plugging and unplugging configuration data and network configuration server Download PDF

Info

Publication number
CN103701653A
CN103701653A CN201410004138.9A CN201410004138A CN103701653A CN 103701653 A CN103701653 A CN 103701653A CN 201410004138 A CN201410004138 A CN 201410004138A CN 103701653 A CN103701653 A CN 103701653A
Authority
CN
China
Prior art keywords
interface
configuration data
configuration
database
hot plug
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
Application number
CN201410004138.9A
Other languages
Chinese (zh)
Other versions
CN103701653B (en
Inventor
杨恬
丁满义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201410004138.9A priority Critical patent/CN103701653B/en
Publication of CN103701653A publication Critical patent/CN103701653A/en
Application granted granted Critical
Publication of CN103701653B publication Critical patent/CN103701653B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a processing method for interface hot plugging and unplugging configuration data and a network configuration server and relates to the technical field of network communication. A solution aiming at an interface hot plugging and unplugging scene is provided based on a NETCONF configuration management frame, and the problem of conflict between the configuration data and operation data is solved. The specific embodiment of the invention comprises the steps of additionally arranging a configuration database on a configuration database in a NETCONF server, adding hot-transferring and hot-establishing two internal operation interfaces for a managed object, further calling the internal operation interfaces according to interface hot plugging and unplugging information after the NETCONF server receives the hot plugging and unplugging information, and executing the operation corresponding to the internal operation interfaces. The technical scheme is mainly used in the interface hot plugging and unplugging process in the NETCONF configuration management frame.

Description

A kind of processing method and network configuration server of interface hot plug configuration data
Technical field
The present invention relates to network communications technology field, it relates to a kind of processing method and network configuration NETCONF server of interface hot plug configuration data.
Background technology
At present, when relating to the scene of interface hot plug, for making the recovery that the corresponding interface business can be quick, intelligent, need to when interface hot drawing, current configuration be hidden, until follow-up interface heat is inserted time then recovery configuring.But this demand is in NETCONF(Network Configuration, network configuration) be not yet met in configuration management framework, this concrete configuration frame comprises: network management entity, NETCONF server and application module.In prior art scheme, in NETCONF configuration management framework, configuration data in configuration database all comes from user's configuration operation, in NETCONF server, the configuration data of these configuration operations is analyzed, checks to only have legal and effective configuration data just can finally by managed object, be issued each application module and be come into force according to the definition of YANG data model to the incidence relation between configuration.
NETCONF configuration management framework based on above-mentioned, inventor finds when relating to the scene of interface hot plug, such as, because interface hot drawing goes out to cause the variation of the interface configuration data moved in equipment, and configuration data is still present in the configuration database of NETCONF server, and when user passes through NETCONF network management entity down distributing configuration data, and then after checking based on YANG data model analysis by NETCONF server, legal effective configuration data is issued to application module, this configuration data is issued to after application module, the configuration data variation moving due to application module causes issuing unsuccessful, thereby cause follow-up configuration data rolling back action, cause having some invalid configuration in the configuration database of NETCONF server and cannot delete.In conjunction with foregoing description, just because of prior art scheme, in NETCONF configuration management framework, there is no the solution for interface hot plug scene, and then the problem that has caused configuration data not hide and to recover, caused the collision problem of configuration data and service data, thus in the urgent need to a kind of based under NETCONF configuration management framework, for the solution of interface hot plug scene.
Summary of the invention
Embodiments of the invention provide a kind of processing method and network configuration server of interface hot plug configuration data, in based on NETCONF configuration management framework, propose a kind of solution for interface hot plug scene, solved the collision problem of configuration data and service data.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A kind of processing method of interface hot plug configuration data, the method is applied to network configuration NETCONF server, described NETCONF server at least comprises configuration database, managed object, described configuration database comprises pre-configured database, described managed object comprises built-in function interface, and described method comprises:
Described NETCONF server receiving interface hot plug message, described interface hot plug message comprises interface heat insertion message, interface hot drawing outbound message;
According to described interface hot plug message, call described built-in function interface, carry out operation corresponding to described built-in function interface.
A kind of network configuration NETCONF server, described NETCONF server at least comprises configuration data library module and managed object module, described configuration data library module comprises pre-configured database, and described managed object module comprises reception & disposal unit and built-in function interface unit;
Described reception & disposal unit, for receiving interface hot plug message, described interface hot plug message comprises interface heat insertion message, interface hot drawing outbound message; And according to described interface hot plug message, call built-in function interface corresponding in described built-in function interface unit, carry out the operation corresponding to built-in function interface of described correspondence.
Processing method and the network configuration server of a kind of interface hot plug configuration data that the embodiment of the present invention provides, first on the configuration database in NETCONF server, set up pre-configured database, and be managed object increase built-in function interface, and then at this NETCONF server receive interface hot plug message by managed object after, according to this interface hot plug message, call built-in function interface, carry out operation corresponding to built-in function interface.In prior art, under NETCONF configuration management framework, there is no the solution for interface hot plug scene, and the technical scheme that the embodiment of the present invention provides, in based on NETCONF configuration management framework, propose a kind of solution for interface hot plug scene, solved the collision problem of configuration data and service data.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The method flow diagram that Fig. 1 processes for a kind of interface hot plug configuration data that one embodiment of the invention provides;
The method flow diagram that Fig. 2 processes for a kind of interface hot plug configuration data that another embodiment of the present invention provides;
The composition schematic diagram of a kind of network configuration NETCONF configuration management framework that Fig. 3 provides for another embodiment of the present invention;
In the situation that a kind of interface hot drawing that Fig. 4 provides for another embodiment of the present invention goes out, realize the hiding method flow diagram of configuration data;
In the situation that a kind of interface hot joining that Fig. 5 provides for another embodiment of the present invention enters, realize the method flow diagram of allocation data recovering;
The method flow diagram of a kind of hiding configuration data that Fig. 6 provides for another embodiment of the present invention;
The composition schematic diagram of a kind of NETCONF server of another kind that Fig. 7 provides for another embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
One embodiment of the invention provides a kind of processing method of interface hot plug configuration data, the method is applied to NETCONF server, this NETCONF server at least comprises configuration database, managed object, wherein configuration database comprises pre-configured database, and managed object comprises two built-in function interfaces.
As shown in Figure 1, the method comprises:
101, NETCONF server receiving interface hot plug message.
Wherein, interface hot plug message comprises interface heat insertion message, interface hot drawing outbound message.
102, according to interface hot plug message, call built-in function interface, carry out operation corresponding to built-in function interface.
The processing method of a kind of interface hot plug configuration data that the embodiment of the present invention provides, first on the configuration database in NETCONF server, set up pre-configured database, and be managed object increase: (heat shifts the first built-in function interface, hot-remove) (heat creates and the second built-in function interface, hot-create) two built-in function interfaces, and then receive after interface hot plug message at this NETCONF server, according to this interface hot plug message, call built-in function interface, carry out operation corresponding to built-in function interface.In prior art, under NETCONF configuration management framework, there is no the solution for interface hot plug scene, and the technical scheme that the embodiment of the present invention provides, in based on NETCONF configuration management framework, propose a kind of solution for interface hot plug scene, solved the collision problem of configuration data and service data.
Another embodiment of the present invention provides a kind of processing method of interface hot plug configuration data, in conjunction with the description of a upper embodiment, is executing after above-mentioned 101, for the interface configuration data of determining that NETCONF server will operate, need to carry out following operation:
First, need to, from the hot plug message of 101 receptions, obtain triggering when the interface name of front port hot plug event.
What deserves to be explained is, in this interface hot plug message, at least comprise interface name, also comprise the relevant information that relates to this interface, preferred this relevant information comprises but is not defined as interface position, interface type etc., and this phase relation information and interface name are used for interface that can the current hot plug event of unique definite triggering.
Further, according to interface name, other configuration data that obtains the configuration data corresponding with interface name and be associated with this configuration data from configuration database.
What deserves to be explained is, relation due to this configuration data and other configuration data associated with this configuration data, at definition data model, be just to determine, so after having determined configuration data, other configuration data being associated with this configuration data also just can be determined.
Concrete, because comprising interface heat, interface hot plug message inserts message, interface hot drawing outbound message, and corresponding, according to interface hot plug message, call built-in function interface, while carrying out operation corresponding to built-in function interface, need to be divided into equally two kinds of situations:
The first situation, when interface hot plug message is interface heat insertion message, calls the first built-in function interface hot-remove.As shown in Figure 2, carry out above-mentionedly 102, specifically comprise:
1021,, according to interface name, in the operation configuration database from configuration database, take out the configuration data corresponding with interface name and other configuration data being associated with configuration data.
1022, configuration data and other configuration data of being associated with configuration data are loaded into pre-configured database.
The second situation, when interface hot plug message is interface hot drawing outbound message, calls the second built-in function interface hot-create.Carry out above-mentionedly 102, specifically comprise:
A, from pre-configured database, search the configuration data of interface name correspondence.
Concrete, while there is the configuration data of interface name correspondence in pre-configured database, carry out following b; While there is not the configuration data of interface name correspondence in pre-configured database, carry out following c.
B, from pre-configured database, configuration data and other configuration data of being associated with configuration data are taken out and are joined in the candidate's configuration database in configuration database, and by submitting to (commit) operation to be submitted to operation configuration database.
C, while there is not the configuration data of interface name correspondence in pre-configured database, the interface configuration data that managed object is received joins in candidate's configuration database, and is operated and be submitted to operation configuration database by commit.
Another embodiment of the present invention provides a kind of processing method of interface hot plug configuration data, has solved under the hot plug scene of the NETCONF configuration management framework based on NETCONF agreement, and the intelligence of configuration data is hidden and recovery problem.The present embodiment be take the hot plug of equipment plate card and is described as example, and the method comprises:
A, NETCONF server, on the basis of three configuration databases of NETCONF agreement regulation, increase a pre-configured database.
Preferably, this pre-configured database is called prepared configuration database, for storing configuration data deleted or to be recovered.
What deserves to be explained is, in NETCONF agreement, for NETCONF server has defined the configuration database of three types: operation (running), candidate (candidate) and startup (startup).
Concrete:
Operation configuration database: the database that represents the current active complete configuration of storage destination network device.
Candidate's configuration database: be illustrated under the prerequisite that does not affect the current configuration of destination network device the destination network device database that can be configured.Further, after having configured in this candidate's configuration database, can be by submitting to commit operate to submit to operation configuration database, further, NETCONF server by this configuration distributing after application module, configuration take-effective.
Start configuration database: the database that represents the initial-configuration data that the stored target network equipment starts.
In addition what deserves to be explained is, the processing method of the interface hot plug configuration data that the present embodiment provides is applied to NETCONF server, this NETCONF server comprises: configuration database, managed object (Management Object, be called for short MO), between this managed object and this configuration database, can communicate, and also have configuration verification and data model in this NETCONF server.Wherein, data model is to be stored in this server, the configuration data file of user or system configuration; Configuration verification, for the incidence relation between configuration data of these configuration data data-driven model definitions being analyzed, is checked at NETCONF server to only have legal and effective configuration data just can finally issue each application module and come into force by managed object.
Further, this NETCONF server can also communicate with this NETCONF client, application module, and this three forms NETCONF configuration management framework.In order more clearly to represent this NETCONF configuration management framework, as shown in Figure 3, this NETCONF configuration management framework comprises: network management entity 31, NETCONF server 32 and application module 33, in conjunction with the above-mentioned description to NETCONF server 32, this NETCONF server 32, also comprise: configuration data library module 321, managed object module 322, configuration correction verification module 323, data model module 324, and this configuration data library module 321, comprise: operation configuration database 01, candidate's configuration database 02, start configuration database 03 and pre-configured database 04.What deserves to be explained is, above-mentionedly for NETCOMF server 32, comprise that the annexation of content describes, be not repeated.
Concrete, network management entity 31, what represent is the NETCONF client that operates in network management, be used to different NMPs and operation that user interface is provided, receiving network managing person user's business operation, and business operation is converted to separately to NMP and the corresponding business configuration data distributing of operation to corresponding destination network device.
NETCONF server 32, reception comes from the business configuration request of network management entity 31, after configuration data library module 321 data checks, upgrade the content in current configuration data library module, the managed object module 322 by NETCONF agreement is handed down to the application module 33 on destination network device.In addition the managed object module 322 of NETCONF agreement receives and comes from after the configuration response or event notice of application module 33, and response message or announcement information are encapsulated as to the response message of NETCONF agreement or notify message to send to network management entity 31.
Application module 33, preferably operates on destination network device, receives the business configuration request that comes from NETCONF server 32, upgrades business configuration parameter, and configuration result is returned to NETCONF server 32.
Further, in conjunction with above-mentioned NETCONF configuration management framework as shown in Figure 3, based on this framework, when the processing method of executive's interface hot plug configuration data, in NETCONF server, be two built-in function interfaces of managed object module increase: the first built-in function interface instant heating shifts hot-remove and the second built-in function interface instant heating creates hot-create.
B, when equipment plate card is heat-pulled, call the first built-in function interface, and carry out operation corresponding to this first built-in function interface, comprising:
First, the hot drawing outgoing event of application module responding system, and notify the managed object module that this hot drawing outgoing event is corresponding.
Further, the built-in function interface that managed object module provides by NETCONF server is deleted corresponding configuration data, and these configuration datas and relevant configuration data is moved in pre-configured database from operation configuration database.
Further, according to data model definition, the relevant configuration data of configuration data association are therewith deleted from operation configuration database, and move in pre-configured database.
C, when equipment plate card heat is inserted, call the first built-in function interface, and carry out operation corresponding to this first built-in function interface, comprising:
Same, the heat of application module responding system is inserted event, and notifies this heat to insert managed object module corresponding to event.
Further, the built-in function interface that managed object module provides by NETCONF server, this heat is inserted to event corresponding configuration data and the associated configuration data deposited in pre-configured database takes out, and be loaded in candidate's configuration database and operation configuration database the recovery of configuration data when completing hot drawing and going out.
What deserves to be explained is, when this equipment insertion is that when newly heat is inserted board, this new heat is inserted configuration data corresponding to board and is not stored in pre-configured database, carries out following d.
D, directly in candidate and operation configuration database, create new configuration data.
In addition what deserves to be explained is, when the data model definition that comprises interface configuration data, can also be by expansion YANG data model, define a pre-configured loading (load-prepared) sign, for identifying, need to be configured hiding configuration data at startup configuration loading procedure, so that the follow-up recovery of carrying out hot plug configuration data.Preferably, can arrange pre-conditionedly, and add load-prepared sign to meeting pre-conditioned interface configuration data, wherein, pre-conditioned comprise but do not limit according to the type of interface set.What deserves to be explained is, NETCONF server is when starting configuration loading, according to the condition of the load-prepared sign of data model, automatically the configuration data relevant to hot plug is separated to pre-configured database, the interface configuration data that meets the load-prepared identification condition of above-mentioned data model meets above-mentioned pre-conditioned interface configuration data.
Another embodiment of the present invention provides a kind of processing method of interface hot plug configuration data, in the present embodiment, increases a pre-configured database in the configuration database of NETCONF server; In NETCONF server, be two built-in function interfaces of managed object increase: the first built-in function interface instant heating shifts hot-remove and the second built-in function interface instant heating creates hot-create, and these two built-in function interfaces are respectively used to managed object and when response apparatus hot plug event, are configured transfer and the recovery of data; By the expansion of YANG data model, a pre-configured loading load-prepared identifies, for the configuration data loading, need to hide operation when data model definition need to be at device start, what deserves to be explained is, the YANG data model that this adds load-prepared sign is after NETCONF server receives and the configuration file of storing in this locality.
In a kind of implementation of the present embodiment, realized in the situation that interface hot drawing goes out, interface configuration data and with the hiding of interface related configuration data, as shown in Figure 4, the method comprises:
401, the interface hot drawing outgoing event of interface management application module responding system, and pass through interface management module to managed object transmission interface hot drawing outbound message.
Wherein, interface management application module is arranged at the destination network device under application module, for the interface hot plug event of responding system; Interface management module is for realizing communicating by letter of application module and NETCONF server managed object.
402, managed object receives after interface hot drawing outbound message, obtains the interface name and the relevant information that are pulled out, and calls the configuration data that hot-remove built-in function interface is deleted this interface.
Wherein, relevant information comprises but is not defined as the information such as interface type, interface position, and this relevant information and interface name determine for unique the interface being pulled out.
403, NETCONF server process hot-remove operation.
Concrete, carry out steps of processing:
4031, according to interface name, in operation configuration database, find the configuration data of the interface being pulled out.
4032, from operation configuration database, the configuration data of the interface finding is taken out, move to pre-configured database.
4033, operation configuration database is configured to associated inspection, find out other configuration data being associated with this interface configuration data, and after these associated configuration datas are taken out from operation configuration database, add in pre-configured data and the corresponding position of this interface configuration data.
4034, whether associated inspection of judgement completes.
When not yet completing, repeat step 4033 above, until there is not the configuration data associated with interface configuration data in operation configuration database; When definite association has checked, carry out following 4035.
4035, will move configuration database and cover candidate's configuration database, consistent to guarantee the configuration data of storing in these two configuration databases.
After completing above-mentioned execution flow process as shown in Figure 4, the hiding operation of the configuration data that interface hot drawing goes out to cause completes.
In the another kind of implementation of the present embodiment, in the hot insertion situation of interface, realized interface configuration data and with the recovery of interface related configuration data, as shown in Figure 5, the method comprises:
501, the hot insertion event of the interface of interface management application module responding system, and to managed object transmission interface heat, insert message by interface management module.
What deserves to be explained is, interface management application module herein and interface management module are identical with the associated description in above-mentioned 401, are not repeated.
502, managed object receives after interface heat insertion message, obtains interface name and relevant information that heat is inserted, and calls hot-create built-in function interface, inserts recovery or the establishment of the configuration data of interface to realize heat.
503, NETCONF server process hot-create operation.
Concrete, carry out hot-create operation and carry out lower step:
5031, according to interface name, in pre-configured database, search whether there is the interface configuration data being hidden.
Further, on the one hand, while there is the interface configuration data being hidden in pre-configured database, carry out following 5032,5033.
5032, interface configuration data is taken out from pre-configured database, by inner edit-config operation, add in candidate's configuration database, then operate and be submitted to operation configuration database by commit.
5033, the configuration data with this interface conjunctionn in the taking-up of prepared configuration database, adds these associated configuration data in candidate's configuration database by inner edit-config operation, and is operated and be submitted to operation configuration data by commit;
On the other hand, while there is not this interface configuration data in prepared configuration database, carry out following 5034.
5034, the interface configuration data of directly managed object being imported into is operated and is added in candidate's configuration database by edit-config, and is operated and be submitted to operation configuration data by commit.
What deserves to be explained is, after completing above-mentioned method flow as shown in Figure 5, the allocation data recovering that interface heat is inserted completes.
In the another kind of implementation of the present embodiment, can be when device start, to configuring and be configured hiding configuration data in loading procedure and hide operation at startup, as shown in Figure 6, the method comprises:
601, receive data model.
What deserves to be explained is, when this data model definition, for interface configuration data adds pre-configured loading (load-prepared) sign.In the present embodiment, for interface configuration data, to add load-prepared sign identical with the associated description in steps d in embodiment above, is not repeated.
602,, when device start, the startup configuration database of preservation is loaded in operation configuration database.
603, by resolution data model, check the hiding sign load-prepared of configuration data, the configuration data that contains this sign is taken out from runtime database, join in pre-configured database.
604, carry out the relevance inspection of interface configuration, by all, take out from operation configuration database with the configuration data of interface conjunctionn, and move to the relevant position in pre-configured database.
605, repeat above-mentioned 603,604 two steps, until the configuration data of all sign load-prepared moves in pre-configured database entirely.
What deserves to be explained is, in conjunction with the description of above-mentioned steps, now start configuration data all in configuration database and that interface hot plug is irrelevant and loaded.
Further, when interface management application module starts and receive the hot insertion event of equipment interface, according to above-mentioned, as the treatment step in the implementation of Fig. 5 description, complete the recovery of interface configuration data.
Another embodiment of the present invention provides a kind of NETCONF server, and as shown in Figure 7, this NETCONF server at least comprises configuration data library module 71, managed object module 72.And configuration data library module 71 comprises pre-configured database 711, managed object module 72 at least comprises: reception & disposal unit 721, built-in function interface unit 722.
Reception & disposal unit 721, for receiving interface hot plug message, also for and according to interface hot plug message, call in built-in function interface unit 722 corresponding built-in function interface, and carry out this corresponding corresponding operation of built-in function interface.
Wherein, interface hot plug message comprises interface heat insertion message, interface hot drawing outbound message.
Optionally, reception & disposal unit 721 also, for after receiving interface hot plug message, obtains interface name from hot plug message; And according to interface name, from configuration data library module 71, obtain the configuration data corresponding with interface name and other configuration data being associated with configuration data.
Because comprising interface heat, interface hot plug message inserts two kinds of message and interface hot drawing outbound messages, accordingly according to interface hot plug message, call built-in function interface corresponding in built-in function interface unit 722, while carrying out this corresponding corresponding operation of built-in function interface, also comprise two kinds of operation formats, concrete:
On the one hand, when interface hot plug message is interface hot drawing outbound message, reception & disposal unit 721, for according to interface name, takes out the configuration data corresponding with interface name and other configuration data being associated with configuration data in the operation configuration database from configuration data library module 71; And configuration data and other configuration data of being associated with configuration data are loaded into pre-configured database 711.
What deserves to be explained is, interface built-in function interface unit 722 comprises that (heat shifts the first built-in function interface, and (heat creates hot-remove) He the second built-in function interface, hot-create).And these two built-in function interfaces are respectively used to realize managed object and when response apparatus hot plug event, are configured transfer and the recovery of data.
Concrete, when interface hot plug message is interface hot drawing outbound message, what this reception & disposal unit 721 called is the first built-in function interface, and carries out operation corresponding to this first built-in function interface.
Wherein, description above the corresponding operation of this first internal interface namely, according to interface name, in the operation configuration database from configuration data library module, take out the configuration data corresponding with this interface name and other configuration data being associated with this configuration data; And then these configuration datas and other configuration data of being associated with configuration data are loaded in pre-configured database 711.
On the other hand, when interface hot plug message is interface heat insertion message, reception & disposal unit 721, for calling the second built-in function interface, and carries out the corresponding operation of this second built-in function interface.Be specially:
From pre-configured database 711, search the configuration data of interface name correspondence; Also for when there is the configuration data of interface name correspondence in pre-configured data 711 storehouses, from pre-configured database 711, configuration data and other configuration data of being associated with configuration data are taken out and joined in the candidate's configuration database in configuration database 71, and by submitting to commit operation to be submitted to operation configuration database.
While there is not the configuration data of interface name correspondence in pre-configured database 711, the interface configuration data that reception & disposal unit 721 is received joins in candidate's configuration database, and by submitting to (commit) operation to be submitted to operation configuration database.
Optionally, reception & disposal unit 721, also for receiving and store data model, this data model comprises the configuration data that carries load-prepared sign, and when starting configuration loading, condition according to the load-prepared sign of data model, is separated to pre-configured database by the configuration data relevant to hot plug automatically.
A kind of NETCONF server that the embodiment of the present invention provides, first on the configuration database in this server, set up pre-configured database, and be managed object increase hot-remove and two built-in function interfaces of hot-create, and then receive after interface hot plug message at this NETCONF server, according to this interface hot plug message, call built-in function interface, carry out operation corresponding to built-in function interface.In prior art, under NETCONF configuration management framework, there is no the solution for interface hot plug scene, and the technical scheme that the embodiment of the present invention provides, in based on NETCONF configuration management framework, propose a kind of solution for interface hot plug scene, solved the collision problem of configuration data and service data.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computer, hard disk or CD etc., comprise some instructions with so that computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (10)

1. the processing method of an interface hot plug configuration data, it is characterized in that, described method is applied to network configuration NETCONF server, described NETCONF server at least comprises configuration database, managed object, described configuration database comprises pre-configured database, described managed object comprises built-in function interface, and described method comprises:
Described NETCONF server receiving interface hot plug message, described interface hot plug message comprises interface heat insertion message, interface hot drawing outbound message;
According to described interface hot plug message, call described built-in function interface, carry out operation corresponding to described built-in function interface.
2. the processing method of interface hot plug configuration data according to claim 1, is characterized in that, after receiving described interface hot plug message, also comprises:
From described hot plug message, obtain interface name;
According to described interface name, from described configuration database, obtain the configuration data corresponding with described interface name and other configuration data being associated with described configuration data.
3. the processing method of interface hot plug configuration data according to claim 2, it is characterized in that, when described interface hot plug message is described interface hot drawing outbound message, call the first built-in function interface in described built-in function interface, carry out operation corresponding to described the first built-in function interface, comprising:
According to described interface name, in the operation configuration database from described configuration database, take out the configuration data corresponding with described interface name and other configuration data being associated with described configuration data;
Described configuration data and other configuration data of being associated with described configuration data are loaded into described pre-configured database.
4. the processing method of interface hot plug configuration data according to claim 2, it is characterized in that, when described interface hot plug message is described interface heat insertion message, call the second built-in function interface in described built-in function interface, carry out operation corresponding to described the second built-in function interface, comprising:
From described pre-configured database, search the configuration data of described interface name correspondence;
While there is the configuration data of described interface name correspondence in described pre-configured database, from described pre-configured database, described configuration data and other configuration data of being associated with described configuration data are taken out and joined in the candidate's configuration database in described configuration database, and by submitting to commit operation to be submitted to described operation configuration database;
While there is not the configuration data of described interface name correspondence in described pre-configured database, the interface configuration data that described managed object is received joins in described candidate's configuration database, and is submitted to described operation configuration database by described commit operation.
5. according to the processing method of the interface hot plug configuration data described in claim 1-4 any one, it is characterized in that, described method also comprises:
Receive and store data model, described data model comprises the configuration data that carries pre-configured loading sign, described NETCONF server is when starting configuration loading, condition according to the pre-configured loading sign of described data model, is separated to described pre-configured database by the configuration data relevant to hot plug automatically.
6. a network configuration NETCONF server, it is characterized in that, described NETCONF server at least comprises configuration data library module and managed object module, described configuration data library module comprises pre-configured database, and described managed object module comprises reception & disposal unit and built-in function interface unit;
Described reception & disposal unit, for receiving interface hot plug message, described interface hot plug message comprises interface heat insertion message, interface hot drawing outbound message; And according to described interface hot plug message, call built-in function interface corresponding in described built-in function interface unit, carry out the operation corresponding to built-in function interface of described correspondence.
7. NETCONF server according to claim 6, is characterized in that, described reception & disposal unit also, for after receiving described interface hot plug message, obtains interface name from described hot plug message; And according to described interface name, from described configuration data library module, obtain the configuration data corresponding with described interface name and other configuration data being associated with described configuration data.
8. NETCONF server according to claim 7, it is characterized in that, described reception & disposal unit, also for when described interface hot plug message is described interface hot drawing outbound message, according to described interface name, in the operation configuration database from described configuration data library module, take out the configuration data corresponding with described interface name and other configuration data being associated with described configuration data; And described configuration data and other configuration data of being associated with described configuration data are loaded into described pre-configured database.
9. NETCONF server according to claim 7, it is characterized in that, the configuration data of described interface name correspondence also, for when described interface hot plug message being described interface heat while inserting message, is searched in described reception & disposal unit from described pre-configured database;
Also when there is the configuration data of described interface name correspondence when described pre-configured database, from described pre-configured database, described configuration data and other configuration data of being associated with described configuration data are taken out and joined in the candidate's configuration database in described configuration data library module, and by submitting to commit operation to be submitted to described operation configuration database;
While there is not the configuration data of described interface name correspondence in described pre-configured database module, the interface configuration data that described reception & disposal unit is received joins in described candidate's configuration database, and is submitted to described operation configuration database by described commit operation.
10. according to the NETCONF server described in claim 6-9 any one, it is characterized in that, described reception & disposal unit, also for receiving and store data model, described data model comprises the configuration data that carries pre-configured loading sign, and when starting configuration loading, the condition according to the pre-configured loading sign of described data model, is separated to described pre-configured database by the configuration data relevant to hot plug automatically.
CN201410004138.9A 2014-01-06 2014-01-06 The processing method of a kind of interface hot plug configuration data and network configuration server Active CN103701653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410004138.9A CN103701653B (en) 2014-01-06 2014-01-06 The processing method of a kind of interface hot plug configuration data and network configuration server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410004138.9A CN103701653B (en) 2014-01-06 2014-01-06 The processing method of a kind of interface hot plug configuration data and network configuration server

Publications (2)

Publication Number Publication Date
CN103701653A true CN103701653A (en) 2014-04-02
CN103701653B CN103701653B (en) 2016-09-07

Family

ID=50363056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410004138.9A Active CN103701653B (en) 2014-01-06 2014-01-06 The processing method of a kind of interface hot plug configuration data and network configuration server

Country Status (1)

Country Link
CN (1) CN103701653B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017177856A1 (en) * 2016-04-15 2017-10-19 华为技术有限公司 Device configuration method and apparatus based on network configuration protocol
CN107465534A (en) * 2017-01-23 2017-12-12 北京思特奇信息技术股份有限公司 The various dimensions hot-plug method and system of a kind of system module
WO2018036255A1 (en) * 2016-08-24 2018-03-01 华为技术有限公司 Method and device for resetting network device to factory settings, and network device
CN108055142A (en) * 2017-09-30 2018-05-18 广州西麦科技股份有限公司 A kind of interface automatic configuration method and system of vCPE equipment
CN109062728A (en) * 2018-06-22 2018-12-21 北京星网锐捷网络技术有限公司 A kind of configuration recovery method and device
WO2019001321A1 (en) * 2017-06-27 2019-01-03 中兴通讯股份有限公司 Yang model extension verification method, device, and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592222A (en) * 2003-09-02 2005-03-09 华为技术有限公司 Method for interface back-up in interface hot connect-disconnect supporting system
CN1595874A (en) * 2003-09-10 2005-03-16 日本电气株式会社 Automatic network provisioning system
CN102385566A (en) * 2010-09-01 2012-03-21 研祥智能科技股份有限公司 Hot swapping method based on multiple terminal communication adapter (MTCA) platform and multiple terminal communication adapter (MTCA) platform
CN102427409A (en) * 2012-01-31 2012-04-25 迈普通信技术股份有限公司 Configuration data submission method based on network configuration (NETCONF) protocol and server thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592222A (en) * 2003-09-02 2005-03-09 华为技术有限公司 Method for interface back-up in interface hot connect-disconnect supporting system
CN1595874A (en) * 2003-09-10 2005-03-16 日本电气株式会社 Automatic network provisioning system
CN102385566A (en) * 2010-09-01 2012-03-21 研祥智能科技股份有限公司 Hot swapping method based on multiple terminal communication adapter (MTCA) platform and multiple terminal communication adapter (MTCA) platform
CN102427409A (en) * 2012-01-31 2012-04-25 迈普通信技术股份有限公司 Configuration data submission method based on network configuration (NETCONF) protocol and server thereof

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11323316B2 (en) 2016-04-15 2022-05-03 Huawei Technologies Co., Ltd. Device configuration method and apparatus that are based on network configuration protocol
WO2017177856A1 (en) * 2016-04-15 2017-10-19 华为技术有限公司 Device configuration method and apparatus based on network configuration protocol
CN113726581A (en) * 2016-08-24 2021-11-30 华为技术有限公司 Method and device for restoring factory configuration of network equipment and network equipment
WO2018036255A1 (en) * 2016-08-24 2018-03-01 华为技术有限公司 Method and device for resetting network device to factory settings, and network device
CN107786350A (en) * 2016-08-24 2018-03-09 华为技术有限公司 A kind of method, apparatus and the network equipment of the configuration of dispatching from the factory for recovering the network equipment
US11658870B2 (en) 2016-08-24 2023-05-23 Huawei Technologies Co., Ltd. Method and apparatus for restoring network device to factory defaults, and network device
US11159372B2 (en) 2016-08-24 2021-10-26 Huawei Technologies Co., Ltd. Method and apparatus for restoring network device to factory defaults, and network device
CN107786350B (en) * 2016-08-24 2021-10-15 华为技术有限公司 Method and device for restoring factory configuration of network equipment and network equipment
CN113726581B (en) * 2016-08-24 2022-09-23 华为技术有限公司 Method and device for restoring factory configuration of network equipment and network equipment
CN107465534B (en) * 2017-01-23 2021-04-16 北京思特奇信息技术股份有限公司 Multi-dimensional hot-plug method of system module
CN107465534A (en) * 2017-01-23 2017-12-12 北京思特奇信息技术股份有限公司 The various dimensions hot-plug method and system of a kind of system module
CN109144490A (en) * 2017-06-27 2019-01-04 中兴通讯股份有限公司 A kind of method and device of YANG model extension verification, computer readable storage medium
WO2019001321A1 (en) * 2017-06-27 2019-01-03 中兴通讯股份有限公司 Yang model extension verification method, device, and computer readable storage medium
CN108055142A (en) * 2017-09-30 2018-05-18 广州西麦科技股份有限公司 A kind of interface automatic configuration method and system of vCPE equipment
CN108055142B (en) * 2017-09-30 2021-02-02 广州西麦科技股份有限公司 Automatic interface configuration method and system for vCPE (virtual customer premise equipment)
CN109062728A (en) * 2018-06-22 2018-12-21 北京星网锐捷网络技术有限公司 A kind of configuration recovery method and device

Also Published As

Publication number Publication date
CN103701653B (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN108074177B (en) Data reconciliation method, system and computer-readable storage medium
CN107220142B (en) Method and device for executing data recovery operation
CN103701653A (en) Processing method for interface hot plugging and unplugging configuration data and network configuration server
CN109062489B (en) Message processing method, message processing device, storage medium and electronic device
CN107992537B (en) Service attribute transmission method, device, computer equipment and storage medium
CN105677250A (en) Method and device for updating object data in object storage system
CN110225078B (en) Application service updating method, system and terminal equipment
CN102223361A (en) Communication systems and data synchronization methods
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN102202087A (en) Method for identifying storage equipment and system thereof
CN104301428A (en) Data synchronization method and server
CN107463390B (en) Software upgrading method and upgrading server
CN111142885B (en) eSIM equipment management method, device, equipment and storage medium
CN104111862A (en) Method and system for obtaining IP (Internet Protocol) address of virtual machine in cloud computing platform
CN107623705B (en) Storage mode upgrading method, device and system based on video cloud storage system
CN110502574B (en) Cross-system information synchronization method, user equipment, storage medium and device
CN104717280A (en) Data synchronism marking method and device
CN109842482B (en) Information synchronization method, system and terminal equipment
CN110958287B (en) Operation object data synchronization method, device and system
CN107422991B (en) Storage strategy management system
CN102932513B (en) A kind of business card maintaining method, device and equipment
CN113342481B (en) Transaction state confirmation method and device
CN112380411B (en) Sensitive word processing method, device, electronic equipment, system and storage medium
CN109901933B (en) Operation method and device of business system, storage medium and electronic device
CN114598604B (en) Monitoring method, monitoring device and terminal for virtual network function instance information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant