CN114124688B - Configuration method and system and computer storage medium - Google Patents

Configuration method and system and computer storage medium Download PDF

Info

Publication number
CN114124688B
CN114124688B CN202010801988.7A CN202010801988A CN114124688B CN 114124688 B CN114124688 B CN 114124688B CN 202010801988 A CN202010801988 A CN 202010801988A CN 114124688 B CN114124688 B CN 114124688B
Authority
CN
China
Prior art keywords
configuration
original
target
command
service
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
CN202010801988.7A
Other languages
Chinese (zh)
Other versions
CN114124688A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202010801988.7A priority Critical patent/CN114124688B/en
Publication of CN114124688A publication Critical patent/CN114124688A/en
Application granted granted Critical
Publication of CN114124688B publication Critical patent/CN114124688B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The present disclosure relates to configuration methods and systems, and computer-readable media, and relates to the field of communications technologies. The configuration method comprises the following steps: the public configuration module receives an original configuration command; the public configuration module sends the original configuration command to a service configuration module corresponding to the original configuration command in a plurality of service configuration modules; and converting the original configuration command into a target configuration command which can be identified by a service module corresponding to the service configuration module by using a preset conversion rule by the service configuration module corresponding to the original configuration command, and sending the target configuration command to the service module. According to the method and the device, labor cost and time cost can be reduced, and reliability of a business system is improved.

Description

