CN115361290B - Configuration comparison method, device, electronic equipment and storage medium - Google Patents

Configuration comparison method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115361290B
CN115361290B CN202210775417.XA CN202210775417A CN115361290B CN 115361290 B CN115361290 B CN 115361290B CN 202210775417 A CN202210775417 A CN 202210775417A CN 115361290 B CN115361290 B CN 115361290B
Authority
CN
China
Prior art keywords
configuration
current network
rows
comparison result
row
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.)
Active
Application number
CN202210775417.XA
Other languages
Chinese (zh)
Other versions
CN115361290A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202210775417.XA priority Critical patent/CN115361290B/en
Publication of CN115361290A publication Critical patent/CN115361290A/en
Application granted granted Critical
Publication of CN115361290B publication Critical patent/CN115361290B/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/0866Checking the configuration
    • H04L41/0869Validating the configuration within one network element
    • 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/0866Checking the configuration
    • H04L41/0873Checking configuration conflicts between network elements

Landscapes

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

Abstract

The disclosure provides a configuration comparison method, a device, an electronic device and a storage medium, and relates to the field of artificial intelligence such as data processing and cloud computing, wherein the method can comprise the following steps: respectively acquiring authority configuration rows corresponding to all modules in the authority configuration; acquiring current network configuration rows corresponding to all modules in the current network configuration respectively, wherein the authority configuration rows and the current network configuration rows are configuration rows comprising complete information; and comparing each current network configuration row with the corresponding authority configuration row respectively to obtain a comparison result. By applying the scheme disclosed by the disclosure, the accuracy of the comparison result can be improved.

Description

