CN111478801A - Communication equipment configuration management method and system - Google Patents
Communication equipment configuration management method and system Download PDFInfo
- Publication number
- CN111478801A CN111478801A CN202010231356.1A CN202010231356A CN111478801A CN 111478801 A CN111478801 A CN 111478801A CN 202010231356 A CN202010231356 A CN 202010231356A CN 111478801 A CN111478801 A CN 111478801A
- Authority
- CN
- China
- Prior art keywords
- configuration
- configuration operation
- reverse
- storage structure
- current
- 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.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 27
- 238000007726 management method Methods 0.000 title description 13
- 238000000034 method Methods 0.000 claims abstract description 30
- 238000012217 deletion Methods 0.000 claims abstract description 12
- 230000037430 deletion Effects 0.000 claims abstract description 12
- 230000008569 process Effects 0.000 abstract description 13
- 238000011084 recovery Methods 0.000 abstract description 6
- 230000008859 change Effects 0.000 abstract description 4
- 230000004927 fusion Effects 0.000 abstract description 2
- 238000005516 engineering process Methods 0.000 abstract 1
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000009795 derivation Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0889—Techniques to speed-up the configuration process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q11/0067—Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q2011/0079—Operation or maintenance aspects
Abstract
The invention discloses a method and a system for managing communication equipment configuration, which relate to the network element management technology.A new configuration operation and a certain configuration recovery operation are defined as a forward configuration operation, and an operation of deleting and canceling the configuration generated by the forward configuration operation is defined as a reverse configuration operation; storing each forward configuration operation and the corresponding reverse configuration operation of the device in a storage structure in a binding manner; when the device configuration is required to be cleared, the current configuration operation of the device is exported, the corresponding reverse configuration operation is obtained and executed, the configuration can be cleared quickly, the batch quick deletion of the device configuration is realized under the condition that the device is not restarted, the flow change is small, and the whole process is quick, safe and efficient. Meanwhile, the configuration clearing flow executed by the method is basically consistent with the configuration recovery flow, high fusion can be realized, and the forward configuration operation or the reverse configuration operation can be distinguished by one simple operation zone bit.
Description
Technical Field
The invention relates to the technical field of network element management, in particular to a method and a system for managing communication equipment configuration.
Background
In the actual application process of the internet communication device, due to changes of requirements, plans, services, logics and the like, the configuration may be changed correspondingly, and in the case that the configuration needs to be changed, it may be required to completely remove a part of existing configurations, where a part of configurations may be completely removed from the entire configuration, or may be required to remove all configurations under an interface based on a certain physical interface, a vlan interface, an aggregation interface and the like, or remove all configurations of a certain protocol and the like. However, in the prior art, when configuration is clear, configuration clearing is usually performed after the device is restarted, or the clearing of the configuration is performed manually, for example:
1. in the case of a device having a configuration, a new configuration file is required to be loaded and replace the existing configuration with the new configuration file without allowing the device to be restarted. In the prior art, a new configuration file is directly executed, but the existing configuration still exists and cannot be completely cleared, so that the execution of a new configuration part may fail due to the conflict between the new configuration and the existing configuration.
2. Requiring a quick clean-up of the entire configuration without restart. The existing method cannot be realized, and only configuration deletion can be manually carried out one by one, so that the efficiency is low.
3. Requiring clearing of the specified protocol or specifying the full configuration of the interface. The existing method is to delete the protocol manually one by one, or to modify each protocol greatly, which is complicated to change and has a large influence area.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a communication equipment configuration management method and a communication equipment configuration management system, which can realize batch quick deletion and configuration recovery of equipment configuration under the condition that the equipment is not restarted.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows: a method of communication device configuration management, comprising the steps of:
defining the operation of newly building and restoring a certain configuration as a forward configuration operation, and defining the operation of deleting and canceling the configuration generated by the forward configuration operation as a reverse configuration operation;
storing each forward configuration operation and the corresponding reverse configuration operation of the device in a storage structure in a binding manner;
acquiring current configuration operation and a corresponding operation zone bit, and searching a storage structure corresponding to the current configuration operation according to the current configuration operation; and judging whether the forward configuration operation or the reverse configuration operation needs to be executed according to the operation flag bit corresponding to the current configuration operation, and correspondingly acquiring and executing the forward configuration operation or the reverse configuration operation from the searched storage structure.
On the basis of the technical scheme, the types of the equipment comprise a switch, a router, a PTN, an OTN, O L T and an ONU;
the storage structure is a linked list, a tree structure, a database or a file.
On the basis of the technical scheme, when the configuration generated by a certain forward configuration operation does not need to execute deletion and cancellation operations, the reverse configuration operation corresponding to the forward configuration operation is set to be null;
when the configuration generated by a certain forward configuration operation needs to be deleted and cancelled by executing the same forward configuration operation again, the reverse configuration operation corresponding to the forward configuration operation is set as the forward configuration operation.
On the basis of the technical scheme, the specific modes for defining the forward configuration operation and the reverse configuration operation comprise a command line, SNMP, NETCONF, XM L and database configuration.
On the basis of the above technical solution, the determining whether to execute the forward configuration operation or the reverse configuration operation according to the operation flag bit corresponding to the current configuration operation, obtaining the forward configuration operation or the reverse configuration operation from the searched storage structure, and executing the obtained configuration operation specifically includes the following steps:
judging whether the forward configuration operation or the reverse configuration operation needs to be executed according to the operation zone bit corresponding to the current configuration operation:
if the forward configuration operation needs to be executed, obtaining the forward configuration operation from the searched storage structure and executing the forward configuration operation;
if the reverse configuration operation needs to be executed, obtaining the reverse configuration operation from the searched storage structure and executing the reverse configuration operation, wherein if the reverse configuration operation is set to be null, deleting and canceling operations do not need to be executed; if the reverse configuration operation is set as the forward configuration operation itself, the forward configuration operation is performed again.
The present invention also provides a communication device configuration management system, including:
a configuration definition module to: defining the operation of newly building and restoring a certain configuration as a forward configuration operation, and defining the operation of deleting and canceling the configuration generated by the forward configuration operation as a reverse configuration operation;
a binding storage module to: storing each forward configuration operation and the corresponding reverse configuration operation of the device in a storage structure in a binding manner;
a configuration execution module to: acquiring current configuration operation and a corresponding operation zone bit, and searching a storage structure corresponding to the current configuration operation according to the current configuration operation; and judging whether the forward configuration operation or the reverse configuration operation needs to be executed according to the operation flag bit corresponding to the current configuration operation, and correspondingly acquiring and executing the forward configuration operation or the reverse configuration operation from the searched storage structure.
On the basis of the technical scheme, the types of the equipment comprise a switch, a router, a PTN, an OTN, O L T and an ONU;
the storage structure is a linked list, a tree structure, a database or a file.
On the basis of the above technical solution, when the configuration definition module defines the operation of deleting and canceling the configuration generated by the forward configuration operation as a reverse configuration operation:
when the configuration generated by a certain forward configuration operation does not need to execute deletion and cancellation operations, setting the reverse configuration operation corresponding to the forward configuration operation to be null;
when the configuration generated by a certain forward configuration operation needs to be deleted and cancelled by executing the same forward configuration operation again, the reverse configuration operation corresponding to the forward configuration operation is set as the forward configuration operation.
On the basis of the technical scheme, the specific modes of defining the forward configuration operation and the reverse configuration operation by the configuration definition module respectively comprise a command line, an SNMP, a NETCONF, an XM L and database configuration.
On the basis of the above technical solution, the configuration execution module is specifically configured to:
acquiring current configuration operation and a corresponding operation zone bit, and searching a storage structure corresponding to the current configuration operation according to the current configuration operation;
judging whether the forward configuration operation or the reverse configuration operation needs to be executed according to the operation zone bit corresponding to the current configuration operation:
if the forward configuration operation needs to be executed, obtaining the forward configuration operation from the searched storage structure and executing the forward configuration operation;
if the reverse configuration operation needs to be executed, obtaining the reverse configuration operation from the searched storage structure and executing the reverse configuration operation, wherein if the reverse configuration operation is set to be null, deleting and canceling operations do not need to be executed; if the reverse configuration operation is set as the forward configuration operation itself, the forward configuration operation is performed again.
Compared with the prior art, the invention has the advantages that: the communication equipment configuration management method of the embodiment of the invention defines the operation of newly building and restoring a certain configuration as a forward configuration operation, and defines the operation of deleting and canceling the configuration generated by the forward configuration operation as a reverse configuration operation; storing each forward configuration operation and the corresponding reverse configuration operation of the device in a storage structure in a binding manner; when the equipment configuration is required to be cleared, the current configuration operation of the equipment is exported, the corresponding reverse configuration operation is obtained and executed, the configuration can be cleared quickly, the batch quick deletion of the equipment configuration is realized under the condition that the equipment is not restarted, the flow change is small, the whole process is quick, safe and efficient, and the basic configuration function is kept highly coincident with the original basic configuration function. Meanwhile, the configuration clearing flow executed by the method is basically consistent with the configuration recovery flow, high fusion can be realized, and the forward configuration operation or the reverse configuration operation can be distinguished by one simple operation zone bit.
Drawings
Fig. 1 is a flowchart illustrating a method for managing a communication device configuration according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart of a communication device configuration management method according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a communication equipment configuration management method, which can realize batch quick deletion of equipment configuration under the condition of not restarting the equipment and conveniently realize configuration recovery. The present invention also provides a communication device configuration management system, which is further described in detail below with reference to the accompanying drawings and embodiments.
Referring to fig. 1, an embodiment of the present invention provides a method for managing configuration of a communication device, including the following steps:
step 1: the operation of newly creating and restoring a certain configuration is defined as a forward configuration operation, and the operation of deleting and canceling the configuration generated by the forward configuration operation is defined as a reverse configuration operation.
In the embodiment of the present invention, the types of devices include, but are not limited to, switches, routers, PTNs (packet Transport networks), OTNs (Optical Transport networks), O L T (Optical L ine Terminal), ONUs (Optical Network units), and other communication devices.
Step 2: each forward configuration operation and the corresponding reverse configuration operation of the device are stored bound to each other in a storage structure.
In the embodiment of the invention, each forward configuration operation and the corresponding reverse configuration operation in the equipment are bound in a binding mode to form a one-to-one corresponding binding relationship, the forward configuration operation and the corresponding reverse configuration operation are defined together from a software logic relationship, so that when configuration clearing operation is carried out subsequently, the reverse configuration operation corresponding to the configuration operation is directly obtained according to the binding relationship, and the configuration clearing is carried out after the configuration clearing operation is carried out. The software logic here mainly looks at how the original forward configuration operation is saved, as long as the reverse configuration operation and the corresponding forward configuration operation are saved together in a one-to-one correspondence manner, and the storage structure includes, but is not limited to, various linked lists, tree structures, databases, files, and the like.
When the configuration generated by a certain forward configuration operation does not need to execute deletion and cancellation operations, the reverse configuration operation corresponding to the forward configuration operation is set to be null;
when the configuration generated by a certain forward configuration operation needs to be deleted and cancelled by executing the same forward configuration operation again, the reverse configuration operation corresponding to the forward configuration operation is set as the forward configuration operation.
And step 3: deriving the configuration of the equipment, acquiring the current configuration operation and the corresponding operation zone bit aiming at each current configuration operation, and searching the storage structure corresponding to the current configuration operation according to the current configuration operation; and judging whether the forward configuration operation or the reverse configuration operation needs to be executed according to the operation flag bit corresponding to the current configuration operation, and correspondingly acquiring and executing the forward configuration operation or the reverse configuration operation from the searched storage structure.
A variety of application scenarios may be derived, including one-click clearing of a specified configuration, accurate overwriting of an old configuration with a new configuration, configuration rollback, etc., all of which are done directly without rebooting the device.
The derivation of the device configuration belongs to basic functions of the device, and the basic functions can be realized according to a conventional method, after all the configurations of the device are derived, the forward configuration operation and the reverse configuration operation corresponding to the configuration operation are obtained for each current configuration operation, and the forward configuration operation and the reverse configuration operation are executed.
The communication equipment configuration management method of the embodiment of the invention defines the operation of newly building and restoring a certain configuration as a forward configuration operation, and defines the operation of deleting and canceling the configuration generated by the forward configuration operation as a reverse configuration operation; storing each forward configuration operation and the corresponding reverse configuration operation of the device in a storage structure in a binding manner; when the equipment configuration is required to be cleared, the current configuration operation of the equipment is exported, the corresponding reverse configuration operation is obtained and executed, the configuration can be cleared quickly, the batch quick deletion of the equipment configuration is realized under the condition that the equipment is not restarted, the flow change is small, the whole process is quick, safe and efficient, and the basic configuration function is kept highly coincident with the original basic configuration function.
Optionally, on the basis of the embodiment corresponding to fig. 1, determining whether to execute the forward configuration operation or the reverse configuration operation according to the operation flag bit corresponding to the current configuration operation, and obtaining and executing the forward configuration operation or the reverse configuration operation corresponding to the found storage structure specifically includes the following steps:
judging whether the forward configuration operation or the reverse configuration operation needs to be executed according to the operation zone bit corresponding to the current configuration operation:
if the forward configuration operation needs to be executed, obtaining the forward configuration operation from the searched storage structure and executing the forward configuration operation;
if the reverse configuration operation needs to be executed, obtaining the reverse configuration operation from the searched storage structure and executing the reverse configuration operation, wherein if the reverse configuration operation is set to be null, deleting and canceling operations do not need to be executed; if the reverse configuration operation is set as the forward configuration operation itself, the forward configuration operation is performed again.
The specific implementation mode is as follows:
1. the operation of creating and restoring a certain configuration is called a forward configuration operation, and the operation of deleting and canceling the generated configuration is called a reverse configuration operation.
2. And for each forward configuration operation, defining a corresponding reverse configuration operation, and logically binding the reverse configuration operation and the forward configuration operation together from software. The software logic herein includes, but is not limited to, various types of soft table, database, file, etc. storage structures.
3. Without reverse configuration operation, it can be directly empty. The reverse configuration operation may also be the same operation as the forward configuration.
4. When the configuration needs to be cleared, the current configuration is led out, then the bound reverse configuration operation is logically found from the software aiming at the current forward configuration operation, and then the reverse configuration operation is executed. If the queried reverse configuration operation is null, it means that it need not be performed.
5. The configuration clearing process and the configuration recovery process are basically consistent and can be highly fused. The identification can be distinguished by a simple operation of the flag bit. If the configuration is recovered, the forward configuration operation is executed, otherwise, the reverse configuration operation is executed.
As shown in fig. 2, the method for managing configuration of communication equipment in the embodiment of the present invention specifically includes the following steps:
s1, firstly, exporting the current configuration of the device, wherein the exported configuration can be in any form, including but not limited to various types of data such as files, linked lists, tree structures and the like. And simultaneously acquiring an operation flag bit of the current operation, which indicates whether to perform configuration data or clear data. Then S2 is performed.
S2, reading the configuration derived before one by one. If no configuration can be read, the operation is completed, or no configuration exists, and the entire process flow can be ended, then the process goes to S8. If the configuration is read, go to S3.
And S3, analyzing each configuration operation according to the read configuration to obtain a corresponding storage structure. The storage structure here is related to the previous storage mode, and may be a record in a file, such as a character string; or a node in a linked list or tree structure; or a record in a database, etc., without mandatory constraints, depending entirely on the previous storage. But each such memory structure should contain a forward configuration operation and a corresponding reverse configuration operation. And then goes to S4.
S4, according to the configuration or clearing of the operation flag bit in S1, the next processing is determined. If the operation flag bit is configured, indicating that a forward configuration operation needs to be performed, taking the obtained forward configuration operation in the storage structure, and then going to S6; if the operation flag bit is clear, indicating that a reverse configuration operation needs to be performed, taking the obtained reverse configuration operation in the storage structure, and then going to S5;
s5, the reverse configuration operation is performed, and then the process goes to S7, and the current process of this operation is ended. If the reverse configuration operation taken here is null, it means that it is not necessary to execute, and it goes directly to S7 to end the processing of this operation.
S6, the retrieved forward configuration operation is performed, and then it goes to S7.
S7, the process continues to loop to S2, and the process of the next read configuration operation is started. As long as the operation can be read in S2, the loop from S2 to S7 continues, and if the operation cannot be read, the process goes from S2 to S8, and the whole process flow is ended.
And S8, finishing all the processing flows.
An embodiment of a communication device configuration management system provided in an embodiment of the present invention includes:
a configuration definition module to: defining the operation of newly building and restoring a certain configuration as a forward configuration operation, and defining the operation of deleting and canceling the configuration generated by the forward configuration operation as a reverse configuration operation;
a binding storage module to: storing each forward configuration operation and the corresponding reverse configuration operation of the device in a storage structure in a binding manner; the storage structure is a linked list, a tree structure, a database or a file.
A configuration execution module to: acquiring current configuration operation and a corresponding operation zone bit, and searching a storage structure corresponding to the current configuration operation according to the current configuration operation; and judging whether the forward configuration operation or the reverse configuration operation needs to be executed according to the operation flag bit corresponding to the current configuration operation, and correspondingly acquiring and executing the forward configuration operation or the reverse configuration operation from the searched storage structure.
When the configuration definition module defines the operation of deleting and canceling the configuration generated by the forward configuration operation as the reverse configuration operation, the configuration definition module:
when the configuration generated by a certain forward configuration operation does not need to execute deletion and cancellation operations, setting the reverse configuration operation corresponding to the forward configuration operation to be null;
when the configuration generated by a certain forward configuration operation needs to be deleted and cancelled by executing the same forward configuration operation again, the reverse configuration operation corresponding to the forward configuration operation is set as the forward configuration operation.
Optionally, the configuration execution module is specifically configured to:
acquiring current configuration operation and a corresponding operation zone bit, and searching a storage structure corresponding to the current configuration operation according to the current configuration operation;
judging whether the forward configuration operation or the reverse configuration operation needs to be executed according to the operation zone bit corresponding to the current configuration operation:
if the forward configuration operation needs to be executed, obtaining the forward configuration operation from the searched storage structure and executing the forward configuration operation;
if the reverse configuration operation needs to be executed, obtaining the reverse configuration operation from the searched storage structure and executing the reverse configuration operation, wherein if the reverse configuration operation is set to be null, deleting and canceling operations do not need to be executed; if the reverse configuration operation is set as the forward configuration operation itself, the forward configuration operation is performed again.
The method supports a wide range of device types including, but not limited to, switches, routers, PTNs, OTNs, O L T, ONU, etc. the supported modes for defining configuration operations also include, but not limited to, databases, command lines, SNMP, NETF L OW, NETCONF, etc. the storage modes of data in the device are not limited, and include, but not limited to, various types of data such as files, linked lists, tree structures, etc.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.
Claims (10)
1. A method for communication device configuration management, comprising the steps of:
defining the operation of newly building and restoring a certain configuration as a forward configuration operation, and defining the operation of deleting and canceling the configuration generated by the forward configuration operation as a reverse configuration operation;
storing each forward configuration operation and the corresponding reverse configuration operation of the device in a storage structure in a binding manner;
acquiring current configuration operation and a corresponding operation zone bit, and searching a storage structure corresponding to the current configuration operation according to the current configuration operation; and judging whether the forward configuration operation or the reverse configuration operation needs to be executed according to the operation flag bit corresponding to the current configuration operation, and correspondingly acquiring and executing the forward configuration operation or the reverse configuration operation from the searched storage structure.
2. A method for communication device configuration management according to claim 1, characterized by:
the types of the equipment comprise a switch, a router, a PTN, an OTN, an O L T and an ONU;
the storage structure is a linked list, a tree structure, a database or a file.
3. A method for communication device configuration management according to claim 1, characterized by:
when the configuration generated by a certain forward configuration operation does not need to execute deletion and cancellation operations, setting the reverse configuration operation corresponding to the forward configuration operation to be null;
when the configuration generated by a certain forward configuration operation needs to be deleted and cancelled by executing the same forward configuration operation again, the reverse configuration operation corresponding to the forward configuration operation is set as the forward configuration operation.
4. The method as claimed in claim 1, wherein the specific modes for defining the forward configuration operation and the reverse configuration operation comprise command line, SNMP, NETCONF, XM L, and database configuration.
5. The method according to claim 1, wherein said determining whether to perform the forward configuration operation or the reverse configuration operation according to the operation flag bit corresponding to the current configuration operation, obtaining the forward configuration operation or the reverse configuration operation corresponding to the found storage structure, and performing the obtained configuration operation specifically comprises the following steps:
judging whether the forward configuration operation or the reverse configuration operation needs to be executed according to the operation zone bit corresponding to the current configuration operation:
if the forward configuration operation needs to be executed, obtaining the forward configuration operation from the searched storage structure and executing the forward configuration operation;
if the reverse configuration operation needs to be executed, obtaining the reverse configuration operation from the searched storage structure and executing the reverse configuration operation, wherein if the reverse configuration operation is set to be null, deleting and canceling operations do not need to be executed; if the reverse configuration operation is set as the forward configuration operation itself, the forward configuration operation is performed again.
6. A communication device configuration management system, comprising:
a configuration definition module to: defining the operation of newly building and restoring a certain configuration as a forward configuration operation, and defining the operation of deleting and canceling the configuration generated by the forward configuration operation as a reverse configuration operation;
a binding storage module to: storing each forward configuration operation and the corresponding reverse configuration operation of the device in a storage structure in a binding manner;
a configuration execution module to: acquiring current configuration operation and a corresponding operation zone bit, and searching a storage structure corresponding to the current configuration operation according to the current configuration operation; and judging whether the forward configuration operation or the reverse configuration operation needs to be executed according to the operation flag bit corresponding to the current configuration operation, and correspondingly acquiring and executing the forward configuration operation or the reverse configuration operation from the searched storage structure.
7. A communication device configuration management system according to claim 6, wherein:
the types of the equipment comprise a switch, a router, a PTN, an OTN, an O L T and an ONU;
the storage structure is a linked list, a tree structure, a database or a file.
8. A communication device configuration management system according to claim 6, wherein: when the configuration definition module defines the operation of deleting and canceling the configuration generated by the forward configuration operation as the reverse configuration operation:
when the configuration generated by a certain forward configuration operation does not need to execute deletion and cancellation operations, setting the reverse configuration operation corresponding to the forward configuration operation to be null;
when the configuration generated by a certain forward configuration operation needs to be deleted and cancelled by executing the same forward configuration operation again, the reverse configuration operation corresponding to the forward configuration operation is set as the forward configuration operation.
9. The communication device configuration management system of claim 6, wherein the configuration definition module defines the forward configuration operation and the reverse configuration operation in a manner of command line, SNMP, NETCONF, XM L, and database configuration.
10. The communication device configuration management system according to claim 6, wherein the configuration execution module is specifically configured to:
acquiring current configuration operation and a corresponding operation zone bit, and searching a storage structure corresponding to the current configuration operation according to the current configuration operation;
judging whether the forward configuration operation or the reverse configuration operation needs to be executed according to the operation zone bit corresponding to the current configuration operation:
if the forward configuration operation needs to be executed, obtaining the forward configuration operation from the searched storage structure and executing the forward configuration operation;
if the reverse configuration operation needs to be executed, obtaining the reverse configuration operation from the searched storage structure and executing the reverse configuration operation, wherein if the reverse configuration operation is set to be null, deleting and canceling operations do not need to be executed; if the reverse configuration operation is set as the forward configuration operation itself, the forward configuration operation is performed again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010231356.1A CN111478801A (en) | 2020-03-27 | 2020-03-27 | Communication equipment configuration management method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010231356.1A CN111478801A (en) | 2020-03-27 | 2020-03-27 | Communication equipment configuration management method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111478801A true CN111478801A (en) | 2020-07-31 |
Family
ID=71749266
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010231356.1A Pending CN111478801A (en) | 2020-03-27 | 2020-03-27 | Communication equipment configuration management method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111478801A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179437A (en) * | 2007-11-29 | 2008-05-14 | 上海华为技术有限公司 | Method and apparatus for implementing preactivation of batch configuration |
CN101977127A (en) * | 2010-11-26 | 2011-02-16 | 迈普通信技术股份有限公司 | SNMP (Simple Network Management Protocol) based equipment configuration roll back method and SNMP network management equipment |
CN102255761A (en) * | 2011-08-19 | 2011-11-23 | 迈普通信技术股份有限公司 | File-based configuration rollback system and configuration rollback method |
CN102726002A (en) * | 2011-12-13 | 2012-10-10 | 华为技术有限公司 | Data configuration, and back off method and device for data configuration |
CN105915372A (en) * | 2016-04-07 | 2016-08-31 | 烽火通信科技股份有限公司 | Temporary configuration management system and method based on automatic rollback |
CN105915370A (en) * | 2016-04-07 | 2016-08-31 | 烽火通信科技股份有限公司 | Temporary configuration management system and method based on batch rollback |
CN105939205A (en) * | 2015-08-28 | 2016-09-14 | 杭州迪普科技有限公司 | Configuration rollback method and device |
CN107528709A (en) * | 2016-06-22 | 2017-12-29 | 中兴通讯股份有限公司 | A kind of configuration status backing method and device |
-
2020
- 2020-03-27 CN CN202010231356.1A patent/CN111478801A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179437A (en) * | 2007-11-29 | 2008-05-14 | 上海华为技术有限公司 | Method and apparatus for implementing preactivation of batch configuration |
CN101977127A (en) * | 2010-11-26 | 2011-02-16 | 迈普通信技术股份有限公司 | SNMP (Simple Network Management Protocol) based equipment configuration roll back method and SNMP network management equipment |
CN102255761A (en) * | 2011-08-19 | 2011-11-23 | 迈普通信技术股份有限公司 | File-based configuration rollback system and configuration rollback method |
CN102726002A (en) * | 2011-12-13 | 2012-10-10 | 华为技术有限公司 | Data configuration, and back off method and device for data configuration |
CN105939205A (en) * | 2015-08-28 | 2016-09-14 | 杭州迪普科技有限公司 | Configuration rollback method and device |
CN105915372A (en) * | 2016-04-07 | 2016-08-31 | 烽火通信科技股份有限公司 | Temporary configuration management system and method based on automatic rollback |
CN105915370A (en) * | 2016-04-07 | 2016-08-31 | 烽火通信科技股份有限公司 | Temporary configuration management system and method based on batch rollback |
CN107528709A (en) * | 2016-06-22 | 2017-12-29 | 中兴通讯股份有限公司 | A kind of configuration status backing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107924408B (en) | System and method for searching heterogeneous index of metadata and tags in file system | |
CN111314802B (en) | Optical fiber cutting method and device, SDN controller, system and storage medium | |
CN101325597A (en) | Method, apparatus and system for processing data | |
CN107888409B (en) | Communication network configuration data automatic synchronization method with self-healing capability | |
CN110674231A (en) | Data lake-oriented user ID integration method and system | |
JPH1010970A (en) | Map data updating system | |
CN109189403B (en) | Operating system OS batch installation method and device and network equipment | |
US11012542B2 (en) | Data processing method and apparatus | |
CN111478801A (en) | Communication equipment configuration management method and system | |
CN107977310A (en) | One kind traversal test command generation method and device | |
CN102404154B (en) | Method for webmaster for batch repairing of service faults | |
CN109597639B (en) | Software upgrading method, device, equipment and medium | |
CN109495597A (en) | System and method, the equipment on-line management method of online modification device target address | |
CN107422991B (en) | Storage strategy management system | |
CN108011730B (en) | Method and device for automatically changing ring network resources in network management system | |
CN115705259A (en) | Fault processing method, related device and storage medium | |
CN108667508B (en) | Shared link risk group generation method and device | |
CN108023745B (en) | Method and device for automatically setting restart sequence of network equipment | |
CN108282371B (en) | Network element service configuration method and system | |
CN114615216B (en) | Routing table dynamic adjustment method based on switching chip | |
CN113114493B (en) | Network element configuration constraint checking method and system | |
CN102831029A (en) | Implementation method and system for upgrading backspacing of network element | |
CN113422722B (en) | Routing processing method and device | |
CN114095370A (en) | Policy configuration method, device, equipment and storage medium | |
CN112564929A (en) | Residual data cleaning method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200731 |