Configuration method and system and computer storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a configuration method and system, and a computer readable medium.
Background
At present, various service systems are more and more huge, service modules (functional modules) based on open sources are more and more, each service module is provided with a unique service configuration module, and in order to reduce the configuration technical threshold of service personnel, all the service configuration modules need to be unified.
In the related art, a plurality of service configuration modules are rewritten into a unified configuration module.
Disclosure of Invention
The inventors consider that: in the related art, a large amount of labor and time are required to rewrite a plurality of service configuration modules into a unified configuration module, and other problems are introduced in the process of rewriting, so that the reliability of a service system is reduced.
Aiming at the technical problems, the present disclosure provides a solution, which can reduce labor cost and time cost and improve reliability of a service system.
According to a first aspect of the present disclosure, there is provided a configuration method, comprising: the public configuration module receives an original configuration command; the public configuration module sends the original configuration command to a service configuration module corresponding to the original configuration command in a plurality of service configuration modules; and converting the original configuration command into a target configuration command which can be identified by a service module corresponding to the service configuration module by using a preset conversion rule by the service configuration module corresponding to the original configuration command, and sending the target configuration command to the service module.
In some embodiments, sending the target configuration command to the business module comprises: under the condition that the original configuration command is of a command type without a return result, a service configuration module corresponding to the original configuration command adopts an asynchronous processing mode and sends the target configuration command to a database; and the configuration execution module acquires the target configuration command from the database and sends the target configuration command to the service module.
In some embodiments, the common configuration module, the plurality of service configuration modules, and the configuration execution module are packaged in a first container, the service module corresponding to each service configuration module is packaged in a second container, and the database is packaged in a third container.
In some embodiments, the database is an in-memory database.
In some embodiments, sending the target configuration command to the business module comprises:
and under the condition that the original configuration command is of a command type with a return result, the service configuration module corresponding to the original configuration command adopts a synchronous processing mode, and the target configuration command is directly sent to the service module.
In some embodiments, the original configuration command includes at least one original configuration parameter and an original parameter value of each original configuration parameter, the preset conversion rule includes a command format conversion table characterizing a correspondence between an original format of the original configuration command and a target format of the target configuration command, the original format includes a regular expression of the at least one original configuration parameter and the original parameter value of each original configuration parameter, the target format includes at least one target configuration parameter and at least one target location identifier corresponding to the at least one original configuration parameter, and converting the original configuration command into a service module identifiable target configuration command corresponding to the service configuration module using the preset conversion rule includes: obtaining a target format corresponding to the original format of the original configuration command from the command format conversion table; determining an original position identification of at least one original parameter value according to the position sequence of the at least one original parameter value in the original configuration command; determining a target parameter value corresponding to each target position identifier according to an original parameter value corresponding to the original position identifier which is the same as each target position identifier in the target format; and filling the target parameter value into the position of each target position mark to obtain the target configuration command.
In some embodiments, determining the target parameter value corresponding to each target location identity comprises: and for each target position identifier, determining the target parameter value according to the corresponding relation between the original parameter value and the target parameter value under the condition that the original parameter value belongs to an interface type.
In some embodiments, determining the target parameter value corresponding to each target location identity comprises: and for each target position identifier, determining the bit number of the original parameter value as the target parameter value under the condition that the original parameter value belongs to a mask type.
In some embodiments, obtaining a target format corresponding to the original format of the original configuration command from the command format conversion table includes: acquiring an original format corresponding to the original configuration command from the command format conversion table by using a regular expression matching algorithm and a character string matching algorithm; and acquiring the target format according to the corresponding relation between the original format and the target format.
According to a second aspect of the present disclosure, there is provided a configuration system comprising: the public configuration module is configured to receive an original configuration command and send the original configuration command to a service configuration module corresponding to the original configuration command in a plurality of service configuration modules; the service configuration modules corresponding to the original configuration commands are configured to convert the original configuration commands into target configuration commands which can be identified by the service modules corresponding to the service configuration modules by utilizing preset conversion rules, and send the target configuration commands to the service modules.
According to a third aspect of the present disclosure, there is provided a configuration system comprising: a memory; and a processor coupled to the memory, the processor configured to perform the configuration method of any of the embodiments described above based on instructions stored in the memory.
According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a configuration method as described in any of the above embodiments.
In the embodiment, the labor cost and the time cost can be reduced, and the reliability of the service system can be improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
The disclosure will be understood more clearly from the following detailed description, with reference to the accompanying drawings,
wherein:
FIG. 1 is a flow chart illustrating a configuration method according to some embodiments of the present disclosure;
FIG. 2 is a block diagram illustrating a configuration system according to some embodiments of the present disclosure;
FIG. 3 is a block diagram illustrating a configuration system according to further embodiments of the present disclosure;
FIG. 4 is a block diagram illustrating a configuration system according to still further embodiments of the present disclosure;
FIG. 5 is a block diagram illustrating a computer system for implementing some embodiments of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless it is specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any specific values should be construed as merely illustrative, and not a limitation. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
The configuration method of some embodiments of the present disclosure will be described in detail below with reference to fig. 1 and 2.
Fig. 1 is a flow chart illustrating a configuration method according to some embodiments of the present disclosure.
Fig. 2 is a block diagram illustrating a configuration system according to some embodiments of the present disclosure.
As shown in fig. 1, the configuration method includes steps S110 to 140.
In step S110, the common configuration module receives an original configuration command.
In some embodiments, in FIG. 2a configuration person (e.g., an operator or the like) enters an original configuration command at configuration portal 20, such that configuration portal 20 sends the original configuration command to common configuration module 21. For example, the behavior and format of the original configuration commands entered by the configurator at configuration portal 20 are specified by a hierarchical configuration model configuration tree. The configuration tree may include configuration views of different services, and when a configurator inputs an original configuration command, the configurator first obtains at least a portion of the configuration views in the corresponding configuration tree from the configuration portal, and then inputs the original configuration command based on the at least a portion of the configuration views.
For example, the original configuration command for configuring IPV4 (Internet Protocol version, internet protocol version 4) address 1.1.1.1 mask 255.255.255.255 of interface gigabit ethernet 0/0/0 is:
interface GigabitEthernet 0/0/0
ip address 1.1.1.1 255.255.255.255。
the configuration personnel entering the original configuration commands at the configuration portal 20 based on the configuration view may be:
(config)#interface GigabitEthernet 0/0/0
(GigabitEthernet 0/0/0)#ip address 1.1.1.1 255.255.255.255。
after entering the configuration entry 20, the configurator first needs to input a configuration view of the service to be configured, i.e., input a command interface GigabitEthernet/0/0, after (config) # so that the configurator obtains the configuration view of (gigabit ethernet 0/0/0) # for the service to be configured. Subsequently, the configurator inputs the command ip address 1.1.1.1 255.255.255.255 after (gigabit ethernet 0/0/0) # to thereby complete the input of the above-described original configuration command.
(config) # indicates that a configuration entry has been entered; (config) # interface GigabitEther net 0/0/0 represents a configuration of ingress interface gigabit ethernet 0/0/0; (gigabit ethernet 0/0/0) # indicates that the configuration of the interface gigabit ethernet 0/0/0 has been entered; (Giga bit Ethernet 0/0/0) # ip address 1.1.1.1 255.255.255.255 indicates that the interface gigabit Ethernet 0/0/0 is configured according to the command ip address 1.1.1.1 255.255.255.255.
The original configuration command is a predefined standard, and a configurator needs to input the configuration command according to the standard. Examples of some original configuration commands are given below in connection with table 1.
Table 1 shows some original configuration commands and the correspondence of the functions of each original configuration command.
TABLE 1 original configuration Command and function correspondence table thereof
Taking the original configuration command ospf 1router-id 1.1.1.1 as an example, the original configuration command comprises at least one original configuration parameter ospf and router-id, and also comprises original parameter values 1 and 1.1.1.1 of each original configuration parameter.
In other embodiments, the configurator sends a configuration file including the original configuration command to the Netconf/GRPC (Google Remot e Procedure Call ) server 20b through the SDN (Software Defined Net work, software defined network) controller 20a, and the Netconf/GRPC server 20b sends the original configuration command to the public configuration module 21. Netconf is SDN southbound interface protocol.
In some embodiments, the common configuration module also checks the dependency between the original configuration parameters, the correctness of the original parameter values, etc. after receiving the original configuration command.
Returning to fig. 1, in step S120, the common configuration module transmits an original configuration command to a service configuration module corresponding to the original configuration command among the plurality of service configuration modules. That is, the service configuration module is invoked to perform the conversion of the configuration command.
For example, the configuration system of fig. 2 includes a plurality of service modules such as service module 22a, service module 22b, and service module 22 c. The service modules 22a, 22b, and 22c correspond to the service configuration modules 23a, 23b, and 23c, respectively. The service modules 22a, 22b and 22c may be, for example, system service modules, route service modules and other service modules, respectively.
In some embodiments, the common configuration module 21 of fig. 2 stores therein a table of correspondence between the original format of the original configuration command and the service module, the service configuration module, as shown in table 2.
Table 2 correspondence table between original format and service module and service configuration module
As shown in Table 2, the original format includes at least one original configuration parameter and a regular expression of original parameter values for each original configuration parameter.
The original format show ip vpn-instance $STRING@1-32 > comprises an original configuration parameter vpn-instance, and the regular expression of the corresponding original parameter value is $STRING@1-32 >. $STRING in the regular expression $STRING@1-32 > represents that the variable type of the original parameter value is a character STRING STRING type, and@1-32 > represents that the value range of the original parameter value is a character STRING with 1-32 bits.
The original format ospf$INT@1-255 > router-id $IPV4 vpn-instance $STRING@1-32 > includes three original configuration parameters ospf, router-id and vpn-inst ance, and the regular expressions of the corresponding original parameter values are $INT@1-255 >, $IPV4 and $STRING@1-32 >, respectively. $INT in the regular expression $INT@1-255 > represents that the variable type of the original parameter value is an INT type (integer), and @ 1-255> represents that the value range of the original parameter value is an integer between 1-255. The regular expression $IPVs 4 indicates that the original parameter value meets the specifications of IPV4, such as format and value range. The same regular expressions as before are not described in detail here.
The original configuration parameters and original parameter values in the other original formats in table 2 are similar to the two original formats described above, and will not be repeated here. Only the meaning of the regular expression of the original parameter values not referred to previously is described below. The regular expression $INTERFACE indicates that the original parameter value meets specifications such as the format and value range of INTERFACE (INTERFACE). The regular expression $IPV4-MASK indicates that the original parameter value meets the specifications of IPV4 MASK format, value range and the like. The regular expression $IPV6-WITH-MASK indicates that the original parameter value meets specifications such as format and value range of the masked IPV6 (Internet Protocol version, internet protocol version 6).
In some embodiments, the common configuration module determines the original format corresponding to the original configuration command from table 2 by using a regular expression matching algorithm and a character string matching algorithm, and further determines the service configuration module corresponding to the original configuration command according to the correspondence between the original format and the service configuration module.
For example, for the original configuration command ospf 1router-id 1.1.1.1, the original format is determined to be ospf$INT@1-255 > router-id $IPV4 using a string matching algorithm and a regular expression matching algorithm. From table 2, it can be determined that the service configuration module corresponding to the original format is the service configuration module 23b. The common configuration module 21 of fig. 2 sends the original configuration command ospf 1router-id 1.1.1.1 to the service configuration module 23b.
Returning to fig. 1, in step S130, the service configuration module corresponding to the original configuration command converts the original configuration command into a target configuration command identifiable by the service module corresponding to the service configuration module using a preset conversion rule. For example, a command format conversion table in which a conversion rule characterizes a correspondence relationship between an original format of an original configuration command and a target format of a target configuration command is preset.
For the original configuration command ospf 1router-id 1.1.1.1, the service configuration module 23b of fig. 2 converts the original configuration command into a target configuration command using a command format conversion table as shown in table 3.
Table 3 command format conversion table
As shown in table 3, the original format is the same as that in table 2, and will not be described here. The target format includes at least one target configuration parameter and at least one target location identifier corresponding to at least one original configuration parameter of the original format. The target location identifier is used to determine the location of the target parameter value corresponding to each original parameter value in the original configuration command in the target format.
For example, the target format ospf/1vpn-instance/3 comprises target configuration parameters ospf and vpn-instance, and the target parameter values at which the target position identifications 1 and 3 represent the positions at which the target position identifications are located correspond to the original parameter values in the original configuration command ospf 1router-id 1.1.1.1vpn-instance vpna with the position order of 1 and 3. The "/" before the target location identification in the target format indicates that the number is the target location identification.
The process of converting the original configuration command ospf 1router-id 1.1.1.1 into the target configuration command will be described in detail below taking the original configuration command ospf 1router-id 1.1.1.1 as an example.
A target format corresponding to the original format of the original configuration command is acquired from the command format conversion table shown in table 3. For example, firstly, an original format ospf$INT@1-255 > router-id$IPV4 corresponding to an original configuration command ospf 1router-id 1.1.1.1 is obtained from a command format conversion table by using a regular expression matching algorithm and a character string matching algorithm; then, according to the corresponding relation between the original format and the target format in the command format conversion table, the following target format is obtained:
router ospf/1
router id/2。
after the target format is acquired, according to the position sequence of at least one original parameter value 1 and 1.1.1.1 in the original configuration command ospf 1router-id 1.1.1.1, the original position identifiers of the at least one original parameter value 1 and 1.1.1.1 are determined to be 1 and 2 respectively.
After determining the original position identifications, determining target parameter values corresponding to the target position identifications corresponding to each target position identification 1 and 2 according to original parameter values 1 and 1.1.1.1 corresponding to original position identifications 1 and 2 identical to each target position identification 1 and 2 in the target format.
For example, a target parameter value corresponding to the original parameter value is determined according to the type of the original parameter value. For the original configuration command ospf 1router-id 1.1.1.1, the original parameter values 1 and 1.1.1.1 are the ospf identification and routing IP address, respectively, and the target parameter values are the original parameter values 1 and 1.1.1.1.
For another example, for each target location identifier, in the case that the original parameter value belongs to the interface type, the target parameter value is determined according to the corresponding relationship between the original parameter value and the target parameter value.
For the original configuration command:
interface GigabitEthernet 0/0/0
ip address 1.1.1.1 255.255.255.255,
the original parameter value 0/0/0 belongs to the interface type, and then according to an interface mapping table shown in JSON (JavaScript Object Notation, JS object profile) data:
to determine that the original parameter value 0/0/0 of the original configuration parameter gigabit ethernet corresponds to the target parameter value 0. In the above JSON data, "admin_status" means that the state of the interface Ethernet0 or Ethernet1 is off, "mtu" means that the maximum transmission unit of the interface Ethernet0 or Ethernet1 is 1500, "speed" means 100000 "and" speed "means 25000" means that the maximum transmission rate of the interface Ethernet0 or Ethernet1 is 100000 and 25000, respectively. The Alias key represents the mapping relationship between interfaces.
In the case that the original parameter value belongs to the mask type, the bit number of the original parameter value is determined as the target parameter value. For the original configuration command:
interface GigabitEthernet 0/0/0
ip address 1.1.1.1 255.255.255.255,
the original parameter value 255.255.255.255 belongs to the mask type, the bit number 32 of which is determined as the target parameter value.
Other target configuration parameters corresponding to the original parameter values can be obtained in the same manner, and will not be described herein.
After determining the target parameter values, filling the target parameter values 1 and 1.1.1.1 into the positions/1 and/2 where each target position mark 1 and 2 is located, and obtaining a target configuration command:
router ospf 1
router id 1.1.1.1。
returning to fig. 1, in step S140, a target configuration command is sent to the business module. The service module is a service module corresponding to the service configuration module corresponding to the original configuration command.
For example, in the case where the original configuration command ospf 1router-id 1.1.1.1 is of a command type without a return result, the service configuration module 23b corresponding to the original configuration command sends the target configuration command to the database 24 in an asynchronous processing manner. Further, the configuration execution module 25 acquires the target configuration command from the database 24 and sends the target configuration command to the service module 22b. The service module 22b corresponds to the service configuration module 23b.
In some embodiments, database 24 may be an in-memory database. For example, database 24 is a Redis (Remote Dictionary Server, remote dictionary service) in-memory database. Asynchronous here means that the user can directly perform the next configuration operation without waiting for the service module 22b to return the result of the configuration operation to the user. Asynchronous configuration has higher efficiency and better user experience. The speed and efficiency of configuration can be improved by using the memory database.
For another example, in the case where the original configuration command show ip vpn-instance is of a command type having a return result, the service configuration module 23b corresponding to the original configuration command directly transmits the target configuration command to the service module 22b by using a synchronous processing method. Synchronization here means that the user needs to wait for the service module 22b to return the result of the configuration operation to the user before the user can perform the next configuration operation.
In some embodiments, the common configuration module 21, the plurality of service configuration modules 23a, the service configuration module 23b, the service configuration module 23c, and the configuration execution module 25 of fig. 2 are packaged in a first container (e.g., a Docker container), the service modules 22a, 22b, and 22c corresponding to the service configuration modules 23a, 23b, and 23c are individually packaged in a second container (e.g., a Docker container), and the database 24 is individually packaged in a third container (e.g., a Docker container). In fig. 2, a dashed rectangular box represents a container. For example, the Netconf/GRPC server side 20b and the configuration portal 20 of fig. 2 can also be deployed in the first container.
Different modules are deployed in different containers for carrying functions of the service and providing default configuration outlets, so that the coupling degree between the modules can be reduced, service isolation is realized, the multiplexing rate is improved, the expansibility is enhanced, a more convenient operation environment is provided for micro-service, cross-platform support is realized, and upgrading management is facilitated.
In the above embodiment, the common configuration module receives the unified original configuration command, and sends the original configuration command to the corresponding service configuration module to perform configuration command conversion, so that the labor cost and the time cost can be reduced, and the reliability of the service system can be improved.
Fig. 3 is a block diagram illustrating a configuration system according to further embodiments of the present disclosure.
As shown in fig. 3, the configuration system 3 includes a common configuration module 31, a plurality of service configuration modules 32a, 32b, 32c, and the like.
The common configuration module 31 is configured to receive the original configuration command and transmit the original configuration command to a service configuration module corresponding to the original configuration command among the service configuration modules, for example, to perform step S110-step S120 as shown in fig. 1. For example, the service configuration module corresponding to the original configuration command is 32a.
The service configuration module 32a corresponding to the original configuration command is configured to convert the original configuration command into a target configuration command identifiable to the service module corresponding to the service configuration module 32a using a preset conversion rule, and send the target configuration command to the service module, for example, perform steps S130-S140 shown in fig. 1. Other service configuration modules such as the service configuration module 32b and the service configuration module 32c have the same function.
Fig. 4 is a block diagram illustrating a configuration system according to still further embodiments of the present disclosure.
As shown in fig. 4, the configuration system 4 includes a memory 41; and a processor 42 coupled to the memory 41, the memory 41 is configured to store instructions for executing the corresponding embodiments of the configuration method. The processor 42 is configured to perform the configuration method in any of the embodiments of the present disclosure based on instructions stored in the memory 41.
FIG. 5 is a block diagram illustrating a computer system for implementing some embodiments of the present disclosure.
As shown in FIG. 5, computer system 50 may be in the form of a general purpose computing device. Computer system 50 includes a memory 510, a processor 520, and a bus 500 that connects the various system components.
Memory 510 may include, for example, system memory, non-volatile storage media, and the like. The system memory stores, for example, an operating system, application programs, boot Loader (Boot Loader), and other programs. The system memory may include volatile storage media, such as Random Access Memory (RAM) and/or cache memory. The non-volatile storage medium stores, for example, instructions to perform a corresponding embodiment of at least one of the configuration methods. Non-volatile storage media include, but are not limited to, disk storage, optical storage, flash memory, and the like.
Processor 520 may be implemented as discrete hardware components such as a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gates or transistors, and the like. Accordingly, each of the modules, such as the judgment module and the determination module, may be implemented by a Central Processing Unit (CPU) executing instructions of the corresponding steps in the memory, or may be implemented by a dedicated circuit that performs the corresponding steps.
Bus 500 may employ any of a variety of bus architectures. For example, bus structures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, and a Peripheral Component Interconnect (PCI) bus.
Computer system 50 may also include input-output interface 530, network interface 540, storage interface 550, and the like. These interfaces 530, 540, 550, and memory 510 and processor 520 may be connected by bus 500. The input output interface 530 may provide a connection interface for input output devices such as a display, mouse, keyboard, etc. Network interface 540 provides a connection interface for various networking devices. The storage interface 550 provides a connection interface for external storage devices such as floppy disks, usb disks, SD cards, and the like.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor, create means for implementing the functions specified in the flowchart and/or block diagram block or blocks.
These computer readable program instructions may also be stored in a computer readable memory that can direct a computer to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart and/or block diagram block or blocks.
The present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
By the configuration method, the configuration system and the computer storage medium in the embodiment, the labor cost and the time cost can be reduced, and the reliability of the service system can be improved.
Thus far, the configuration method and system, computer-readable medium according to the present disclosure have been described in detail. In order to avoid obscuring the concepts of the present disclosure, some details known in the art are not described. How to implement the solutions disclosed herein will be fully apparent to those skilled in the art from the above description.