Configuration comparison method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of artificial intelligence, and in particular, to a configuration comparison method, apparatus, electronic device, and storage medium in the fields of data processing, cloud computing, and the like.
Background
At present, many networks still adopt a traditional routing protocol, normal operation of the network is realized by configuring equipment, and in many cases, the existing network configuration and the authoritative configuration need to be compared to determine differences between the existing network configuration and the authoritative configuration, and the influences of the differences are analyzed so as to correct the existing network configuration or the authoritative configuration.
Disclosure of Invention
The disclosure provides a configuration comparison method, a configuration comparison device, electronic equipment and a storage medium.
A configuration alignment method, comprising:
respectively acquiring authority configuration rows corresponding to all modules in the authority configuration;
acquiring current network configuration rows corresponding to all modules in the current network configuration respectively, wherein the authority configuration rows and the current network configuration rows are configuration rows comprising complete information;
and comparing each current network configuration row with the corresponding authority configuration row respectively to obtain a comparison result.
A configuration alignment apparatus comprising: the device comprises a first acquisition module, a second acquisition module and a comparison module;
the first acquisition module is used for respectively acquiring authority configuration rows corresponding to all the modules in the authority configuration;
the second obtaining module is configured to obtain current network configuration rows corresponding to each module in the current network configuration, where the authority configuration rows and the current network configuration rows are configuration rows including complete information;
the comparison module is used for comparing each current network configuration row with the corresponding authority configuration row respectively to obtain a comparison result.
An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described above.
A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform a method as described above.
A computer program product comprising computer programs/instructions which when executed by a processor implement a method as described above.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow chart of an embodiment of a configuration alignment method of the present disclosure;
fig. 2 is a timing control flowchart for implementing the configuration comparison method according to the present disclosure based on a patrol platform according to the present disclosure;
FIG. 3 is a schematic diagram of an interaction mode between the inspection platform and the configuration comparison service according to the present disclosure;
fig. 4 is a schematic structural diagram of an embodiment 400 of a configuration alignment apparatus according to the present disclosure;
fig. 5 shows a schematic block diagram of an electronic device 500 that may be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In addition, it should be understood that the term "and/or" herein is merely one association relationship describing the associated object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Fig. 1 is a flow chart of an embodiment of a configuration alignment method according to the present disclosure. As shown in fig. 1, the following detailed implementation is included.
In step 101, authority configuration rows corresponding to the modules in the authority configuration are respectively acquired.
In step 102, current network configuration rows corresponding to the modules in the current network configuration are obtained respectively, and the authority configuration rows and the current network configuration rows are all configuration rows including complete information.
In step 103, each current network configuration row is compared with the corresponding authority configuration row to obtain a comparison result.
The current network configuration refers to the actual configuration of each device, and the authoritative configuration refers to the standard configuration which can be referred to when a network is built or changed. Each module in the current network configuration or the authoritative configuration corresponds to one or more configuration lines, wherein the configuration lines including complete information corresponding to each module in the current network configuration are called current network configuration lines, and the configuration lines including complete information corresponding to each module in the authoritative configuration are called authoritative configuration lines, and all required information is completely included.
In the prior art, the existing network configuration and the authoritative configuration can be compared in a manual checking mode to determine the difference between the existing network configuration and the authoritative configuration, but the mode needs to consume larger manpower and time cost.
Therefore, it is hoped to realize automatic configuration comparison so as to save labor and time cost, in the scheme of the embodiment of the method, authoritative configuration lines and current network configuration lines can be respectively obtained, and corresponding configuration lines can be compared, so that automatic configuration comparison is realized, and moreover, a modularized configuration comparison method is adopted, so that accuracy of comparison results is ensured.
In practice, the authoritative configuration is typically not full, i.e. does not include parameter value information, only modules like a framework/architecture are present, etc. Whereas current network configurations are typically full. The parameter value refers to the specific parameter content.
And respectively acquiring authority configuration rows corresponding to the modules according to the authority configuration. In one embodiment of the present disclosure, the authority configuration may be parsed, so as to obtain configuration rows corresponding to each module therein, that is, original configuration rows, and then, for any of the original configuration rows, the following processes may be performed respectively: and in response to determining that the original configuration line has no corresponding parameters, the original configuration line can be considered to be complete, and correspondingly, the original configuration line can be used as an authoritative configuration line, otherwise, the parameter values of the parameters corresponding to the original configuration line can be obtained, and the authoritative configuration line corresponding to the original configuration line can be rendered based on the obtained parameter values and the original configuration line, so that the authoritative configuration line comprising complete information is obtained.
One module may correspond to one or more original configuration rows and one original configuration row may correspond to zero, one, or multiple parameters.
That is, not all configuration lines have corresponding parameters, some configuration lines are pure configuration commands without parameters, and accordingly, for such original configuration lines, they can be directly used as authoritative configuration lines.
How the authoritative configuration is parsed is not limiting. For example, the authoritative configuration may be parsed using a configuration comparison service tool such as Batfish (Batfish).
Through the processing, all required authority configuration rows can be obtained efficiently and accurately, so that a good foundation is laid for subsequent processing.
Assuming that the authoritative configuration includes M modules, each module corresponds to N original configuration rows, and assuming that each original configuration row corresponds to P parameters, for each original configuration row in the m×n original configuration rows, parameter values of the parameters corresponding to the m×n original configuration rows may be obtained respectively. M, N and P can both be positive integers. In addition, the number of original configuration rows corresponding to different modules may be the same or different, and similarly, the number of parameters corresponding to different original configuration rows may be the same or different, which is only illustrative.
In one embodiment of the present disclosure, for any original configuration line, a parameter value of a parameter corresponding to the original configuration line may be obtained through topology information query, or a parameter value of a parameter corresponding to the original configuration line may be obtained from a parameter center. The specific acquisition mode can be determined according to actual needs, and the method is flexible and convenient. In addition, the method of acquiring the parameter values is merely illustrative, and is not limited to the technical solution of the disclosure, and other possible acquiring methods are also possible.
For example, a certain original configuration row a corresponds to 6 parameters, and then parameter values of the 6 parameters can be obtained respectively by means of topology information query or parameter center query. If necessary, the obtained parameter values can be checked manually, i.e. whether the parameter values are correct or not can be confirmed manually, and if not, correction can be performed.
Then, based on the obtained parameter values and the original configuration row a, rendering to obtain an authoritative configuration row corresponding to the original configuration row a, specifically, the original configuration row a can be analyzed to obtain the positions of the parameters in the original configuration row a, and the obtained parameter values can be respectively filled in the corresponding positions, so that the authoritative configuration row filled with the parameter values is obtained.
In addition, current network configuration rows corresponding to the modules in the current network configuration can be obtained respectively, and each current network configuration row is a configuration row comprising parameter value information.
In one embodiment of the disclosure, the current network configuration row corresponding to each module in the current network configuration can be obtained by analyzing the current network configuration. How to parse the current network configuration is not limited. For example, the existing network configuration may be parsed by using a Batfish or syntax parsing tree, etc.
Because the current network configuration is full, the current network configuration rows corresponding to the modules in the current network configuration rows can be directly obtained through analysis, parameter values do not need to be acquired, rendering and the like, and therefore the processing efficiency is improved.
After the authority configuration row corresponding to each module in the authority configuration and the current network configuration row corresponding to each module in the current network configuration are respectively obtained, each current network configuration row can be respectively compared with the corresponding authority configuration row, for example, the comparison is carried out through the Batfish, so that a comparison result is obtained.
How to determine the authority configuration row corresponding to the presence network configuration row is not limited, for example, the correspondence between the module in the presence network configuration and the module in the authority configuration may be determined first, and then the correspondence between the configuration rows of the corresponding modules may be determined.
The current network configuration line b is assumed to correspond to the authoritative configuration line b, so that the two configuration lines can be compared to obtain a comparison result, and therefore the difference between the two configuration lines, including the difference of parameters and parameter values, is clearly known. The parameters and parameter values may be compared in the form of key-value pairs (key-value), and may be converted into a predetermined form, such as an open configuration (OpenConfig) format, to facilitate comparison and peering.
In one embodiment of the present disclosure, for the authoritative configuration row obtained by rendering, the original configuration row before rendering may also be compared with the corresponding existing network configuration row, so as to obtain a comparison result. Namely, for the original configuration row with the corresponding parameters, the results before and after rendering can be respectively compared, so that the content of the comparison result is enriched.
In addition, in one embodiment of the present disclosure, after the comparison result is obtained, the comparison result may be further verified, the verified comparison result is used as a final comparison result, and/or the comparison result display information in a predetermined form is generated based on the obtained comparison result.
For example, for the current network configuration line b and the corresponding authority configuration line b, after a comparison result is obtained through a certain comparison method, whether the comparison result is correct or not can be checked through another comparison method, and if so, the comparison result can be used as a final required comparison result.
In addition, the specific form is not limited. For example, the comparison result of each current network configuration line and the corresponding authority configuration line may be included, the comparison result of the original configuration line and the corresponding current network configuration line may also be included, for example, the comparison result of the key-value (i.e. the parameter and the parameter value) in the OpenConfig form may also be included, the comparison result in the pre-defined key-value form may also be included, for example, the comparison results may also be summarized and sorted, so as to obtain more visual and comprehensive comparison result information and the like.
Through the processing, the accuracy of the obtained comparison result can be further improved, the display effect is improved, and the like.
And for the difference obtained by comparison, the influence of the difference can be analyzed manually or automatically, and the current network configuration or the authoritative configuration can be corrected correspondingly.
In practical application, the configuration comparison method disclosed by the disclosure can be called by a construction platform, a change platform, a routing inspection platform and the like, so that configuration comparison is realized.
Taking an inspection platform as an example, fig. 2 is a timing control flowchart of implementing the configuration comparison method according to the disclosure based on the inspection platform according to the disclosure. The inspection platform can be divided into an inspection platform front end and an inspection platform rear end.
In step 201, the front end of the inspection platform acquires a configuration comparison task and a task execution period created by a user, and sends the configuration comparison task and the task execution period to the rear end of the inspection platform.
The configuration comparison task may include task parameters, such as identification information of the object to be compared (i.e. the current network configuration to be compared and the authoritative configuration), etc.
A task execution cycle may refer to when to execute the configuration alignment task, such as 24 points per day.
In step 202 to step 203, when it is determined that the task execution period is reached, the back end of the inspection platform executes the configuration comparison service, and sends the task parameters to the configuration comparison service.
Optionally, the configuration comparison service may send a parameter acquisition request to the inspection platform back end, and accordingly, the inspection platform back end may send the task parameters to the configuration comparison service.
For example, the configuration alignment service may send a parameter acquisition request to the Patrol platform backend through a parameter acquisition (get_patrol_parameters ()) function.
In step 204, the configuration comparison service generates a comparison result and returns the comparison result to the rear end of the inspection platform.
Namely, the configuration comparison service can generate a comparison result according to the configuration comparison method disclosed by the disclosure, and can return the comparison result to the rear end of the inspection platform.
For example, the configuration alignment service may return the alignment Result to the Patrol platform back end through a post_config_complex_result_to_patrol ()) function.
In step 205, the rear end of the inspection platform pushes the comparison result to the front end of the inspection platform for display.
Correspondingly, by means of the front end of the inspection platform, a user can conveniently and intuitively check the comparison result so as to carry out subsequent processing according to the comparison result.
Fig. 3 is a schematic diagram of an interaction manner between the inspection platform and the configuration comparison service according to the disclosure. As shown in fig. 3, the inspection platform may execute a configuration comparison service according to a configuration comparison task created by a user, a task execution period and the like, and accordingly, the configuration comparison service may analyze an authoritative configuration to obtain original configuration rows corresponding to each module therein, and may obtain parameter values of parameters corresponding to each original configuration row for any original configuration row (assuming that each original configuration row has a corresponding parameter), and obtain, based on the obtained parameter values and the original configuration row, an authoritative configuration row corresponding to the original configuration row through rendering, and in addition, may analyze an existing network configuration to obtain an existing network configuration row corresponding to each module therein, and further may compare each existing network configuration row with the corresponding authoritative configuration row to obtain a comparison result, and may return the comparison result to the inspection platform for display.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present disclosure is not limited by the order of actions described, as some steps may take place in other order or simultaneously in accordance with the present disclosure. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all of the preferred embodiments, and that the acts and modules referred to are not necessarily required by the present disclosure. In addition, portions of one embodiment that are not described in detail may be referred to in the description of other embodiments.
In a word, by adopting the method disclosed by the disclosure, automatic configuration comparison can be realized, and accuracy of comparison results and the like are ensured.
The foregoing is a description of embodiments of the method, and the following further describes embodiments of the present disclosure through examples of apparatus.
Fig. 4 is a schematic structural diagram of an embodiment 400 of a configuration alignment apparatus according to the present disclosure. As shown in fig. 4, includes: a first acquisition module 401, a second acquisition module 402, and a comparison module 403.
The first obtaining module 401 is configured to obtain authority configuration rows corresponding to each module in the authority configuration respectively.
The second obtaining module 402 is configured to obtain current network configuration rows corresponding to the modules in the current network configuration, where the authority configuration rows and the current network configuration rows are configuration rows including complete information.
The comparison module 403 is configured to compare each current network configuration line with a corresponding authority configuration line, so as to obtain a comparison result.
By adopting the scheme of the embodiment of the device, the authoritative configuration row and the current network configuration row can be respectively acquired, and the corresponding configuration rows can be compared, so that automatic configuration comparison is realized, and the accuracy of the comparison result is ensured by adopting a modularized configuration comparison method.
And respectively acquiring authority configuration rows corresponding to the modules according to the authority configuration. In one embodiment of the present disclosure, the first obtaining module 401 may parse the authoritative configuration, so as to obtain original configuration rows corresponding to each module therein, and then, for any one of the original configuration rows, may perform the following processes respectively: and responding to the fact that the original configuration line has no corresponding parameters, taking the original configuration line as an authoritative configuration line, otherwise, acquiring parameter values of the parameters corresponding to the original configuration line, and rendering to obtain the authoritative configuration line corresponding to the original configuration line based on the acquired parameter values and the original configuration line.
In an embodiment of the present disclosure, the first obtaining module 401 may obtain, for each original configuration line, a parameter value of a parameter corresponding to the original configuration line through topology information query, or may also obtain, from a parameter center, a parameter value of a parameter corresponding to the original configuration line.
In addition, the second obtaining module 402 may further obtain current network configuration rows corresponding to each module in the current network configuration, where each current network configuration row is a configuration row including parameter value information.
In one embodiment of the present disclosure, the second obtaining module 402 may obtain the current network configuration row corresponding to each module in the current network configuration by analyzing the current network configuration.
After the authority configuration row corresponding to each module in the authority configuration and the current network configuration row corresponding to each module in the current network configuration are respectively obtained, the comparison module 403 may compare each current network configuration row with the corresponding authority configuration row, thereby obtaining a comparison result.
In one embodiment of the present disclosure, the comparison module 403 may further compare the original configuration line before rendering with the corresponding existing network configuration line to obtain a comparison result.
In one embodiment of the present disclosure, after the comparison module 403 obtains the comparison result, the comparison result may be further verified, the verified comparison result is used as a final comparison result, and/or the comparison result display information in a predetermined form is generated based on the obtained comparison result.
The specific workflow of the embodiment of the apparatus shown in fig. 4 may refer to the related description in the foregoing method embodiment, and will not be repeated.
In a word, by adopting the device disclosed by the disclosure, automatic configuration comparison can be realized, and accuracy of comparison results and the like are ensured.
The scheme disclosed by the disclosure can be applied to the field of artificial intelligence, and particularly relates to the fields of data processing, cloud computing and the like. Artificial intelligence is the subject of studying certain thinking processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.) that make a computer simulate a person, and has technology at both hardware and software levels, and artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, etc., and artificial intelligence software technologies mainly include computer vision technologies, speech recognition technologies, natural language processing technologies, machine learning/deep learning, big data processing technologies, knowledge graph technologies, etc.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the user accord with the regulations of related laws and regulations, and the public order colloquial is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 5 shows a schematic block diagram of an electronic device 500 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile apparatuses, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing apparatuses. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the apparatus 500 includes a computing unit 501 that can perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, ROM 502, and RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Various components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, etc.; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508 such as a magnetic disk, an optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as the methods described in this disclosure. For example, in some embodiments, the methods described in the present disclosure may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into RAM 503 and executed by computing unit 501, one or more steps of the methods described in the present disclosure may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the methods described in the present disclosure by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (12)

