CN110311826A - Method for configuring network equipment and device - Google Patents

Method for configuring network equipment and device Download PDF

Info

Publication number
CN110311826A
CN110311826A CN201910731100.4A CN201910731100A CN110311826A CN 110311826 A CN110311826 A CN 110311826A CN 201910731100 A CN201910731100 A CN 201910731100A CN 110311826 A CN110311826 A CN 110311826A
Authority
CN
China
Prior art keywords
xml
node
tree
path
configuration
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
CN201910731100.4A
Other languages
Chinese (zh)
Other versions
CN110311826B (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 CN201910731100.4A priority Critical patent/CN110311826B/en
Publication of CN110311826A publication Critical patent/CN110311826A/en
Application granted granted Critical
Publication of CN110311826B publication Critical patent/CN110311826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

This application involves technical field of network management, a kind of method for configuring network equipment and device are provided.Wherein, method for configuring network equipment is applied to management equipment, comprising: receives multiple XML configuration that business module is submitted in the affairs of Configuration network equipment, includes the information for the equipment operation to be executed in XML configuration;A totality XML configuration is merged into multiple XML configuration, and generates the NETCONF protocol massages including totality XML configuration;NETCONF protocol massages are sent to the network equipment, so that the network equipment configures itself according to overall XML configuration.Merging of the above method due to carrying out XML configuration based on NETCONF, advantageously reduces network pressure, lifting means performance.Meanwhile method is realized based on NETCONF, is not perceived by business module, that is, be will not influence the performance of business module.

Description

Method for configuring network equipment and device
Technical field
This application involves technical field of network management, in particular to a kind of method for configuring network equipment and device.
Background technique
With the continuous expansion of software size, traditional network management procedure has been no longer appropriate for existing business development, A kind of new network framework -- software defined network (Software Defined Network, SDN) generates therewith, and SDN is net A kind of implementation of network virtualization.The current state of development of SDN is good, advantage also clearly, and in the bottom of SDN to equipment Configuration and management complete frequently with NETCONF agreement.
In NETCONF frame, the operation of equipment all uses very little granularity to be defined, that is, defines the base to equipment operation This unit, the form that these basic units can be encapsulated as interface are used by different business modules.Complete a business The combination of multiple above-mentioned basic units may be needed, i.e. business module needs repeatedly to carry out interface calling.
In the prior art, each interface calling can all generate a corresponding message, which, which is eventually managed, sets Standby to be sent to the network equipment being managed, the network equipment executes corresponding equipment according to the information for the equipment operation for including in message Operation, to realize the configuration to itself.In this course, due to having sent a large amount of message, lead to management equipment and net Network pressure between network equipment increases.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of method for configuring network equipment and device.In the method, management is set The standby multiple XML configuration for merging business module and submitting, and the overall XML of acquisition configuration is carried in the message for being used for device configuration In, hence for a configuration transaction of business module, management equipment only needs to send a NETCONF message to the network equipment The configuration to the network equipment can be completed, effectively reduce network pressure.
To achieve the above object, the application provides the following technical solutions:
In a first aspect, the embodiment of the present application provides a kind of method for configuring network equipment, it is applied to management equipment, the method Include: the multiple XML configuration for receiving business module and being submitted in the affairs of Configuration network equipment, includes to want in the XML configuration The information of the equipment operation of execution;A totality XML configuration is merged into the multiple XML configuration, and it includes described total for generating The NETCONF protocol massages of body XML configuration;The NETCONF protocol massages are sent to the network equipment, so that the network Equipment configures itself according to totality XML configuration.
In the above-mentioned methods, management equipment submits the business module of management equipment in the affairs of Configuration network equipment Multiple XML configurations synthesize a totality XML configuration, then carry overall XML configuration in NETCONF protocol massages to net Network equipment is sent, to realize the configuration of the network equipment.Relative to the mode for repeatedly sending message in comparative examples, due to being directed to One affairs only needs to send a message, therefore effectively reduces the network pressure between management equipment and the network equipment.Together When, management equipment and the network equipment get a promotion without a large amount of message, equipment performance is handled.
On the other hand, the above method is realized based on NETCONF, is realized in business module, therefore can be with Different business modules interact, and have good versatility (mutually separating with business).Simultaneously because business module is not necessarily to The improvement of NETCONF agreement is perceived, therefore will not influence the performance of business module.
In some implementations of first aspect, the NETCONF agreement report is sent to the network equipment described After text, the method also includes: the configuration result of the network equipment return is received, and the configuration result is returned into institute State business module.
In these implementations, business module can know network equipments configuration as a result, thereby executing patrolling accordingly Volume.
It is described that the multiple XML configuration is merged into a totality XML and matched in some implementations of first aspect It sets, comprising: generate a corresponding XML object tree for each XML configuration, the node object in the XML object tree is corresponding XML node in the XML configuration;Multiple XML object trees of acquisition are merged into an overall XML object tree;According to described The multiple XML configuration is merged into a totality XML configuration by the structure of overall XML object tree.
In these implementations, do not merge multiple XML configurations not instead of directly, converts XML object for XML configuration Tree, the merging for instructing XML to configure by merging XML object tree, since operation object is more more convenient than operation XML text, because The merging mode of this such XML configuration is more efficient.
In some implementations of first aspect, is configured for any XML and generate a corresponding XML object tree, packet It includes: generating a corresponding node object for each XML node of XML configuration, wherein if the XML node includes Attribute then generates a corresponding attribute member for each attribute in the node object;According to each in XML configuration Hierarchical relationship between a XML node, multiple node objects based on generation construct original XML object tree;To the original XML Node object in object tree is reduced, and the XML object tree is obtained.
Since XML object tree is intended merely to instruct the intermediate data structure of XML configuration merging and setting, XML object Tree need not completely with XML configuration consistency, it can original XML object tree (with XML configuration it is completely the same) on the basis of carry out A degree of reduction, retains key message therein, does not influence the merging of XML configuration.
In some implementations of first aspect, the node object in the original XML object tree contracts Subtract, comprising: determine that the first kind node object in the original XML object tree, the first kind node object refer to characterization institute State the identical a kind of node object of action type of equipment operation;By the descendant nodes object of the first kind node object from institute It states and is deleted in original XML object tree;Determine the second class node object in the original XML object tree, the second class node Object refers to the node object for meeting following condition: the node object itself is not belonging to the first kind node object, if also, The node object has descendant nodes object, and all descendant nodes objects are also not belonging to the first kind node object;If described Second class node object does not have child node object, then generates in the father node object of the second class node object and described the The corresponding attribute member of two class node objects, and the second class node object is deleted from the original XML object tree, weight Multiple processing is until the second class node object all in the original XML object tree is deleted.
In these implementations, the principle of two kinds of possible reduction node objects is given.First, first kind node pair As characterizing action type, it is therefore desirable to retain, descendant nodes object can be deleted, but not influence the merging (reference of XML configuration Following merging part);Second, the second class node object is converted into attribute member, actual information is not lost, while convenient for true Surely merge path (referring to following merging part).
First kind node pair in some implementations of first aspect, in the determination original XML object tree As, comprising: the first kind is determined according to the corresponding attribute value of attribute member of the node object in the original XML object tree Node object.
For example, can have attribute value in XML configuration is " delete " if the action type of equipment operation is to delete XML node can determine that corresponding node object is first kind node object according to the attribute value.
It is described that multiple XML object trees of acquisition are merged into a totality XML in some implementations of first aspect Object tree, comprising: one is selected from the multiple XML object tree as benchmark XML object tree, every time from except the benchmark It selects one in remaining XML object tree other than XML object tree to merge with the benchmark XML object tree, amalgamation result is as new The benchmark XML object tree, execute the merging process of XML object tree at least once up to there is no the remaining XML objects Tree, the benchmark XML object tree finally obtained are the overall XML object tree.
In some implementations of first aspect, a remaining XML object tree is merged with benchmark XML object tree, is wrapped It includes: determining first path of each first kind node object in the remaining XML object tree;From the benchmark XML object tree Root node object start, successively by the benchmark XML object tree node object and the first path on corresponding position Node object be compared, the second path of at least one of the benchmark XML object tree is determined, on second path Node object is identical as the node object of corresponding position in the first path;One is determined from least one described second path A path is as merging path;If the length for merging path is shorter than the length of the first path, by the first via On diameter it is first from the descendant nodes object merging of different node object and the node object on the merging path to described Benchmark XML object tree, the brotgher of node as the first node object different from the first path on the merging path Object;If the length for merging path is equal to the length of the first path, by the last one section in the first path Point object is incorporated into the benchmark XML object tree, the brotgher of node as the last one node object on the merging path Object.
It is described to determine that a path is made from least one described second path in some implementations of first aspect To merge path, comprising: by a longest path at least one described second path as merging path.
In these implementations, using path longest in the second path as path is merged, be conducive to XML configuration with most Small cost is completed to merge, and improves combined efficiency, reduces the volume of totality XML configuration.
In some implementations of first aspect, multiple XML object trees of acquisition are merged into a totality described Before XML object tree, the method also includes: for the node object comprising attribute member, by attribute member according to corresponding Property Name is ranked up.
Since the attribute member of the node object in the second path and first path can be compared when determining merging path, Therefore these attributes member is sorted in advance, the process compared can be accelerated.
Second aspect, the embodiment of the present application provide a kind of network equipments configuration device, are applied to management equipment, described device It include: configuration receiving module, the multiple XML configuration submitted in the affairs of Configuration network equipment for receiving business module, institute State the information comprising the equipment operation to be executed in XML configuration;Merging module is configured, is merged for configuring the multiple XML It is configured for a totality XML, and generates the NETCONF protocol massages including totality XML configuration;Message sending module is used In sending the NETCONF protocol massages to the network equipment, so that the network equipment is according to totality XML configuration pair Itself is configured.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, on computer readable storage medium Computer program instructions are stored with, when the computer program instructions are read out by the processor and run, execute first aspect or the The step of method that the possible embodiment of any one of one side provides.
Fourth aspect, the embodiment of the present application provide a kind of management equipment, including memory and processor, the memory In be stored with computer program instructions, when the computer program instructions are read and are run by the processor, execute first party The step of method that the possible embodiment of any one of face or first aspect provides.
To enable the above-mentioned purpose of the application, technical scheme and beneficial effects to be clearer and more comprehensible, special embodiment below, and Cooperate appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the interaction figure of management equipment provided by the embodiments of the present application and the network equipment;
Fig. 2 shows a kind of structural block diagrams of management equipment provided by the embodiments of the present application;
Fig. 3 shows the embodiment of the present application and provides a kind of flow chart of method for configuring network equipment;
Fig. 4 shows a kind of functional block diagram of network equipments configuration device provided by the embodiments of the present application.
Specific embodiment
In SDN network, management equipment realizes the configuration of the network equipment by business module and NETCONF module, In, the business module being previously mentioned includes at least one, is also possible to multiple and different business modules.The offer of NETCONF agreement connects Confession business module calls, and each interface calls so that the network equipment executes a basic equipment operation.Business module into When line interface calls, the XML of the information comprising the equipment operation to be executed can be configured as call parameters and be passed to NETCONF module.
Multinomial equipment operation is often corresponded to the configuration service of the network equipment in practice, therefore business module needs progress more Secondary interface calls, and in comparative examples realization, each interface calling can all generate a corresponding NETCONF message, should NETCONF message can managed devices be sent to the network equipment, the network equipment is according to the information of the equipment operation for including in message Corresponding equipment operation is executed, to realize the configuration to itself.
For example, management equipment wishes to delete certain accesses control list (Access in the network equipment in some business Control List, ACL) and access control entry (Access Control Entry, ACE).It is cited hereafter for convenience, by this Example, which is known as configuring, deletes example.
It is following (it should be understood that these XML configuration is merely illustrative, not necessarily that the XML configuration used in example is deleted in configuration It is completely identical with XML used in reality):
XML1: the XML configuration of ACL-1 (corresponding equipment operation) is deleted
XML2: the XML configuration of ACL-2 (corresponding equipment operation) is deleted
XML3: the XML configuration of the ACE-1 (corresponding equipment operation) of ACL-3 is deleted
XML4: the XML configuration of the ACE-2 (corresponding equipment operation) of ACL-3 is deleted
The NETCONF module key step to be executed of management equipment is as follows:
A. the interface for responding business module calls, and defines the affairs of sweep equipment configuration, and starts the things, and And sending indicates the message for starting affairs to the network equipment;
B. it receives business module and the XML1 submitted is called by interface, and send the message comprising XML1 to the network equipment;
C. it receives business module and the XML2 submitted is called by interface, and send the message comprising XML2 to the network equipment;
D. it receives business module and the XML3 submitted is called by interface, and send the message comprising XML3 to the network equipment;
E. it receives business module and the XML4 submitted is called by interface, and send the message comprising XML4 to the network equipment;
F. the interface for responding business module calls, and submits the affairs of sweep equipment configuration, and carries out scheduled logical process, Finally send indicate the message for submitting affairs to the network equipment, thus the network equipment can start successively to execute in affairs include Equipment operation;
G. it waits the network equipment to return to configuration result and (executes the corresponding equipment operation of XML1, XML2, XML3 and XML4 As a result).
Message in above-mentioned steps b, c, d, e is also possible to uniformly be sent after affairs are submitted, but no matter send How is opportunity, and during configuration above, management equipment will send 6 messages to the network equipment.
In the same way, management equipment is a large amount of due to send when carrying out the configuration of the network equipment by NETCONF agreement Protocol massages, cause the network pressure between management equipment and the network equipment to increase, simultaneously as management equipment and network are set The standby transmitting-receiving for needing to carry out a large amount of messages may cause equipment performance decline.
Drawbacks described above present in comparative examples is inventor obtaining after practicing and carefully studying as a result, Therefore, the discovery procedure of the above problem and the solution that hereinafter embodiment of the present invention is proposed regarding to the issue above, all It should be the contribution that inventor makes the present invention in process of the present invention.
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being done Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile the application's In description, term " first ", " second " etc. are only used for distinguishing one entity or operation from another entity or operation, It is not understood to indicate or imply relative importance, can not be understood as require that or imply and be deposited between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Fig. 1 shows the interaction figure of management equipment 100 and the network equipment 200 provided by the embodiments of the present application.Referring to Fig.1, Management equipment 100 is used to be managed based on NETCONF Protocol Through Network equipment 200, including matches to the network equipment 200 It sets.It include: one or more business module 110 and NETCONF module 120, business module 110 in management equipment 100 Service logic is realized according to specific demand, and NETCONF module is based on NETCONF protocol realization, while providing interface for business Business module in module 110 calls to configure to the network equipment 200, and when calling can configure XML as calling Parameter passes to NETCONF module 120, includes the information of the equipment operation to be executed of the network equipment 200 in XML configuration.It is above-mentioned By the agency of mistake when before application scenarios the problem of introducing comparative examples, does not make excessive repeated explanation herein.This Application is intended to improve the realization logic of NETCONF agreement in comparative examples to solve the problems, such as that it exists, and for business mould The logic of block 110 may not need change.
The specific structure of management equipment 100 can be as shown in Figure 2 in Fig. 1.Referring to Fig. 2, management equipment 100 includes: processing Device 130, memory 140 and communication interface 150, these components pass through communication bus 160 and/or the bindiny mechanism of other forms (not shown) is interconnected and is mutually communicated.
Wherein, memory 140 includes one or more (one is only shown in figure), may be, but not limited to, deposits at random Access to memory (Random Access Memory, abbreviation RAM), read-only memory (Read Only Memory, abbreviation ROM), Programmable read only memory (Programmable Read-Only Memory, abbreviation PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, abbreviation EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, abbreviation EEPROM) etc..Processor 130 and Other possible components can access to memory 140, read and/or write data therein.
Processor 130 includes one or more (one is only shown in figure), can be a kind of IC chip, has The processing capacity of signal.Above-mentioned processor 130 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), micro-control unit (Micro Controller Unit, abbreviation MCU), network processing unit (Network Processor, abbreviation NP) or other conventional processors;It can also be application specific processor, including digital signal Processor (Digital Signal Processor, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuits, abbreviation ASIC), field programmable gate array (Field Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Communication interface 150 includes one or more (one is only shown in figure), can be used for carrying out with other equipment direct Or communicate indirectly, to carry out the interaction of data, in the embodiment of the present application, other equipment can refer to the network in Fig. 1 Equipment 200.Communication interface 150 can be Ethernet interface;It can be mobile communications network interface, such as 3G, 4G, 5G network Interface;Still it can be the other kinds of interface with data transmit-receive function.
It can store one or more computer program instructions in memory 140, processor 130 can read and run These computer program instructions, the step of to realize method for configuring network equipment provided by the embodiments of the present application and other expectations Function (such as other function of business module 110, NETCONF module 120).
It is appreciated that structure shown in Fig. 2 is only to illustrate, management equipment 100 may also include it is more than shown in Fig. 2 or Less component, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can using hardware, software or its Combination is realized.In the embodiment of the present application, management equipment 100 may be, but not limited to, special inspecting equipment, desktop computer, notes The entity devices such as this computer, smart phone can also be the virtual units such as virtual machine.In addition, management equipment 100 is also not necessarily Single device can also be combination, such as server cluster of multiple devices, etc..
Fig. 3 shows the embodiment of the present application and provides a kind of flow chart of method for configuring network equipment.The process of this method can To be executed by the NETCONF module in management equipment.Referring to Fig. 3, this method comprises:
Step S300: multiple XML that the business module of management equipment is submitted in the affairs of Configuration network equipment are received and are matched It sets.
Include the equipment operation for needing the network equipment to execute in a certain business, thing in the affairs initiated by business module Business ensures that these operations can be executed as a whole.It include the letter of the network equipment equipment operation to be executed in XML configuration Breath only includes the information of an equipment operation in one XML configuration in the case where relatively common, but is also not excluded for an XML The case where including the information of multinomial equipment operation in configuration, XML configuration are transferred in such a way that interface calls from business module NETCONF module.
Example is deleted for mentioning configuration before, step S300 can be achieved that (executing subject of following sub-step is equal For NETCONF module):
A. the interface for responding business module calls, and defines the affairs of sweep equipment configuration, and starts the things, but Message is not sent to the network equipment;
B. it receives business module and the XML1 submitted is called by interface, but the message not sent is to the network equipment;
C. it receives business module and the XML2 submitted is called by interface, but the message not sent is to the network equipment;
D. it receives business module and the XML3 submitted is called by interface, but the message not sent is to the network equipment;
E. it receives business module and the XML4 submitted is called by interface, but the message not sent is to the network equipment;
F. the interface for responding business module calls, and submits the affairs of sweep equipment configuration, and carries out scheduled logical process, But the message not sent is to the network equipment.
Step A to F and step a to f is compared, difference is in step S300 that only receiving XML configuration and affairs opens The information for beginning and submitting, but corresponding message is not sent to the network equipment.
Step S310: merging into a totality XML configuration for multiple XML configuration, and generating includes totality XML configuration NETCONF protocol massages.
Step S320: sending NETCONF protocol massages to the network equipment, so that the network equipment is according to overall XML configuration pair Itself is configured.
For two steps above, the mode for merging multiple XML configurations is not construed as limiting, the overall XML configuration after merging In the information comprising the network equipment overall device operation to be executed in this affairs, thus after the network equipment receives message, The content that can be configured according to overall XML executes corresponding operation, completes the configuration to itself.Note that since overall XML is configured Disposably be sent to the network equipment, therefore be not necessarily as an affairs, thus in addition to NETCONF protocol massages above-mentioned it Outside, the message for indicating to start affairs and indicating to submit affairs also need not individually be sent.
Successfully etc. whether configuration result (e.g., configuration information) after configuration, can be passed through NETCONF by the network equipment The form of message returns to management equipment, and configuration result is further returned to business module by the NETCONF agreement of management equipment Business module, so that business module can execute corresponding processing logic.
In above-mentioned method for configuring network equipment, only need to send a message for the affairs of a Configuration network equipment (the step S310, message in S320) has contained whole necessary informations needed for Configuration network equipment in the message, relatively Management equipment and net are effectively reduced due to reducing the data volume transmitted in network in the mode for repeatedly sending message Network pressure between network equipment.Meanwhile management equipment and the network equipment are obtained without a large amount of message, equipment performance is handled It is promoted.
On the other hand, the above method is based on NETCONF protocol realization, independent of the realization of business module, and can To be interacted from different business modules, have good versatility (mutually being separated with business).Simultaneously because business module Logic existing logic can be maintained constant (not perceiving the improvement of NETCONF agreement), without to a large amount of existing industry Business module is modified, and enforcement difficulty is lower, will not influence the performance of business module.
Further, in step s310, can by directly by operation XML text in a manner of by multiple XML configure carry out Merge into overall XML configuration.But in view of directly operation text is complex, in some implementations, first against each XML configuration generates a corresponding XML object tree, which includes multiple node objects, and each node object is corresponding XML node (but each XML node not necessarily corresponds to a node object) in one XML configuration.Wherein, above-mentioned object can be with Referring to that various program design languages call the turn so-called object, XML object tree refers to the tree form data structure formed by multiple objects, by The unit for constituting tree is usually known as node in data structure theory, therefore each unit of XML object tree will be constituted here Referred to as node object.
Then, multiple XML object trees of acquisition are merged into an overall XML object tree, since this step is to be directed to pair As the operation of tree, thus it is simple more many than directly processing text.
Finally, a totality XML configuration is merged into multiple XML configuration according to the structure of overall XML object tree, in this step In rapid, it is only necessary to which very simply, i.e., the merging for carrying out XML configuration according to the merging mode of XML object tree is combined The merging for merging into XML configuration of XML object tree provides guidance, so that the merging process of XML configuration becomes efficient.
Above-mentioned the step of generating a corresponding XML object tree for each XML configuration, this can be implemented so that
Step (11): a corresponding node object is generated for each XML node of XML configuration.For example, for configuration Delete the XML1 in example, 5 objects can be generated, respectively correspond config, acls in XML1, acl, acl-type, Acl-name node.If XML node include attribute, for each attribute generated in node object a corresponding attribute at Member's (attribute member itself also can be implemented as an object), such as config node have an xmlns attribute, then config is saved Point object (referring to the corresponding node object of config node, be all made of such abbreviation mode hereinafter) can have an xmnls attribute Member.If certain XML node does not include attribute, corresponding node object need not just generate attribute member.
Step (12): according to XML configure in hierarchical relationship between each XML node, multiple nodes pair based on generation As constructing original XML object tree.This step associates each node object.For example, each node object can have The member of pointer etc, to be linked with other node objects and form tree-shaped hierarchical relationship.It should be understood that step (11) (12) it is not necessarily to execute according to sequencing, node object can also be generated on one side, on one side according to the node generated Object constructs original XML object tree.
Step (13): reducing the node object in original XML object tree, obtains XML object tree.When implementation also not It excludes directly using original XML object tree as the scheme of XML object tree, but since XML object tree is intended merely to that XML is instructed to configure Merge and be arranged intermediate data structure, therefore XML object tree need not completely with XML configuration consistency, it can at original XML pairs As carrying out a degree of reduction on the basis of tree (configuring with XML completely the same), the quantity of node object, remaining section are reduced The information of the crucial equipment operation retained in point object, to be improved on the basis of not influencing the amalgamation result of XML configuration The efficiency that XML object tree merges.
A kind of possible reduction scheme is given below, is reduced in this scheme for two class node objects, respectively Referred to as first kind node object and the second class node object.It should be pointed out that reduction scheme is not unique.
The definition of first kind node object: identical one kind of action type of equipment operation is characterized in original XML object tree Node object.
Wherein, the action type that NETCONF agreement is related to may include deleting, modifying etc..In some implementations, The attribute value that the attribute of XML node shows the a:operation attribute of the acl node in action type, such as XML1 is Delete (shows action type to delete), therefore corresponding acl node object also includes an energy in original XML object tree The attribute member of action type, such as a:opertaion attribute member are enough characterized, corresponding attribute value is delete.To, First kind node object can be determined according to the corresponding attribute value of attribute member of the node object in original XML object tree, the A kind of node object can have multiple, and it for example is all delete operation that the equipment operation type of these node objects characterization is identical.When So, if the action type of equipment operation is not appeared in XML node in a manner of attribute, it is true that other modes are also not exclusively by Determine first kind node object.
For first kind node object, the mode of reduction is to delete its descendant nodes object from original XML object tree. For example, original XML object tree corresponding for XML1, the result after reduction are as follows:
XML1 after reduction
, it is emphasized that reduces in above-mentioned example is that XML1 corresponds to original XML object tree, rather than XML1 itself, only In order to facilitate present context is illustrated, the XML object tree obtained after reduction is showed in the form of XML text here, I.e. above-mentioned " XML1 after reduction ", is hereinafter all made of such illustrative fashion, no longer illustrates.
The definition of second class node object: node object itself is not belonging to first kind node object, if also, the node pair As having descendant nodes object (descendant nodes object refers to using the node object as the node object of root node object), all sons Grandson's node object is also not belonging to first kind node object.
For example, deleting the XML3 in example, in its corresponding original XML object tree, acl-type node for configuration Object and acl-name node object itself are not first kind node object (in original XML object tree first kind nodes Object is ace node object), there is no descendant nodes object, therefore be all the second class node object yet.And acl node object is certainly Body is not first kind node object, but the ace node object in its descendant nodes object is first kind node object, therefore acl Node object is not the second class node object.
For the second class node object, reduction mode is: if the second class node object does not have child node object, Generate corresponding with the second class node object attribute member in the father node object of two class node objects, and by the second class node pair As deleting from original XML object tree, reprocessing is until the second class node object all in original XML object tree is deleted It removes.
Example immediately above, acl-type node object and acl-name node object all do not have child node object, because This generates corresponding attribute member in acl node object, and by acl-type node object and acl-name node pair As being deleted from original XML object tree, at this time without the second class node object in the corresponding original XML object tree of XML3, Therefore it is following (while showing reduction) about first kind node object to reduce effect for it: the XML3 after reduction
Assuming that (x is not the first kind or the second class node pair by two second class node objects y, zAs) toolJust like flowering structure:
According to reduction rule above, z first does not have child node object, therefore generates in y node object corresponding Attribute member, and z node object is deleted, effect is as follows:
Z node object be deleted after, y node object does not have child node object, thus in x node object generate and its Corresponding attribute member (attribute member has a sub- attribute member to correspond to z node object), and y node object is deleted, it imitates Fruit is as follows:
<x y=" z=" ">
</x>
After y node object is deleted, without the second class node object, it is disposed.
When reducing to two class node objects, the label of node object can be first carried out, then reduced, and can The second class node object is reprocessed first to handle first kind node object.
It is above-mentioned multiple XML object trees (may have passed through reduction) of acquisition are merged into an overall XML object tree can be with It is achieved:
One is selected from multiple XML object trees (can arbitrarily select) as benchmark XML object tree, every time from except benchmark It selects one (can arbitrarily select) to merge with benchmark XML object tree in remaining XML object tree other than XML object tree, merges As a result as new benchmark XML object tree, the merging process of XML object tree at least once is executed until there is no remaining XMLs pair As tree, the benchmark XML object tree finally obtained is overall XML object tree.
For example, for XML1 object tree (the corresponding object tree of XML1 write a Chinese character in simplified form, remaining is similar), XML2 object tree, XML3 Object tree, XML4 object tree, can choose XML1 object tree is benchmark XML object tree, is selected from remaining three object trees XML2 object tree merges therewith, obtains new benchmark XML object tree, is denoted as XML12 object tree, then from remaining two object trees Middle selection XML3 object tree merges with XML12 object tree, obtains new benchmark XML object tree, is denoted as XML123 object tree, finally XML4 object tree is merged with XML123 object tree, obtains overall XML object tree.
Further, a remaining XML object tree is merged with benchmark XML object tree, can be used, but be not limited to as follows Mode:
Step (21): first path of each first kind node object in remaining XML object tree is determined.
Before when executing step (13), it has been determined that go out first kind node object, therefore can be according to first kind node Object determine it in the position in remaining XML object tree where first path.Certainly, if using it in step (13) He reduces mode, and even without being reduced, the in remaining XML object tree can also be first determined before step (21) execute A kind of node object.Certainly, in order to illustrate convenience, the XML object tree in following examples all refers to according to first kind node Object, the second class node object mode reduced after obtain.
Path where one node object be by since the root node object of XML object tree the node object terminate institute What all node objects of approach were constituted.First kind node pair under such definition mode, in a remaining XML object tree As the first path at place is since the root node object of remaining XML object tree, terminate to first kind node object, by approach All node objects are constituted.For example, XML2 object tree is remaining XML object tree if XML1 object tree is benchmark XML object tree, First path in XML2 object tree, where acl node object are as follows: by config node object, acls in XML2 object tree The path that node object, acl node object successively form.
Step (22): since the root node object of benchmark XML object tree, successively by the node in benchmark XML object tree Object is compared with the node object of corresponding position in first path, determines at least one of benchmark XML object tree second Path.
Wherein, two node objects are identical does not refer to that two objects are same entities, but the corresponding XML of finger joint point object The title of node is identical, and attribute member is also identical (if attribute member includes sub- attribute member's, sub- attribute member also wants identical). Second path refers to node object formation identical with the node object of corresponding position in first path in benchmark XML object tree Path.
In some optional schemes, start XML object tree merging before, can first the attribute to each node object at Member is ranked up (if there is attribute member), for example, can be ranked up according to the corresponding Property Name of attribute member.With Accelerate the comparison of step (22) interior joint object, improves combined efficiency.
About the second path is determined, for example, XML2 object tree is remaining XML if XML1 object tree is benchmark XML object tree Object tree, then first by the root node object (i.e. config node object) in XML1 object tree and first position in first path The config node object at place compares, and both discoveries are corresponding to be all the XML node of entitled config, and has xmlns category Property member, corresponding Property Name is all xmlns, and attribute value is all base:1.0, therefore the two config node objects It is identical.Then by each node object of the second layer in XML1 object tree (only one acls node object here) and the The acls node object at second position on one path compares, and the two is again identical.Then by third layer in XML1 object tree Each node object (only one acl node object here) and first path on third position at acl node pair As comparing, the two is again identical.At this time without node object in first path, comparison terminates, and determines in XML1 object tree Second path: be successively made of in XML1 object tree config node object, acls node object, acl node object Path.
In another example if XML12 object tree (is merged to obtain, after merging method can refer to by XML1 object tree, XML2 object tree Text) be benchmark XML object tree, XML3 object tree is remaining XML object tree, then first path are as follows: in XML3 object tree by The road that config node object, acls node object, acl node object, aces node object, ace node object successively form Diameter.
XML12
First by XML12 object tree root node object, that is, config node object and first path at first position Config node object compare, discovery both it is identical.Then by each node object (this of the second layer in XML12 object tree In only one acls node object) compared with the acls node object at second position in first path, the two again phase Together.It then will be in each node object of third layer in XML1 object tree (there are two acl node objects here) and first path Third position at acl node object compare, find it is different from the acl node object in first path, comparison terminates. Determine second path in XML12 object tree: by config node object, acls node object in XML12 object tree The path successively formed.
In another example principle for convenience of description, it is assumed that there is an XML5 object tree as benchmark XML object tree, XML3 object Tree is remaining XML object tree.
XML5
There are two the second paths being capable of determining that in XML5 object tree, and one is in XML5 object tree by config node The path that object, acls node object, acl node object (first occurred from top to bottom) successively form, the other is In XML13 object tree by config node object, acls node object, acl node object (second occurred from top to bottom), The path that aces node object, ace node object successively form.
Step (23): determine a path as merging path from least one second path.
It, directly can as merging path if second path has only been determined in step (22).If Multiple second paths have been determined in step (22), can therefrom selecting one, the mode of selection is not construed as limiting as path is merged, Such as it can choose second path work of wherein longest (quantity that the length in path is defined as the node object on path) To merge path.This selection mode only to need minimal number of node object being incorporated into base from remaining XML object tree Quasi- XML object tree (specific merging process is shown in next step) completes to merge to be conducive to XML configuration with the smallest cost (because the merging of XML configuration merges into guidance with XML object tree), improves combined efficiency, reduces the body of totality XML configuration Product.
If longest second path length have it is multiple, can be optionally one of as merging path, or select this The conduct that first is determined in a little second paths merges path.
For example, being benchmark XML object tree for XML12 object tree above-mentioned, XML3 object tree is remaining XML object The example of tree, the length in two the second paths are 3, it is possible to select first the second path as path is merged and (select the Two can also be with).
In another example being benchmark XML object tree for XML5 object tree above-mentioned, XML3 object tree is remaining XML pair As the example of tree, the length in two the second paths is respectively 3 and 5, so second the second path should be selected as merging road Diameter.
Step (24): if merge path length it is shorter than the length of first path, by first path it is first with merge The descendant nodes object merging of different node objects and the node object is to benchmark XML object tree on path, as merging The brotgher of node object of the first node object different from first path on path;If the length for merging path is equal to the first via The last one node object in first path is incorporated into benchmark XML object tree by the length of diameter, as merge path on most The brotgher of node object of the latter node object.
To the previous case of step (24), for example, XML3 object tree is if XML12 object tree is benchmark XML object tree Remaining XML object tree, the first node object different on path from merging is acl pairs in XML3 object tree in first path As, merging the first node object different from first path on path is the acl object in XML12 object tree, therefore according to The amalgamation result of above-mentioned rule are as follows:
XML 123
To the latter situation of step (24), for example, XML3 object tree is if XML5 object tree is benchmark XML object tree Remaining XML object tree, the then length of the length and first path that merge path are all 5, the last one node in first path Object is the ace node object in XML3 object tree, and merging the last one node object on path is in XML5 object tree Ace node object (second occurred from top to bottom), therefore according to the amalgamation result of above-mentioned rule are as follows:
XML53
In the above example, it due to having selected length to be used as merging path for 5 the second path, only needs to merge Ace node object is into XML5 object tree in XML4 object tree, as a comparison, if length has been selected to make for 3 the second path To merge path, it need to merge in XML4 object tree that ace node object is into XML5 object tree, since the ace node object also wraps Enclosed tool grandson's node object, it is therefore desirable to mobile node object quantity is more, merge the new benchmark XML object tree of generation also compared with Greatly, it is also larger to eventually lead to overall XML configuration.
It can be it is further seen that reduction first kind node object and the second class by the merging process of XML object tree above The meaning of node object: the information in relation to equipment operation is all recorded in first kind node object and its descendant nodes object, How first kind node object, which participates in, merges, and descendant nodes object naturally also can correspondingly participate in merging, therefore first kind section The descendant nodes object of point object can reduce;Second class node object itself is unrelated with equipment operation, but it is reduced to belong to Property member after on merge path determination produce influence.As summary, the reduction of XML primary object tree is eliminated for closing And XML configuration for redundancy information, while remain for merge XML configuration for necessary information so that totality XML matches Information all in relation to equipment operation is contained in setting, and there is lesser volume.
Fig. 4 shows a kind of functional block diagram of network equipments configuration device 400 provided by the embodiments of the present application.The configuration Device is applied to management equipment, and network equipments configuration device 400 includes: configuration receiving module 410, exists for receiving business module Multiple XML of the middle submission of Configuration network equipment are configured, and include the information for the equipment operation to be executed in the XML configuration;Match Merging module 420 is set, for a totality XML configuration to be merged into the multiple XML configuration, and generating includes the totality The NETCONF protocol massages of XML configuration;Message sending module 430, for sending the NETCONF association to the network equipment Message is discussed, so that the network equipment configures itself according to totality XML configuration.
In some implementations, network equipments configuration device 400 further include: configuration result return module, for reporting After literary sending module 430 sends the NETCONF protocol massages to the network equipment, receive what the network equipment returned Configuration result, and the configuration result is returned into the business module.
In some implementations, the multiple XML configuration is merged into a totality XML and matched by configuration merging module 420 It sets, comprising: generate a corresponding XML object tree for each XML configuration, the node object in the XML object tree is corresponding XML node in the XML configuration;Multiple XML object trees of acquisition are merged into an overall XML object tree;According to described The multiple XML configuration is merged into a totality XML configuration by the structure of overall XML object tree.
In some implementations, configuration merging module 420 generates a corresponding XML object for any XML configuration Tree, comprising: generate a corresponding node object for each XML node of XML configuration, wherein if the XML node Comprising attribute, then a corresponding attribute member is generated in the node object for each attribute;It is configured according to the XML In hierarchical relationship between each XML node, multiple node objects based on generation construct original XML object tree;To the original Node object in beginning XML object tree is reduced, and the XML object tree is obtained.
In some implementations, configuration merging module 420 contracts to the node object in the original XML object tree Subtract, comprising: determine that the first kind node object in the original XML object tree, the first kind node object refer to characterization institute State the node object of the action type of equipment operation;By the descendant nodes object of the first kind node object from described original It is deleted in XML object tree;Determining the second class node object in the original XML object tree, the second class node object is Refer to the node object for meeting following condition: the node object itself is not belonging to the first kind node object, if also, the node Object has descendant nodes object, and all descendant nodes objects are also not belonging to the first kind node object;If second class Node object does not have child node object, then generates and the second class section in the father node object of the second class node object The corresponding attribute member of point object, and the second class node object is deleted from the original XML object tree, it reprocesses Until the second class node object all in the original XML object tree is deleted.
In some implementations, configuration merging module 420 determines the first kind node pair in the original XML object tree As, comprising: the first kind is determined according to the corresponding attribute value of attribute member of the node object in the original XML object tree Node object.
In some implementations, multiple XML object trees of acquisition are merged into a totality by configuration merging module 420 XML object tree, comprising: one is selected from the multiple XML object tree as benchmark XML object tree, every time from except the base It selects one in remaining XML object tree other than quasi- XML object tree to merge with the benchmark XML object tree, amalgamation result conduct The new benchmark XML object tree executes the merging process of XML object tree at least once until there is no the remaining XMLs pair As tree, the benchmark XML object tree finally obtained is the overall XML object tree.
In some implementations, configuration merging module 420 closes a remaining XML object tree and benchmark XML object tree And, comprising: determine first path of each first kind node object in the remaining XML object tree;From XML pairs of the benchmark It is successively that the node object in the benchmark XML object tree is corresponding in the first path as the root node object of tree starts The node object of position is compared, and determines the second path of at least one of the benchmark XML object tree, second path On node object it is identical as the node object of corresponding position in the first path;From at least one described second path really A fixed path is as merging path;If the length for merging path is shorter than the length of the first path, by described the On one path it is first from the descendant nodes object merging of different node object and the node object on the merging path extremely The benchmark XML object tree, the brother as the first node object different from the first path on the merging path Node object;If the length for merging path is equal to the length of the first path, by last in the first path A node object is incorporated into the benchmark XML object tree, the brother as the last one node object on the merging path Node object.
In some implementations, configuration merging module 420 determines a path from least one described second path As merging path, comprising: by a longest path at least one described second path as merging path.
In some implementations, configuration merging module 420 is also used to merge in multiple XML object trees by acquisition Before an overall XML object tree, for the node object comprising attribute member, by attribute member according to corresponding attribute-name Title is ranked up.
The technical effect of network equipments configuration device 400 provided by the embodiments of the present application, realization principle and generation is preceding By the agency of is stated in embodiment of the method, to briefly describe, Installation practice part does not refer to place, can refer to preceding method and applies example Middle corresponding contents.
The embodiment of the present application also provides a kind of computer readable storage medium, is stored on the computer readable storage medium Computer program instructions when computer program instructions are read out by the processor and run, execute network provided by the embodiments of the present application The step of equipment configuration method.For example, the computer readable storage medium may be, but not limited to, the storage of management equipment 100 Device 140.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through it His mode is realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are aobvious The device of multiple embodiments according to the application, architectural framework in the cards, the function of method and computer program product are shown It can and operate.In this regard, each box in flowchart or block diagram can represent one of a module, section or code Point, a part of the module, section or code includes one or more for implementing the specified logical function executable Instruction.It should also be noted that function marked in the box can also be attached to be different from some implementations as replacement The sequence marked in figure occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes may be used To execute in the opposite order, this depends on the function involved.It is also noted that each of block diagram and or flow chart The combination of box in box and block diagram and or flow chart can be based on the defined function of execution or the dedicated of movement The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in computer-readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words to existing Having the part for the part or the technical solution that technology contributes can be embodied in the form of software products, the computer Software product is stored in a storage medium, including some instructions are with so that computer equipment executes each embodiment institute of the application State all or part of the steps of method.Computer equipment above-mentioned includes: personal computer, server, mobile device, intelligently wears The various equipment with execution program code ability such as equipment, the network equipment, virtual unit are worn, storage medium above-mentioned includes: U Disk, mobile hard disk, read-only memory, random access memory, magnetic disk, tape or CD etc. are various to can store program code Medium.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be subject to the protection scope in claims.

Claims (11)

1. a kind of method for configuring network equipment, which is characterized in that be applied to management equipment, which comprises
Multiple XML configuration that business module is submitted in the affairs of Configuration network equipment is received, includes to hold in the XML configuration The information of capable equipment operation;
A totality XML configuration is merged into the multiple XML configuration, and generates the NETCONF including totality XML configuration Protocol massages;
The NETCONF protocol massages are sent to the network equipment, so that the network equipment is configured according to the totality XML Itself is configured.
2. method for configuring network equipment according to claim 1, which is characterized in that sent described to the network equipment After the NETCONF protocol massages, the method also includes:
The configuration result that the network equipment returns is received, and the configuration result is returned into the business module.
3. method for configuring network equipment according to claim 1, which is characterized in that described configure the multiple XML is closed It and is a totality XML configuration, comprising:
It is configured for each XML and generates a corresponding XML object tree, described in the node object correspondence in the XML object tree XML node in XML configuration;
Multiple XML object trees of acquisition are merged into an overall XML object tree;
A totality XML configuration is merged into the multiple XML configuration according to the structure of the overall XML object tree.
4. method for configuring network equipment according to claim 3, which is characterized in that generate one for any XML configuration Corresponding XML object tree, comprising:
A corresponding node object is generated for each XML node of XML configuration, wherein if the XML node includes Attribute then generates a corresponding attribute member for each attribute in the node object;
According to the hierarchical relationship between each XML node in XML configuration, multiple node objects building based on generation is original XML object tree;
Node object in the original XML object tree is reduced, the XML object tree is obtained.
5. method for configuring network equipment according to claim 4, which is characterized in that described to the original XML object tree In node object reduced, comprising:
Determine the first kind node object in the original XML object tree, the first kind node object refers to be set described in characterization The identical a kind of node object of the action type of standby operation;
The descendant nodes object of the first kind node object is deleted from the original XML object tree;
Determine the second class node object in the original XML object tree, the second class node object, which refers to, meets following item The node object of part: the node object itself is not belonging to the first kind node object, if also, the node object have descendants's section Point object, all descendant nodes objects are also not belonging to the first kind node object;
It is raw in the father node object of the second class node object if the second class node object does not have child node object At attribute member corresponding with the second class node object, and by the second class node object from the original XML object It is deleted in tree, reprocessing is until the second class node object all in the original XML object tree is deleted.
6. method for configuring network equipment according to claim 5, which is characterized in that the determination original XML object First kind node object in tree, comprising:
The first kind node is determined according to the corresponding attribute value of attribute member of the node object in the original XML object tree Object.
7. method for configuring network equipment according to claim 5, which is characterized in that multiple XML objects by acquisition Tree merges into an overall XML object tree, comprising:
One is selected from the multiple XML object tree as benchmark XML object tree, every time from except the benchmark XML object tree It selects one in remaining XML object tree in addition to merge with the benchmark XML object tree, amalgamation result is as the new benchmark XML object tree executes the merging process of XML object tree at least once until finally obtaining there is no the remaining XML object tree The benchmark XML object tree be the overall XML object tree.
8. method for configuring network equipment according to claim 7, which is characterized in that by a remaining XML object tree and base Quasi- XML object tree merges, comprising:
Determine first path of each first kind node object in the remaining XML object tree;
Since the root node object of the benchmark XML object tree, successively by the benchmark XML object tree node object with The node object of corresponding position is compared in the first path, determines at least one of described benchmark XML object tree Two paths, the node object on second path are identical as the node object of corresponding position in the first path;
Determine a path as merging path from least one described second path;
If the length for merging path is shorter than the length of the first path, by first in the first path and conjunction And on path different node object and the node object descendant nodes object merging to the benchmark XML object tree, make For the brotgher of node object of the first node object different from the first path on the merging path;
If the length for merging path is equal to the length of the first path, by the last one node in the first path Object merging is to the benchmark XML object tree, as the brotgher of node pair for merging the last one node object on path As.
9. method for configuring network equipment according to claim 8, which is characterized in that described from least one described second tunnel Determine a path as merging path in diameter, comprising:
By a longest path at least one described second path as merging path.
10. the method for configuring network equipment according to any one of claim 7-9, which is characterized in that will be obtained described Multiple XML object trees merge into before an overall XML object tree, the method also includes:
For the node object comprising attribute member, attribute member is ranked up according to corresponding Property Name.
11. a kind of network equipments configuration device, which is characterized in that be applied to management equipment, described device includes:
Receiving unit is configured, the multiple XML configuration submitted in the affairs of Configuration network equipment for receiving business module is described It include the information for the equipment operation to be executed in XML configuration;
Combining unit is configured, for a totality XML configuration to be merged into the multiple XML configuration, and it includes described total for generating The NETCONF protocol massages of body XML configuration;
Packet sending unit, for sending the NETCONF protocol massages to the network equipment, so that the network equipment root Itself is configured according to totality XML configuration.
CN201910731100.4A 2019-08-08 2019-08-08 Network equipment configuration method and device Active CN110311826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910731100.4A CN110311826B (en) 2019-08-08 2019-08-08 Network equipment configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910731100.4A CN110311826B (en) 2019-08-08 2019-08-08 Network equipment configuration method and device

Publications (2)

Publication Number Publication Date
CN110311826A true CN110311826A (en) 2019-10-08
CN110311826B CN110311826B (en) 2022-05-17

Family

ID=68082085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910731100.4A Active CN110311826B (en) 2019-08-08 2019-08-08 Network equipment configuration method and device

Country Status (1)

Country Link
CN (1) CN110311826B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111865662A (en) * 2020-06-16 2020-10-30 新浪网技术(中国)有限公司 Network equipment configuration method and system
CN114553750A (en) * 2022-02-24 2022-05-27 杭州迪普科技股份有限公司 Automatic testing method and device based on network configuration protocol

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148702A (en) * 2011-01-13 2011-08-10 华为数字技术有限公司 Method for managing network by utilizing network configuration protocol
CN102447585A (en) * 2012-01-04 2012-05-09 迈普通信技术股份有限公司 Method and device for converting network configuration protocol response message into command line
US8335171B1 (en) * 2009-09-29 2012-12-18 Juniper Networks, Inc. NETCONF-enabled provisioning in rollback agnostic environment
CN109361550A (en) * 2018-11-21 2019-02-19 国家计算机网络与信息安全管理中心 The method, device and equipment of network equipments configuration management
US20190132213A1 (en) * 2017-10-31 2019-05-02 Electronics And Telecommunications Research Institute Method and apparatus for modeling netconf-based network system instructions with yang language

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8335171B1 (en) * 2009-09-29 2012-12-18 Juniper Networks, Inc. NETCONF-enabled provisioning in rollback agnostic environment
CN102148702A (en) * 2011-01-13 2011-08-10 华为数字技术有限公司 Method for managing network by utilizing network configuration protocol
CN102447585A (en) * 2012-01-04 2012-05-09 迈普通信技术股份有限公司 Method and device for converting network configuration protocol response message into command line
US20190132213A1 (en) * 2017-10-31 2019-05-02 Electronics And Telecommunications Research Institute Method and apparatus for modeling netconf-based network system instructions with yang language
CN109361550A (en) * 2018-11-21 2019-02-19 国家计算机网络与信息安全管理中心 The method, device and equipment of network equipments configuration management

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111865662A (en) * 2020-06-16 2020-10-30 新浪网技术(中国)有限公司 Network equipment configuration method and system
CN114553750A (en) * 2022-02-24 2022-05-27 杭州迪普科技股份有限公司 Automatic testing method and device based on network configuration protocol
CN114553750B (en) * 2022-02-24 2023-09-22 杭州迪普科技股份有限公司 Automatic test method and device based on network configuration protocol

Also Published As

Publication number Publication date
CN110311826B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
US20220012288A1 (en) Stream Computing Method, Apparatus, and System
US20210160158A1 (en) Scalable visualization of health data for network devices
CN104216912B (en) The implementation method and device of a kind of business form work fluidisation without intrusive mood
CN108958736A (en) Page generation method, device, electronic equipment and computer-readable medium
CN102724079B (en) Method and system for auxiliary configuration of Ethernet equipment
US9483571B2 (en) Persisting the state of visual control elements in uniform resource locator (URL)-generated web pages
WO2017034917A1 (en) Object-relation user interface for viewing security configurations of network security devices
CN108038212B (en) Data interaction method, device, system, equipment and storage medium
CN109614093B (en) Visual intelligent contract system and intelligent contract processing method
CN107665237B (en) Data structure classification device, and unstructured data publishing and subscribing system and method
US20060167827A1 (en) Trade-off/semantic networks
CN100563253C (en) A kind of data processing method in client
CN110311826A (en) Method for configuring network equipment and device
CN110781180A (en) Data screening method and data screening device
CN113946321A (en) Processing method of computing logic, electronic device and readable storage medium
CN114244821B (en) Data processing method, device, equipment, electronic equipment and storage medium
CN107749814A (en) Running state data update method, device and the terminal of equipment
JP2021005353A (en) Cloud search-based recommendation method, apparatus, device, and readable storage medium
US20220342742A1 (en) Graphical management of big data pipelines
CN110888695A (en) Method and device for generating page based on permission
CN110300007B (en) VNFD multi-deployment-specification deployment method and device, network element equipment, management equipment and storage medium
US8832180B2 (en) Function module dispatcher
CN111581932A (en) Data-driven big data analysis method, system, device, storage medium and terminal
CN109165049A (en) Module data processing method and processing device
JP2008217443A (en) Business process simulator, and business process simulation program

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