Claims (10)

1. A configuration method, comprising:
the common configuration module receives an original configuration command, wherein the original configuration command comprises at least one original configuration parameter and an original parameter value of each original configuration parameter;
the public configuration module sends the original configuration command to a service configuration module corresponding to the original configuration command in a plurality of service configuration modules;
the service configuration module corresponding to the original configuration command converts the original configuration command into a target configuration command which can be identified by a service module corresponding to the service configuration module by using a preset conversion rule, and sends the target configuration command to the service module, wherein the preset conversion rule comprises a command format conversion table for representing a corresponding relation between an original format of the original configuration command and a target format of the target configuration command, the original format comprises at least one original configuration parameter, the target format comprises at least one target configuration parameter corresponding to the at least one original configuration parameter and at least one target position identifier, and the conversion of the original configuration command into the target configuration command which can be identified by the service module corresponding to the service configuration module by using the preset conversion rule comprises:
obtaining a target format corresponding to the original format of the original configuration command from the command format conversion table;
determining an original position identification of at least one original parameter value according to the position sequence of the at least one original parameter value in the original configuration command;
determining a target parameter value corresponding to each target position identifier according to an original parameter value corresponding to the same original position identifier as each target position identifier in the target format, wherein the target parameter value comprises at least one of the following components: for each target position identifier, determining a target parameter value according to the corresponding relation between the original parameter value and the target parameter value under the condition that the original parameter value belongs to an interface type; or, for each target location identifier, determining the bit number of the original parameter value as the target parameter value in the case that the original parameter value belongs to a mask type;
and filling the target parameter value into the position of each target position mark to obtain the target configuration command.
2. The configuration method of claim 1, wherein sending the target configuration command to the traffic module comprises:
under the condition that the original configuration command is of a command type without a return result, a service configuration module corresponding to the original configuration command adopts an asynchronous processing mode and sends the target configuration command to a database;
and the configuration execution module acquires the target configuration command from the database and sends the target configuration command to the service module.
3. The configuration method according to claim 2, wherein the common configuration module, the plurality of service configuration modules, and the configuration execution module are packaged in a first container, the service module corresponding to each service configuration module is individually packaged in a second container, and the database is individually packaged in a third container.
4. The configuration method according to claim 2, wherein the database is an in-memory database.
5. The configuration method of claim 1, wherein sending the target configuration command to the traffic module comprises:
and under the condition that the original configuration command is of a command type with a return result, the service configuration module corresponding to the original configuration command adopts a synchronous processing mode, and the target configuration command is directly sent to the service module.
6. The configuration method of claim 1, wherein the raw format comprises a regular expression of raw parameter values of each raw configuration parameter as well.
7. The configuration method according to claim 6, wherein acquiring, from the command format conversion table, a target format corresponding to a raw format of the raw configuration command includes:
acquiring an original format corresponding to the original configuration command from the command format conversion table by using a regular expression matching algorithm and a character string matching algorithm;
and acquiring the target format according to the corresponding relation between the original format and the target format.
8. A configuration system, comprising:
a common configuration module configured to receive an original configuration command and send the original configuration command to a service configuration module corresponding to the original configuration command among a plurality of service configuration modules, wherein the original configuration command includes at least one original configuration parameter and an original parameter value of each original configuration parameter;
the service configuration modules corresponding to the original configuration command are configured to convert the original configuration command into a target configuration command identifiable by a service module corresponding to the service configuration module by using a preset conversion rule, and send the target configuration command to the service module, wherein the preset conversion rule comprises a command format conversion table for representing a corresponding relation between an original format of the original configuration command and a target format of the target configuration command, the original format comprises at least one original configuration parameter, the target format comprises at least one target configuration parameter corresponding to the at least one original configuration parameter and at least one target position identifier, and the conversion of the original configuration command into the target configuration command identifiable by the service module corresponding to the service configuration module by using the preset conversion rule comprises:
obtaining a target format corresponding to the original format of the original configuration command from the command format conversion table;
determining an original position identification of at least one original parameter value according to the position sequence of the at least one original parameter value in the original configuration command;
determining a target parameter value corresponding to each target position identifier according to an original parameter value corresponding to the same original position identifier as each target position identifier in the target format, wherein the target parameter value comprises at least one of the following components: for each target position identifier, determining a target parameter value according to the corresponding relation between the original parameter value and the target parameter value under the condition that the original parameter value belongs to an interface type; or, for each target location identifier, determining the bit number of the original parameter value as the target parameter value in the case that the original parameter value belongs to a mask type;
and filling the target parameter value into the position of each target position mark to obtain the target configuration command.
9. A configuration system, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the configuration method of any of claims 1 to 7 based on instructions stored in the memory.
10. A computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the configuration method of any of claims 1 to 7.
CN202010801988.7A 2020-08-11 2020-08-11 Configuration method and system and computer storage medium Active CN114124688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010801988.7A CN114124688B (en) 2020-08-11 2020-08-11 Configuration method and system and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010801988.7A CN114124688B (en) 2020-08-11 2020-08-11 Configuration method and system and computer storage medium