1. A configuration alignment method, comprising:
respectively obtaining authority configuration rows corresponding to all modules in the authority configuration, including: analyzing the authoritative configuration to obtain original configuration rows corresponding to the modules respectively; for any original configuration row, the following processes are respectively carried out: in response to determining that the original configuration line has no corresponding parameters, taking the original configuration line as the authoritative configuration line, otherwise, acquiring parameter values of the parameters corresponding to the original configuration line, analyzing the original configuration line to obtain positions of the parameters in the original configuration line, respectively filling the acquired parameter values into the corresponding positions, and rendering to obtain the authoritative configuration line corresponding to the original configuration line;
acquiring current network configuration rows corresponding to all modules in the current network configuration respectively, wherein the authority configuration rows and the current network configuration rows are configuration rows comprising complete information;
comparing each current network configuration row with a corresponding authority configuration row to obtain a comparison result, wherein the method for determining the authority configuration row corresponding to the current network configuration row comprises the following steps: and determining the corresponding relation between each module in the network configuration and each module in the authority configuration, and determining the corresponding relation between the configuration rows of the corresponding modules.
2. The method of claim 1, further comprising:
and comparing the original configuration line before rendering with the corresponding current network configuration line to obtain a comparison result.
3. The method of claim 1, wherein the obtaining the parameter value of the parameter corresponding to the original configuration row comprises:
obtaining parameter values of parameters corresponding to the original configuration row through topology information inquiry;
or, acquiring the parameter value of the parameter corresponding to the original configuration line from the parameter center.
4. The method of claim 1, wherein the respectively obtaining the current network configuration row corresponding to each module in the current network configuration comprises:
and analyzing the current network configuration to obtain current network configuration rows corresponding to the modules respectively.
5. The method of any one of claims 1-4, further comprising:
after the comparison result is obtained, checking the comparison result, and taking the checked comparison result as a final comparison result;
and/or generating the comparison result display information in a preset form based on the obtained comparison result.
6. A configuration alignment apparatus comprising: the device comprises a first acquisition module, a second acquisition module and a comparison module;
the first obtaining module is configured to obtain authority configuration rows corresponding to each module in the authority configuration respectively, and includes: analyzing the authoritative configuration to obtain original configuration rows corresponding to the modules respectively; for any original configuration row, the following processes are respectively carried out: in response to determining that the original configuration line has no corresponding parameters, taking the original configuration line as the authoritative configuration line, otherwise, acquiring parameter values of the parameters corresponding to the original configuration line, analyzing the original configuration line to obtain positions of the parameters in the original configuration line, respectively filling the acquired parameter values into the corresponding positions, and rendering to obtain the authoritative configuration line corresponding to the original configuration line;
the second obtaining module is configured to obtain current network configuration rows corresponding to each module in the current network configuration, where the authority configuration rows and the current network configuration rows are configuration rows including complete information;
the comparison module is used for comparing each current network configuration row with a corresponding authority configuration row respectively to obtain a comparison result, wherein the mode of determining the authority configuration row corresponding to the network configuration row comprises the following steps: and determining the corresponding relation between each module in the network configuration and each module in the authority configuration, and determining the corresponding relation between the configuration rows of the corresponding modules.
7. The apparatus of claim 6, wherein,
the comparison module is further used for comparing the original configuration line before rendering with the corresponding current network configuration line to obtain a comparison result.
8. The apparatus of claim 6, wherein,
the first acquisition module acquires the parameter values of the parameters corresponding to the original configuration row through topology information inquiry, or acquires the parameter values of the parameters corresponding to the original configuration row from a parameter center.
9. The apparatus of claim 6, wherein,
and the second acquisition module analyzes the current network configuration to obtain current network configuration rows corresponding to the modules respectively.
10. The device according to any one of claims 6 to 9, wherein,
the comparison module is further used for checking the comparison result, and the checked comparison result is used as a final comparison result;
and/or the comparison module is further used for generating comparison result display information in a preset form based on the obtained comparison result.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-5.
CN202210775417.XA 2022-07-01 2022-07-01 Configuration comparison method, device, electronic equipment and storage medium Active CN115361290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210775417.XA CN115361290B (en) 2022-07-01 2022-07-01 Configuration comparison method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210775417.XA CN115361290B (en) 2022-07-01 2022-07-01 Configuration comparison method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115361290A CN115361290A (en) 2022-11-18
CN115361290B true CN115361290B (en) 2024-02-27

