A network device configuration viewing method, device and medium based on SDN
Using the SDN controller to manage network equipment from different manufacturers in the data center solves the problem of low efficiency caused by inconsistent device command lines for operation and maintenance personnel, and achieves efficient configuration management and operation and maintenance operations.
Patent Information
- Application Number
- CN202211445620.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-18
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-11-18
AI Technical Summary
In the data center, due to the inconsistent command line styles of network devices from different manufacturers, operation and maintenance personnel need to spend a lot of time distinguishing and managing the configuration information of each device, resulting in low operating efficiency.
Receive the configuration view request through the SDN controller, retrieve the configuration information in the configuration management database, connect to the network device, obtain the configuration information, and display it on the front-end user interface. It supports operations such as comparison, correlation search, and deletion, helping operation and maintenance personnel to efficiently manage various operations. Manufacturer's network equipment.
It improves the efficiency of configuration and management of network equipment of various manufacturers by data center operation and maintenance personnel, enhances the reliability of operation and maintenance, and simplifies daily operation and maintenance operations, such as troubleshooting and inspection.
Smart Images

Figure CN115801579B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device and medium for viewing network device configuration based on SDN. Background Art
[0002] With the continuous development of network technology and the advancement of virtualization technology, there are more and more cloud-based data centers. Therefore, when deploying data centers, which contain a large number of network-related devices, software-defined network (SDN) controllers will be introduced and deployed in data centers. The SDN controllers will automatically configure and regulate network devices.
[0003] During the data center construction process, since the network equipment usage and command line styles of each manufacturer are different, operation and maintenance personnel need to spend a lot of time to distinguish the configuration information of each network device from different manufacturers, which leads to low efficiency when operating the network equipment. Summary of the invention
[0004] The embodiments of the present application provide a method, device and medium for viewing the configuration of a network device based on SDN, which are used to solve the problem of low efficiency when operating a network device.
[0005] The present application embodiment adopts the following technical solutions:
[0006] On the one hand, an embodiment of the present application provides a method for viewing network device configuration based on SDN, the method comprising: an SDN controller receives a configuration viewing request for a specified network device; in a pre-set configuration management database, the configuration management information of the specified network device is retrieved; the configuration management information includes a user name, a password corresponding to the user name, a management network IP reachable by the SDN controller, and a simple network management SNMP protocol configuration; according to the configuration management information, a connection is made to the specified network device to obtain the configuration information of the specified network device; the configuration information includes a plurality of lines of commands for configuring each functional module; according to a pre-set display layout, the configuration information is displayed on the front The terminal user interface is displayed; in the configuration information, a selection command of a specified row is received, and in the configuration management database, a configuration table of the specified network device is retrieved according to the device model of the specified network device; the configuration table includes the factory configuration information corresponding to the device model of the specified network device under the corresponding manufacturer, and the configuration comments of the factory configuration information; the factory configuration information includes multiple rows of factory commands for configuring each functional module; in the configuration table, the specified row is matched to determine the configuration comments of the specified row; the configuration comments refer to the functional explanation of the specified row; in the preset area of the specified row, the configuration comments are displayed in a preset display mode.
[0007] In one example, in the configuration table, the specified row is matched to determine the configuration comment of the specified row, specifically including: in the configuration table, determining whether the specified row has the same row in the factory configuration information; if so, in the factory configuration information, starting from the specified row, querying upward until the functional module to which the specified row belongs is determined; and determining the configuration comment of the specified row in the functional module.
[0008] In one example, after the configuration annotation is displayed in a preset area of the specified row by a preset display method, the method further includes: receiving an associated search request for the specified row, and determining in the configuration table the functional module to which the specified row belongs; determining whether the functional module supports associated search; if so, connecting to the specified network device, and obtaining the configuration information in the functional module in the specified network device; and displaying the configuration information in the functional module on the front-end user interface.
[0009] In one example, after the configuration annotation is displayed in a preset area of the specified row in a preset display manner, the method also includes: receiving an information comparison request for the specified row, and judging whether there is a comparison network device with the same device model in the configuration management database according to the device model of the specified network device; if so, retrieving the configuration table of the comparison network device, and detecting whether there is an identical row in the configuration table of the comparison network device; if so, displaying the comparison network device on the front-end user interface; receiving a selection command for the comparison network device, and determining a comparison function module corresponding to the identical row in the configuration table of the comparison network device; connecting to the comparison network device to obtain the comparison configuration information of the comparison network device for the comparison function module; and displaying the comparison configuration information on the front-end user interface.
[0010] In one example, after the configuration annotation is displayed in a preset area of the specified row in a preset display manner, the method further includes: receiving a deletion request for the specified row, and determining whether the specified row supports deletion; if so, determining in the configuration table the functional module to which the specified row belongs; connecting to the specified network device, and deleting the specified row in the functional module in the specified network device; obtaining a row deletion result, and displaying the row deletion result on the front-end user interface.
[0011] In one example, after the configuration annotation is displayed in a preset area of the specified row by a preset display method, the method further includes: receiving a block deletion request for the specified row, and determining in the configuration table the functional module to which the specified row belongs; determining whether the functional module supports block deletion; if so, connecting to the specified network device, and deleting the block module in the functional module in the specified network device; obtaining a block deletion result, and displaying the block deletion result on the front-end user interface.
[0012] In one example, after the configuration annotation is displayed in a preset area of the specified row in a preset display manner, the method further includes: receiving a function shutdown request for the specified row, and determining, in the configuration table, a function module to which the specified row belongs; determining whether the function module supports a function shutdown operation; if so, connecting to the specified network device, and deleting the function module in the specified network device; obtaining a function module deletion result, and displaying the function module deletion result on the front-end user interface.
[0013] In one example, before the SDN controller receives a configuration viewing request for a specified network device, the method also includes: determining that deployment is complete within the data center network, and converting the front-end user interface to an available interface state; obtaining configuration management information of the network device to be managed through the front-end user interface; verifying the configuration management information; if the verification passes, saving the configuration management information to a configuration management database; and marking the network device to be managed as a managed network device.
[0014] On the other hand, an embodiment of the present application provides a network device configuration viewing device based on SDN, which is applied to an SDN controller, including: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: receive a configuration viewing request for a specified network device; retrieve configuration management information of the specified network device from a pre-set configuration management database; the configuration management information includes a user name, a password corresponding to the user name, a management network IP reachable by the SDN controller, and a simple network management SNMP protocol configuration; connect to the specified network device according to the configuration management information to obtain the configuration information of the specified network device; The configuration information includes multiple lines of commands for configuring each functional module; the configuration information is displayed on the front-end user interface according to a preset display layout; in the configuration information, a selection command of a specified line is received, and in the configuration management database, a configuration table of the specified network device is retrieved according to the device model of the specified network device; the configuration table includes the factory configuration information corresponding to the device model of the specified network device under the corresponding manufacturer, and the configuration comments of the factory configuration information; the factory configuration information includes multiple lines of factory commands for configuring each functional module; in the configuration table, the specified line is matched to determine the configuration comments of the specified line; the configuration comments refer to the functional explanation of the specified line; in the preset area of the specified line, the configuration comments are displayed in a preset display mode.
[0015] On the other hand, an embodiment of the present application provides a non-volatile computer storage medium for viewing network device configuration based on SDN, which stores computer executable instructions and is applied to an SDN controller. The computer executable instructions are configured to: receive a configuration viewing request for a specified network device; retrieve configuration management information of the specified network device from a preset configuration management database; the configuration management information includes a user name, a password corresponding to the user name, a management network IP reachable by the SDN controller, and a simple network management SNMP protocol configuration; connect to the specified network device according to the configuration management information to obtain the configuration information of the specified network device; the configuration information includes multiple lines of commands for configuring each functional module; according to a preset display layout, displaying the configuration information on the front-end user interface; in the configuration information, receiving a selection command of a specified row, and retrieving the configuration table of the specified network device in the configuration management database according to the device model of the specified network device; the configuration table includes the factory configuration information corresponding to the device model of the specified network device under the corresponding manufacturer, and the configuration comments of the factory configuration information; the factory configuration information includes multiple rows of factory commands for configuring each functional module; in the configuration table, matching the specified row to determine the configuration comments of the specified row; the configuration comments refer to the functional explanation of the specified row; in the preset area of the specified row, the configuration comments are displayed in a preset display mode.
[0016] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
[0017] The data center operation and maintenance personnel can use the SDN controller to check and manage the configuration of the network devices of various manufacturers currently managed. Through the configuration management function provided by the front-end user interface of the SDN controller, the configuration information of the network devices of various manufacturers within the supported range can be viewed. The SDN controller can provide the configuration translation corresponding to the device configuration information selected by the operation and maintenance personnel, so that the operation and maintenance personnel can understand the function of the configuration. In addition, through the comparison, association search, current line deletion, block deletion, function deletion and other operations provided by the SDN controller, the operation and maintenance personnel can use the SDN controller to perform more efficient operation and maintenance operations on the configuration of various network devices in the environment. Through the automatic management capability of the SDN controller for the configuration of network devices, it assists in completing daily operation and maintenance operations such as troubleshooting, inspections or business changes, so that the operation and maintenance efficiency of the data center can be improved and the reliability is greatly enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solution of the present application, some embodiments of the present application will be described in detail below in conjunction with the accompanying drawings, in which:
[0019] Figure 1 A schematic diagram of a framework of a network device configuration viewing system based on SDN provided in an embodiment of the present application;
[0020] Figure 2 A flowchart of a method for viewing network device configuration based on SDN provided in an embodiment of the present application;
[0021] Figure 3 A structural diagram of a network device configuration viewing device based on SDN provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0023] Some embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0024] Figure 1 A schematic diagram of a framework of an SDN-based network device configuration viewing system provided in an embodiment of the present application.
[0025] exist Figure 1 It includes SDN controller, SDN control node, SDN front-end UI interface, SDN database, and managed network devices.
[0026] Among them, the SDN controller is deployed in the data center network. During deployment, it is necessary to confirm various information of the management network equipment of the SDN controller, including the management network IP reachable by the SDN controller, the management username and password, and SNMP related configurations. Then, after the SDN controller is successfully deployed, the front-end UI interface of the SDN controller will be turned into an available state. The operation and maintenance personnel can access the specific address through the browser, enter the front-end UI interface, and enter the management information of various network devices in the front-end UI interface. Among them, network equipment includes switches, routers, etc.
[0027] The SDN controller will verify the information filled in through SSH or SNMP. After the verification information is correct, the device information will be saved in the SDN database. The device management entry is completed. The network device that has completed the management information entry will be marked as managed in the SDN controller, indicating that the device can be accessed by the SDN controller. The SDN controller can obtain its status and configuration information through the SDN control node and adjust its configuration through the command line or API.
[0028] It should be noted that the front-end UI interface refers to the front-end user interface, and the SDN database refers to the configuration management database.
[0029] After the network devices are managed through the SDN controller front-end user interface, the operation and maintenance personnel can use the configuration management function in the front-end user interface to select the corresponding network device to view the corresponding configuration information. Based on the user's operation, after the SDN controller receives the viewing request of the specified network device, it will connect to the specified network device according to the information of the specified network device provided during management, and obtain the configuration information of the current specified network device, and then display the obtained configuration information in the front-end user interface for the operation and maintenance personnel to view.
[0030] Next, through Figure 2 Describes the network device configuration viewing process in detail, and applies to Figure 1 in the system.
[0031] Figure 2 A flow chart of a method for viewing network device configuration based on SDN provided in an embodiment of the present application. The method can be applied to different business fields, such as Internet financial business field, e-commerce business field, instant messaging business field, game business field, official business field, etc. Some input parameters or intermediate results in the process allow manual intervention and adjustment to help improve accuracy.
[0032] Figure 2 The process in includes the following steps:
[0033] S201: The SDN controller receives a configuration query request for a specified network device.
[0034] In some embodiments of the present application, the SDN controller needs to manage network devices in advance.
[0035] Based on this, it is determined that the deployment is complete in the data center network, and the front-end user interface is converted to an available interface state.
[0036] Then, the configuration management information of the network device to be managed is obtained through the front-end user interface, and the configuration management information is verified.
[0037] If the verification is successful, the configuration management information will be saved to the configuration management database, and the network device to be managed will be marked as a managed network device.
[0038] S202: Retrieving configuration management information of the designated network device from a preset configuration management database.
[0039] The configuration management information includes a user name, a password corresponding to the user name, a management network IP reachable by the SDN controller, and SNMP protocol configuration.
[0040] S203: Connect to the designated network device according to the configuration management information to obtain the configuration information of the designated network device.
[0041] The configuration information includes multiple lines of commands for configuring each functional module.
[0042] S204: Displaying the configuration information on the front-end user interface according to a preset display layout.
[0043] Among them, by specifying the display layout of the network device, the display layout of the configuration information in the front-end user interface is determined so that the display layouts of the two are the same.
[0044] S205: receiving a selection command for a designated row in the configuration information, and retrieving a configuration table of the designated network device in the configuration management database according to the device model of the designated network device.
[0045] The configuration table includes the factory configuration information corresponding to the device model of the specified network device under the corresponding manufacturer, and the configuration comments of the factory configuration information; the factory configuration information includes multiple lines of factory commands for configuring each functional module.
[0046] It should be noted that the specified row includes one or more rows.
[0047] S206: In the configuration table, the designated row is matched to determine a configuration comment of the designated row; the configuration comment refers to a functional explanation of the designated row.
[0048] In other words, configuration comments are: content that is preset in the configuration management database of the SDN controller and describes the functions and usage of devices from different manufacturers based on the configuration command lines commonly used in data center networks.
[0049] In some embodiments of the present application, there may be the same command line in different functions, but the functions are different.
[0050] Based on this, in the configuration table, it is determined whether the specified row has the same row in the factory configuration information.
[0051] If yes, in the factory configuration information, start with the specified line and query upward until the functional module to which the specified line belongs is determined, thereby determining the configuration comment of the specified line in the functional module.
[0052] If not, the configuration comment of the specified line can be determined directly.
[0053] S207: Displaying the configuration annotation in a preset area of the designated row in a preset display manner.
[0054] For example, the front-end user interface of the SDN controller selects the specified row and displays it in the form of a configuration information display box, so that the operation and maintenance personnel can understand the purpose of the specified row according to the annotation content in the configuration information display box.
[0055] In some embodiments of the present application, when a user clicks on a specified row of content in the front-end user interface of the SDN controller, a pop-up selection box will be triggered. In the pop-up selection box, information comparison, association search, command deletion, command block deletion, and command function deletion operations can be used.
[0056] Based on this, if an associated search request for a specified row is received, in the configuration table, the function module to which the specified row belongs is determined; and whether the function module supports associated search;
[0057] If so, connect to the designated network device, obtain the configuration information in the function module in the designated network device, and display the configuration information in the function module on the front-end user interface.
[0058] If not, a search without permission is returned to the user.
[0059] Based on this, if a request for information comparison of a specified row is received, it is determined whether there is a comparison network device with the same device model in the configuration management database according to the device model of the specified network device.
[0060] If not, a comparison without permission is returned to the user.
[0061] If so, the configuration table of the compared network device is retrieved, and in the configuration table of the compared network device, it is detected whether there are identical rows; if so, the compared network device is displayed on the front-end user interface.
[0062] A selection command of a comparison network device is received, and a comparison function module corresponding to the same row in a configuration table of the comparison network device is determined.
[0063] Connect to the comparison network device to obtain the comparison configuration information of the comparison network device for the comparison function module, and display the comparison configuration information on the front-end user interface.
[0064] It should be noted that if there are no identical rows in the configuration table of the compared network devices, a message indicating that the comparison is not authorized is returned to the user.
[0065] Based on this, a deletion request for a specified row is received, and it is determined whether the specified row supports deletion.
[0066] If not, a no-authority row deletion is returned to the user.
[0067] If yes, in the configuration table, determine the functional module to which the specified row belongs; connect to the specified network device, and in the specified network device, delete the specified row in the functional module;
[0068] Get the row deletion result and display it on the front-end user interface.
[0069] Based on this, a block deletion request for a specified row is received, and in the configuration table, the functional module to which the specified row belongs is determined.
[0070] Then, determine whether the functional module supports block deletion.
[0071] If not, the unauthorized block deletion is returned to the user.
[0072] If so, a connection is made to the designated network device, and in the designated network device, the block module in the functional module is deleted.
[0073] Get the block deletion result and display it on the front-end user interface.
[0074] Based on this, a function closing request for a specified row is received, and in the configuration table, a function module to which the specified row belongs is determined.
[0075] Then, determine whether the function module supports the function closing operation.
[0076] If not, a message indicating that the function is closed without permission is returned to the user.
[0077] If so, connect to the designated network device, delete the function module in the designated network device; obtain the function module deletion result, and display the function module deletion result on the front-end user interface.
[0078] It should be noted that although the embodiments of the present application are based on Figure 2 Steps S201 to S207 are described in sequence, but this does not mean that steps S201 to S207 must be performed in a strict order. Figure 2 The order shown in the figure is to introduce and explain step S201 to step S207 in sequence, in order to facilitate those skilled in the art to understand the technical solution of the embodiment of the present application. In other words, in the embodiment of the present application, the order between step S201 to step S207 can be appropriately adjusted according to actual needs.
[0079] pass Figure 2The data center operation and maintenance personnel can use the SDN controller to check and manage the configuration of the network equipment of each manufacturer currently managed. Through the configuration management function provided by the front-end user interface of the SDN controller, the configuration information of the network equipment of each manufacturer within the supported range can be viewed. The SDN controller can provide the configuration translation corresponding to the device configuration information selected by the operation and maintenance personnel, so that the operation and maintenance personnel can understand the function of the configuration. In addition, through the comparison, association search, current row deletion, block deletion, function deletion and other operations provided by the SDN controller, the operation and maintenance personnel can use the SDN controller to perform more efficient operation and maintenance operations on the configuration of each network device in the environment. Through the automatic management capability of the SDN controller for the configuration of network equipment, it assists in completing daily operation and maintenance operations such as troubleshooting, inspection or business changes, so that the operation and maintenance efficiency of the data center can be improved and the reliability is greatly enhanced.
[0080] Based on the same idea, some embodiments of the present application also provide devices and non-volatile computer storage media corresponding to the above methods.
[0081] Figure 3 A schematic diagram of a network device configuration viewing device based on SDN provided in an embodiment of the present application includes:
[0082] at least one processor; and,
[0083] a memory communicatively connected to the at least one processor; wherein,
[0084] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0085] receiving a configuration viewing request for a specified network device;
[0086] Retrieving configuration management information of the specified network device in a pre-set configuration management database; the configuration management information includes a user name, a password corresponding to the user name, a management network IP reachable by the SDN controller, and a simple network management SNMP protocol configuration;
[0087] According to the configuration management information, connecting to the designated network device to obtain the configuration information of the designated network device; the configuration information includes a plurality of lines of commands for configuring each functional module;
[0088] Displaying the configuration information on the front-end user interface according to a preset display layout;
[0089] In the configuration information, a selected command of a designated row is received, and in the configuration management database, a configuration table of the designated network device is retrieved according to the device model of the designated network device; the configuration table includes factory configuration information corresponding to the device model of the designated network device under the corresponding manufacturer, and configuration comments of the factory configuration information; the factory configuration information includes multiple rows of factory commands for configuring each functional module;
[0090] In the configuration table, the specified row is matched to determine the configuration annotation of the specified row; the configuration annotation refers to the functional explanation of the specified row;
[0091] The configuration annotation is displayed in a preset area of the designated row using a preset display method.
[0092] Some embodiments of the present application provide a non-volatile computer storage medium for viewing network device configuration based on SDN, storing computer executable instructions, wherein the computer executable instructions are configured to:
[0093] receiving a configuration viewing request for a specified network device;
[0094] Retrieving configuration management information of the specified network device in a pre-set configuration management database; the configuration management information includes a user name, a password corresponding to the user name, a management network IP reachable by the SDN controller, and a simple network management SNMP protocol configuration;
[0095] According to the configuration management information, connecting to the designated network device to obtain the configuration information of the designated network device; the configuration information includes a plurality of lines of commands for configuring each functional module;
[0096] Displaying the configuration information on the front-end user interface according to a preset display layout;
[0097] In the configuration information, a selected command of a designated row is received, and in the configuration management database, a configuration table of the designated network device is retrieved according to the device model of the designated network device; the configuration table includes factory configuration information corresponding to the device model of the designated network device under the corresponding manufacturer, and configuration comments of the factory configuration information; the factory configuration information includes multiple rows of factory commands for configuring each functional module;
[0098] In the configuration table, the specified row is matched to determine the configuration annotation of the specified row; the configuration annotation refers to the functional explanation of the specified row;
[0099] The configuration annotation is displayed in a preset area of the designated row using a preset display method.
[0100] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0101] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0102] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0103] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0104] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0105] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0106] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0107] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0108] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0109] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0110] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the technical principle of the present application should all fall within the protection scope of the present application.
Claims
1. A method for viewing network device configuration based on SDN, characterized in that: The method comprises: The SDN controller receives a configuration viewing request for a specified network device; Retrieving configuration management information of the specified network device in a pre-set configuration management database; the configuration management information includes a user name, a password corresponding to the user name, a management network IP reachable by the SDN controller, and a simple network management SNMP protocol configuration; According to the configuration management information, connecting to the designated network device to obtain the configuration information of the designated network device; the configuration information includes a plurality of lines of commands for configuring each functional module; Displaying the configuration information on the front-end user interface according to a preset display layout; In the configuration information, a selected command of a designated row is received, and in the configuration management database, a configuration table of the designated network device is retrieved according to the device model of the designated network device; the configuration table includes factory configuration information corresponding to the device model of the designated network device under the corresponding manufacturer, and configuration comments of the factory configuration information; the factory configuration information includes multiple rows of factory commands for configuring each functional module; In the configuration table, the specified row is matched to determine the configuration annotation of the specified row; the configuration annotation refers to the functional explanation of the specified row; Displaying the configuration annotation in a preset area of the designated row by a preset display method; After displaying the configuration annotation in a preset area of the designated row in a preset display manner, the method further includes: receiving an information comparison request for the designated row, and judging, according to the device model of the designated network device, whether there is a comparison network device with the same device model in the configuration management database; If yes, then searching the configuration table of the compared network device and detecting whether there are identical rows in the configuration table of the compared network device; If yes, displaying the compared network device on the front-end user interface; Receiving a selection command of the comparison network device, and determining a comparison function module corresponding to the same row in the configuration table of the comparison network device; Connecting to the comparison network device to obtain comparison configuration information of the comparison network device for the comparison function module; The comparison configuration information is displayed on the front-end user interface.
2. The method according to claim 1, characterized in that: In the configuration table, matching the specified row to determine the configuration comment of the specified row specifically includes: In the configuration table, determining whether the specified row has an identical row in the factory configuration information; If yes, in the factory configuration information, starting from the designated line, query upward until the functional module to which the designated line belongs is determined; A configuration comment of the specified line in the functional module is determined.
3. The method according to claim 1, characterized in that After displaying the configuration annotation in a preset area of the designated row in a preset display manner, the method further includes: receiving an association search request for the specified row, and determining, in the configuration table, a functional module to which the specified row belongs; Determine whether the functional module supports association search; If yes, connect to the designated network device, and obtain configuration information in the functional module in the designated network device; The configuration information in the functional module is displayed on the front-end user interface.
4. The method according to claim 1, characterized in that: After displaying the configuration annotation in a preset area of the designated row in a preset display manner, the method further includes: receiving a deletion request for the specified row, and determining whether the specified row supports deletion; If yes, then determining in the configuration table the functional module to which the specified row belongs; Connecting to the designated network device, and deleting the designated row in the functional module in the designated network device; Obtain a row deletion result, and display the row deletion result on the front-end user interface.
5. The method according to claim 1, characterized in that After displaying the configuration annotation in a preset area of the designated row in a preset display manner, the method further includes: receiving a block deletion request for the designated row, and determining in the configuration table a functional module to which the designated row belongs; Determining whether the functional module supports block deletion; If yes, connect to the designated network device, and delete the block module in the functional module in the designated network device; Obtain a block deletion result, and display the block deletion result on the front-end user interface.
6. The method according to claim 1, characterized in that After displaying the configuration annotation in a preset area of the designated row in a preset display manner, the method further includes: receiving a function closing request for the designated row, and determining, in the configuration table, a function module to which the designated row belongs; Determine whether the functional module supports function shutdown operation; If yes, connect to the designated network device, and delete the functional module in the designated network device; The function module deletion result is obtained, and the function module deletion result is displayed on the front-end user interface.
7. The method according to claim 1, characterized in that Before the SDN controller receives a configuration viewing request for a specified network device, the method further includes: Confirm that the deployment is complete in the data center network and convert the front-end user interface to an available interface state; Obtaining configuration management information of the network device to be managed through the front-end user interface; Verifying the configuration management information; If the verification is successful, the configuration management information is saved in the configuration management database; The network device to be managed is marked as a managed network device.
8. A network device configuration viewing device based on SDN, characterized in that: Applied to SDN controllers, including: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: receiving a configuration viewing request for a specified network device; Retrieving configuration management information of the specified network device in a pre-set configuration management database; the configuration management information includes a user name, a password corresponding to the user name, a management network IP reachable by the SDN controller, and a simple network management SNMP protocol configuration; According to the configuration management information, connecting to the designated network device to obtain the configuration information of the designated network device; the configuration information includes a plurality of lines of commands for configuring each functional module; Displaying the configuration information on the front-end user interface according to a preset display layout; In the configuration information, a selected command of a designated row is received, and in the configuration management database, a configuration table of the designated network device is retrieved according to the device model of the designated network device; the configuration table includes factory configuration information corresponding to the device model of the designated network device under the corresponding manufacturer, and configuration comments of the factory configuration information; the factory configuration information includes multiple rows of factory commands for configuring each functional module; In the configuration table, the specified row is matched to determine the configuration annotation of the specified row; the configuration annotation refers to the functional explanation of the specified row; Displaying the configuration annotation in a preset area of the designated row by a preset display method; After displaying the configuration annotation in a preset area of the designated row in a preset display mode, the method further includes: receiving an information comparison request for the designated row, and judging, according to the device model of the designated network device, whether there is a comparison network device with the same device model in the configuration management database; If yes, then searching the configuration table of the compared network device and detecting whether there are identical rows in the configuration table of the compared network device; If yes, displaying the compared network device on the front-end user interface; Receiving a selection command of the comparison network device, and determining a comparison function module corresponding to the same row in the configuration table of the comparison network device; Connecting to the comparison network device to obtain comparison configuration information of the comparison network device for the comparison function module; The comparison configuration information is displayed on the front-end user interface.
9. A non-volatile computer storage medium for viewing network device configuration based on SDN, storing computer executable instructions, characterized in that: Applied to an SDN controller, the computer executable instruction is configured as: receiving a configuration viewing request for a specified network device; Retrieving configuration management information of the specified network device in a pre-set configuration management database; the configuration management information includes a user name, a password corresponding to the user name, a management network IP reachable by the SDN controller, and a simple network management SNMP protocol configuration; According to the configuration management information, connecting to the designated network device to obtain the configuration information of the designated network device; the configuration information includes a plurality of lines of commands for configuring each functional module; Displaying the configuration information on the front-end user interface according to a preset display layout; In the configuration information, a selected command of a designated row is received, and in the configuration management database, a configuration table of the designated network device is retrieved according to the device model of the designated network device; the configuration table includes factory configuration information corresponding to the device model of the designated network device under the corresponding manufacturer, and configuration comments of the factory configuration information; the factory configuration information includes multiple rows of factory commands for configuring each functional module; In the configuration table, the specified row is matched to determine the configuration annotation of the specified row; the configuration annotation refers to the functional explanation of the specified row; Displaying the configuration annotation in a preset area of the designated row by a preset display method; After displaying the configuration annotation in a preset area of the designated row in a preset display mode, the method further includes: receiving an information comparison request for the designated row, and judging, according to the device model of the designated network device, whether there is a comparison network device with the same device model in the configuration management database; If yes, then searching the configuration table of the compared network device and detecting whether there are identical rows in the configuration table of the compared network device; If yes, displaying the compared network device on the front-end user interface; Receiving a selection command of the comparison network device, and determining a comparison function module corresponding to the same row in the configuration table of the comparison network device; Connecting to the comparison network device to obtain comparison configuration information of the comparison network device for the comparison function module; The comparison configuration information is displayed on the front-end user interface.