Publications (2)

Publication Number Publication Date
CN114124688A CN114124688A (en) 2022-03-01
CN114124688B true CN114124688B (en) 2024-02-20

Family

ID=80373596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010801988.7A Active CN114124688B (en) 2020-08-11 2020-08-11 Configuration method and system and computer storage medium

Country Status (1)

Country Link
CN (1) CN114124688B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787459A (en) * 2005-12-22 2006-06-14 杭州华为三康技术有限公司 Method and system for transmitting order to lower levels
CN101515929A (en) * 2009-03-24 2009-08-26 成都市华为赛门铁克科技有限公司 Message format conversion method, network device and agent device
WO2011160709A1 (en) * 2010-06-23 2011-12-29 International Business Machines Corporation Runtime determination of translation formats for adapter functions
CN105511895A (en) * 2014-09-24 2016-04-20 中兴通讯股份有限公司 Method, device, and system for configuring operating environment
CN110348201A (en) * 2019-05-22 2019-10-18 中国科学院信息工程研究所 A kind of configuration method and device of device security policy

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787459A (en) * 2005-12-22 2006-06-14 杭州华为三康技术有限公司 Method and system for transmitting order to lower levels
CN101515929A (en) * 2009-03-24 2009-08-26 成都市华为赛门铁克科技有限公司 Message format conversion method, network device and agent device
WO2011160709A1 (en) * 2010-06-23 2011-12-29 International Business Machines Corporation Runtime determination of translation formats for adapter functions
CN105511895A (en) * 2014-09-24 2016-04-20 中兴通讯股份有限公司 Method, device, and system for configuring operating environment
CN110348201A (en) * 2019-05-22 2019-10-18 中国科学院信息工程研究所 A kind of configuration method and device of device security policy