Family

ID=84030440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210775417.XA Active CN115361290B (en) 2022-07-01 2022-07-01 Configuration comparison method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115361290B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075927A (en) * 2011-01-11 2011-05-25 中国联合网络通信集团有限公司 Security configuration method and system for wireless network equipment
CN102752138A (en) * 2012-06-30 2012-10-24 华为技术有限公司 Asynchronous configuration management method and network device
CN107911249A (en) * 2017-11-28 2018-04-13 新华三技术有限公司 Order line sending method, device and the equipment of a kind of network equipment
WO2018214928A1 (en) * 2017-05-26 2018-11-29 贵州白山云科技有限公司 Method and apparatus for locating resolution fault, computer readable storage medium thereof, and computer device
CN110300017A (en) * 2019-05-22 2019-10-01 北京百度网讯科技有限公司 Standard configuration generating means and method and network equipments configuration error correction device and method
CN113687858A (en) * 2021-08-05 2021-11-23 深圳集智数字科技有限公司 Configuration file checking method and device, electronic equipment and storage medium
CN113824717A (en) * 2021-09-18 2021-12-21 北京天融信网络安全技术有限公司 Configuration checking method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10353795B2 (en) * 2016-09-14 2019-07-16 International Business Machines Corporation Standardizing run-time and historical customer and test environments and workloads comparisons using specific sets of key platform data points

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075927A (en) * 2011-01-11 2011-05-25 中国联合网络通信集团有限公司 Security configuration method and system for wireless network equipment
CN102752138A (en) * 2012-06-30 2012-10-24 华为技术有限公司 Asynchronous configuration management method and network device
WO2018214928A1 (en) * 2017-05-26 2018-11-29 贵州白山云科技有限公司 Method and apparatus for locating resolution fault, computer readable storage medium thereof, and computer device
CN107911249A (en) * 2017-11-28 2018-04-13 新华三技术有限公司 Order line sending method, device and the equipment of a kind of network equipment
CN110300017A (en) * 2019-05-22 2019-10-01 北京百度网讯科技有限公司 Standard configuration generating means and method and network equipments configuration error correction device and method
CN113687858A (en) * 2021-08-05 2021-11-23 深圳集智数字科技有限公司 Configuration file checking method and device, electronic equipment and storage medium
CN113824717A (en) * 2021-09-18 2021-12-21 北京天融信网络安全技术有限公司 Configuration checking method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Continuous Input Current Configurations of Enhanced-Boost Quasi-Z-Source Inverters;Vadthya Jagan等;《2019 IEEE 16th India Council International Conference (INDICON)》;全文 *
基于特征选择算法的电网基线配置合规性检测方法;王金贺;彭伯庄;陈佳捷;;电子设计工程(第15期);全文 *