Also Published As

Publication number Publication date
CN114124688A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US10057131B1 (en) System and method for topology-aware configuration generation
US10797946B2 (en) Provisioning a network device
US20180285397A1 (en) Entity-centric log indexing with context embedding
CN109120477B (en) Dynamic analysis method, device, server and storage medium based on modbus protocol
CN104993947A (en) Method for upgrading firmware in batches
US10182132B2 (en) Method, apparatus and system for communication between OpenFlow device and IP network device
US20160205048A1 (en) Supporting multiple vswitches on a single host
CN113271245B (en) Message processing method and device, network card and computer readable storage medium
CN113381870B (en) Message processing method and device
WO2022001924A1 (en) Knowledge graph construction method, apparatus and system and computer storage medium
CN104283891A (en) Method and device for access of service function node to service link network
CN115883681B (en) Message parsing method and device, electronic equipment and storage medium
CN107168161A (en) EtherCAT master-salve station communication systems based on ROS systems
CN104683428A (en) Network service processing method and device
US11494633B2 (en) Techniques to manage training or trained models for deep learning applications
CN112804081A (en) Method for constructing and dynamically changing virtual network topology
US9413594B2 (en) Transmitting encapsulated SNMP commands to virtual machines
CN113849361B (en) Method, device, equipment and storage medium for testing service node
CN110855459B (en) Network configuration method, device and system
CN114124688B (en) Configuration method and system and computer storage medium
CN109672594B (en) IPoE message processing method and device and broadband remote access server
WO2024045576A1 (en) Network link generation method, server and storage medium
CN116015816A (en) Access management method, device, equipment and storage medium of heterogeneous equipment of Internet of things platform
CN108306757B (en) Programmable data plane virtual layer construction method and storage medium
CN114338119A (en) Network isolation method and system and proxy equipment

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