Also Published As

Publication number Publication date
CN115361290A (en) 2022-11-18

Similar Documents

Publication Publication Date Title
CN114389969B (en) Method and device for testing client, electronic equipment and storage medium
CN114417780B (en) State synchronization method and device, electronic equipment and storage medium
CN113704058B (en) Service model monitoring method and device and electronic equipment
CN113452760A (en) Verification code synchronization method and device, electronic equipment and storage medium
CN113641804A (en) Pre-training model obtaining method and device, electronic equipment and storage medium
CN115361290B (en) Configuration comparison method, device, electronic equipment and storage medium
CN115481594B (en) Scoreboard implementation method, scoreboard, electronic equipment and storage medium
CN114141236B (en) Language model updating method and device, electronic equipment and storage medium
CN115102850B (en) Configuration comparison method, device, electronic equipment and storage medium
CN116301916A (en) Service deployment method, device, electronic equipment and storage medium
CN113901094B (en) Data processing method, device, equipment and storage medium
CN115934550A (en) Test method, test device, electronic equipment and storage medium
CN113590217B (en) Function management method and device based on engine, electronic equipment and storage medium
CN115357493A (en) Test method, test device, electronic equipment and storage medium
CN115454443A (en) Multi-system data interaction method and device and electronic equipment
CN113691403A (en) Topological node configuration method, related device and computer program product
CN113704314A (en) Data analysis method and device, electronic equipment and storage medium
CN113033179A (en) Knowledge acquisition method and device, electronic equipment and readable storage medium
CN113836291B (en) Data processing method, device, equipment and storage medium
CN117742900B (en) Method, device, equipment and storage medium for constructing service call graph
CN113835893B (en) Data processing method, device, equipment, storage medium and program product
CN115686304A (en) Information acquisition method and device, electronic equipment and storage medium
CN116483607A (en) Abnormal function maintenance method, device, equipment and storage medium
CN114238149A (en) Batch testing method of accounting system, electronic device and storage medium
CN116319716A (en) Information processing method, no-service system, electronic device, and storage medium

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