Method and device for constructing network element deployment template for cloud platform and electronic equipment
By matching and filling network element deployment planning information to network element deployment templates of target cloud platform, the problem of difficulty in writing existing TOSCA templates is solved, and the deployment efficiency and compatibility of network elements on different cloud platforms is improved.
Patent Information
- Application Number
- CN202310959278.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-01
- Publication Date
- 2025-02-14
AI Technical Summary
The existing TOSCA templates have difficulty in writing and reading, high professional requirements, high error rates, and are inconvenient for inspection and maintenance, resulting in low deployment efficiency, accuracy and compatibility of network elements on different cloud platforms.
By obtaining network element deployment planning information, matching the feature fields in the network element deployment template configured with multiple cloud platforms, determining the target network element deployment template for the target cloud platform, and filling the attribute information and topology relationship information into the template to generate appropriate Network element deployment templates that are equipped with the target cloud platform.
It improves the deployment efficiency, accuracy and compatibility of network elements on cloud platforms of different manufacturers, and reduces deployment difficulty and cost.
Smart Images

Figure CN119449608A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method, device and electronic device for constructing a network element deployment template for a cloud platform. Background Art
[0002] Currently, the TOSCA (Topology and Orchestration Specification for Cloud Application) template is the most complex but most versatile template for describing the application topology on cloud platforms. The goal of the TOSCA template is to be universal in different management and orchestration systems, but it is very difficult to manually write and read the TOSCA template. Directly making a TOSCA template requires high professional requirements and is difficult to edit, has a high error rate, and is not easy to check and maintain. Summary of the invention
[0003] The purpose of the embodiments of the present invention is to provide a method, device and electronic device for constructing a network element deployment template for a cloud platform, so as to improve the deployment efficiency, accuracy and compatibility of network elements on cloud platforms of different manufacturers. The specific technical solution is as follows:
[0004] In a first aspect, an embodiment of the present invention provides a method for constructing a network element deployment template for a cloud platform, including:
[0005] Acquire network element deployment planning information, wherein the network element deployment planning information includes fields for characterizing attribute information of network element nodes and topological relationship information between the network element nodes;
[0006] Matching the field with characteristic fields in network element deployment templates respectively configured for multiple cloud platforms to determine a target network element deployment template for a target cloud platform; wherein the field includes any characteristic field in the target network element deployment template;
[0007] Match the attribute name of each field with the attribute name label of each to-be-filled position in the target network element deployment template, determine the target filling position of each field, and fill the attribute value of the field into the target filling position to obtain a network element deployment template adapted to the target cloud platform.
[0008] Optionally, also include:
[0009] After obtaining a network element deployment template adapted to the target cloud platform, converting the format of the network element deployment template to obtain network topology resource information in a preset data exchange format;
[0010] The network topology resource information is visualized to obtain a visualization image of a network element node.
[0011] Optionally, the method further includes:
[0012] In response to the modification of the visualization image of the network element node, the network topology resource information is updated; the modification includes modification of attribute information of the network element node;
[0013] The updated network topology resource information is visualized to obtain an updated network element node visualization image, and / or the updated network topology resource information is formatted to obtain an updated network element deployment template.
[0014] Optionally, the step of visualizing the network topology resource information to obtain a visualization image of a network element node includes:
[0015] Obtain a predefined node drawing template, where the node drawing template is used to specify a drawing format of a node unit;
[0016] Based on the node drawing template, create the node unit corresponding to the network element node; based on the attribute information of the network element node in the network topology resource information, render the node attributes of the node unit; based on the topological relationship information between the network element nodes in the network topology resources, render the relationship lines between the node units to obtain a visualization image of the network element node.
[0017] Optionally, before matching the field with characteristic fields in network element deployment templates respectively configured for multiple cloud platforms to determine a target network element deployment template for a target cloud platform, the method further includes:
[0018] In response to the modification of the network element deployment template, the network element deployment template is updated to obtain an updated network element deployment template; wherein the modification of the network element deployment template includes modification of default deployment parameters in the network element deployment template, and / or modification of fields in the network element deployment template.
[0019] In a second aspect, an embodiment of the present invention provides an electronic device, including a memory, a transceiver, and a processor:
[0020] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations:
[0021] Acquire network element deployment planning information, wherein the network element deployment planning information includes fields for characterizing attribute information of network element nodes and topological relationship information between the network element nodes;
[0022] Matching the field with characteristic fields in network element deployment templates respectively configured for multiple cloud platforms to determine a target network element deployment template for a target cloud platform; wherein the field includes any characteristic field in the target network element deployment template;
[0023] Match the attribute name of each field with the attribute name label of each to-be-filled position in the target network element deployment template, determine the target filling position of each field, and fill the attribute value of the field into the target filling position to obtain a network element deployment template adapted to the target cloud platform.
[0024] Optionally, the processor is further configured to read a computer program in the memory and perform the following operations:
[0025] After obtaining a network element deployment template adapted to the target cloud platform, converting the format of the network element deployment template to obtain network topology resource information in a preset data exchange format;
[0026] The network topology resource information is visualized to obtain a visualization image of a network element node.
[0027] Optionally, the node visualization image is an interactive image, and the processor is further configured to read a computer program in the memory and perform the following operations:
[0028] In response to the modification of the visualization image of the network element node, the network topology resource information is updated; the modification includes modification of attribute information of the network element node;
[0029] The updated network topology resource information is visualized to obtain an updated network element node visualization image, and / or the updated network topology resource information is formatted to obtain an updated network element deployment template.
[0030] Optionally, the visualizing the network topology resource information to obtain a visualized image of a network element node specifically includes:
[0031] Obtain a predefined node drawing template, where the node drawing template is used to specify a drawing format of a node unit;
[0032] Based on the node drawing template, create the node unit corresponding to the network element node; based on the attribute information of the network element node in the network topology resource information, render the node attributes of the node unit; based on the topological relationship information between the network element nodes in the network topology resource information, render the relationship lines between the node units to obtain a visualization image of the network element node.
[0033] Optionally, the processor is further configured to read a computer program in the memory and perform the following operations:
[0034] In response to the modification of the network element deployment template, the network element deployment template is updated to obtain an updated network element deployment template; wherein the modification of the network element deployment template includes modification of default deployment parameters in the network element deployment template, and / or modification of fields in the network element deployment template.
[0035] In a third aspect, an embodiment of the present invention provides a device for constructing a network element deployment template for a cloud platform, including:
[0036] An acquisition module, used to acquire network element deployment planning information, wherein the network element deployment planning information includes fields for characterizing attribute information of network element nodes and topological relationship information between the network element nodes;
[0037] A matching module, used to match the field with characteristic fields in network element deployment templates respectively configured for multiple cloud platforms, and determine a target network element deployment template of a target cloud platform; wherein the field includes any characteristic field in the target network element deployment template;
[0038] A filling module is used to match the attribute name of each field with the attribute name label of each to-be-filled position in the target network element deployment template, determine the target filling position of each field, and fill the attribute value of the field into the target filling position to obtain a network element deployment template adapted to the target cloud platform.
[0039] Optionally, also include:
[0040] A conversion module, configured to obtain a network element deployment template adapted to the target cloud platform, and then convert the format of the network element deployment template to obtain network topology resource information in a preset data exchange format;
[0041] The processing module is used to perform visualization processing on the network topology resource information to obtain a visualization image of the network element node.
[0042] Optionally, the node visualization image is an interactive image, and the device further includes:
[0043] A first updating module, configured to update the network topology resource information in response to a modification of the visualization image of the network element node; the modification includes a modification of the attribute information of the network element node;
[0044] The processing module is also used to perform visualization processing on the updated network topology resource information to obtain an updated network element node visualization image, and / or to perform format conversion on the updated network topology resource information to obtain an updated network element deployment template.
[0045] Optionally, the processing module is specifically used for:
[0046] Obtain a predefined node drawing template, where the node drawing template is used to specify a drawing format of a node unit;
[0047] Based on the node drawing template, create the node unit corresponding to the network element node; based on the attribute information of the network element node in the network topology resource information, render the node attributes of the node unit; based on the topological relationship information between the network element nodes in the network topology resource information, render the relationship lines between the node units to obtain a visualization image of the network element node.
[0048] Optionally, the device further comprises:
[0049] The second update module is used to update the network element deployment template in response to the modification of the network element deployment template to obtain an updated network element deployment template; wherein the modification of the network element deployment template includes the modification of the default deployment parameters in the network element deployment template and / or the modification of the fields in the network element deployment template.
[0050] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it implements any of the above-mentioned methods for constructing a network element deployment template for a cloud platform.
[0051] An embodiment of the present invention also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the above-described methods for constructing a network element deployment template for a cloud platform.
[0052] Beneficial effects of the embodiments of the present invention:
[0053] The method, device and electronic device for constructing a network element deployment template for a cloud platform provided in an embodiment of the present invention respectively configure network element deployment templates for different cloud platforms. After obtaining network element deployment planning information, the target network element deployment template for the target cloud platform is determined based on matching the fields in the network element deployment planning information with the characteristic fields in the network element deployment template. Then, the attribute values of the fields in the network element deployment planning information used to characterize the attribute information of the network element nodes and the topological relationship information between the network element nodes are filled into the target filling position in the target network element deployment template to obtain a network element deployment template adapted to the target cloud platform, thereby being able to flexibly connect to the network element deployment planning information corresponding to the cloud platforms of different manufacturers, greatly improving the deployment efficiency, accuracy and compatibility of network elements on cloud platforms of different manufacturers, and reducing the deployment difficulty and deployment cost.
[0054] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0056] Figure 1 It is a flow chart of a method for constructing a network element deployment template for a cloud platform provided by an embodiment of the present invention;
[0057] Figure 2 is a schematic diagram of a network element node visualization image provided by an embodiment of the present invention;
[0058] Figure 3 It is a work operation flow chart of a method for constructing a network element deployment template for a cloud platform provided by an embodiment of the present invention;
[0059] Figure 4 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0060] Figure 5 It is a structural diagram of a device for constructing a network element deployment template for a cloud platform provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field based on this application belong to the scope of protection of the present invention.
[0062] When network elements need to be deployed, the service requester generally needs to first provide a standard description of the network element deployment plan, or a network element deployment template. The network element deployment template needs to be in a format recognizable by the management and orchestration system, so that the management and orchestration system can implement network element deployment based on the network element deployment template.
[0063] For example, the network element deployment template may be a TOSCA template. An example of a TOSCA template is shown below:
[0064]
[0065] The TOSCA template is specifically used to describe the relevant information of each network element node, see the above example, where "node_templates" is used to describe the relevant information of the network element node, and the next level element of node_templates is the specific network element node. The above example specifically shows three network element nodes, "amf", "amf_glb_virtualstorage" and "amf_glb". The next level element of the network element node is the relevant information of the network element node, for example, the attribute information of the network element node and the topological relationship information between the network element node and other network element nodes, so that the TOSCA template can be used to describe the attribute information of each network element node and the topological relationship information between network element nodes. Taking the network element node "amf_glb" as an example, the "type:tosca.nodes.nfv.Vdu.VirtualStorage" under this node indicates that the node type of amf_glb is specifically tosca.nodes.nfv.Vdu.VirtualStorage. The meaning of other contents in the above TOSCA template can refer to the contents in the relevant technology.
[0066] However, the above network element deployment template has high professional requirements and is difficult to edit. In addition, it is necessary to perform differential updates for different cloud platforms. Since there are many attribute items and the differences are too large, it is difficult to manually write. In order to solve this problem, an embodiment of the present invention provides a method for constructing a network element deployment template for a cloud platform, see Figure 1 The method for constructing a network element deployment template for a cloud platform provided by an embodiment of the present invention specifically includes the following steps:
[0067] Step S101: Acquire network element deployment planning information, where the network element deployment planning information includes fields for representing attribute information of network element nodes and topological relationship information between network element nodes.
[0068] In the embodiment of the present invention, the network element deployment planning information can be understood as a descriptive file manually written for the network element deployment planning. In order to improve efficiency, the network element deployment planning information can be in a format that is convenient for manual writing, such as EXCEL (a file format). The embodiment of the present invention does not limit the specific format of the network element deployment planning information.
[0069] The network element deployment planning information may specifically include the attribute information of the network element nodes to be deployed and the topological relationship information between the network element nodes. Among them, the network element node can be specifically understood as a virtual machine unit, and the specific categories contained in the attribute information and the topological relationship information can be selected based on actual needs. The embodiment of the present invention does not limit this. As an example, the attribute information of the network element node may specifically include the computing resources, storage resources, internal and external network port information, internal and external communication information, METADATA (metadata) information, etc. of the network element node, and the topological relationship information between the network element nodes may specifically include the networking information, network connection relationship, etc. between the network element nodes.
[0070] In addition, in order to facilitate the subsequent parsing of the network element deployment planning information, the network element deployment planning information can specifically record the data in the form of key-value pairs. As an example, if the storage space size of a network element node is specifically 320GB (Gigabyte), the network element deployment planning information can record a field with the attribute name "size_of_storage" for the network element node, and the attribute value of the attribute name is 320.
[0071] Step S102: Match the field with characteristic fields in network element deployment templates respectively configured for multiple cloud platforms to determine a target network element deployment template of a target cloud platform; wherein the field includes any characteristic field in the target network element deployment template.
[0072] In actual applications, different cloud platforms (e.g., cloud platforms from different manufacturers) have different requirements for network element deployment templates. Therefore, in the embodiments of the present invention, different network element deployment templates can be determined for cloud platforms from different manufacturers based on the specific requirements of cloud platforms from different manufacturers, to specify the aforementioned attribute information and relationship information that need to be filled in the network element deployment template, wherein the specific parameters of the attribute information and topological relationship information can be replaced by placeholders and filled in the subsequent step S103. The network element deployment template specifically adopts a format that can be identified by an orchestration management system, for example, the network element deployment template can be a TOSCA template.
[0073] Specifically, for the above attribute information and relationship information, each cloud platform may use specific fields to define them, and the network element deployment template corresponding to each cloud platform contains the specific fields used by the cloud platform. Therefore, the specific fields that each cloud platform focuses on for the above attribute information and relationship information compared with other cloud platforms can be used as characteristic fields in the network element deployment template configured for the cloud platform to distinguish it from the network element deployment templates configured for other cloud platforms.
[0074] Therefore, for the network element deployment planning information obtained in the above step S101, the fields used to characterize the attribute information of the network element nodes and the relationship information between the network element nodes can be matched with the characteristic fields in the network element deployment templates configured for multiple cloud platforms respectively. If the network element deployment planning information contains any characteristic field in the network element deployment template configured for one of the cloud platforms, it is considered that the network element deployment planning information is specifically the network element deployment information planned for the cloud platform, that is, the cloud platform is the target cloud platform corresponding to the network element deployment planning information.
[0075] As an example, for the attribute item propertyA in the attribute information of the network element node, if this attribute item needs to be paid attention to only when applying cloud platform A for network element deployment, the network element deployment template configured for cloud platform A includes the attribute item propertyA, and propertyA can be used as the characteristic field of this network element deployment template. If the acquired network element deployment planning information includes propertyA, when matching the fields in the network element deployment planning information with the characteristic fields in the network element deployment templates configured for multiple cloud platforms, since the characteristic fields of the network element deployment template configured for cloud platform A also include propertyA, the network element deployment planning information successfully matches the network element deployment template configured for cloud platform A, and thus the network element deployment template configured for cloud platform A is determined as the target network element deployment template.
[0076] Step S103: Match the attribute name of each field with the attribute name label of each position to be filled in the target network element deployment template, determine the target filling position of each field, and fill the attribute value of the field into the target filling position to obtain a network element deployment template adapted to the target cloud platform.
[0077] As mentioned above, the network element deployment template can be specifically used to specify the aforementioned attribute information and relationship information that need to be filled in the network element deployment template, and the specific parameters of the attribute information and topological relationship information can be replaced by placeholders, which can be understood as attribute name tags.
[0078] As mentioned above, the network element deployment planning information can specifically record the attribute information of the network element nodes and the topological relationship information between the network element nodes in the form of key-value pairs. Therefore, for any of the specific information, the specific information can be represented by an attribute name and an attribute value. In an embodiment of the present invention, the attribute name tag in the target network element deployment template occupies a specific position to be filled in the template, and can represent the attribute name corresponding to the attribute information that needs to be filled in the position to be filled. Therefore, after determining the target network element deployment template corresponding to the network element deployment planning information, the attribute name of the field used to represent the attribute information and the topological relationship information in the network element deployment planning information can be matched with the attribute name tag in the target network element deployment template to determine the attribute name tag corresponding to each field, and then the attribute value of each field is filled into the target filling position corresponding to the attribute name tag, that is, the attribute name tag is replaced with the attribute value of the corresponding field, and the network element deployment template adapted to the target cloud platform can be obtained.
[0079] As an example, if the node type needs to be recorded in the network element deployment template, the network element deployment template defined in the embodiment of the present invention may include "type:{type}", where {type} is the attribute name tag in the embodiment of the present invention. On this basis, if the network element deployment planning information contains the attribute name "type", the attribute name matches the attribute name tag {type}, and if the attribute value corresponding to the attribute name is specifically tosca.nodes.nfv.Vdu.VirtualStorage, {type} can be replaced with tosca.nodes.nfv.Vdu.VirtualStorage. At this time, the filled target network element deployment template specifically includes the field "type:tosca.nodes.nfv.Vdu.VirtualStorage".
[0080] In an embodiment of the present invention, the filled target network element deployment template is specifically a network element deployment template adapted to the target cloud platform. It can also be understood that the filled target network element deployment template can be parsed by the management and orchestration system corresponding to the target cloud platform to implement network element deployment on the target cloud platform.
[0081] The method for constructing a network element deployment template for a cloud platform provided in an embodiment of the present invention configures network element deployment templates for different cloud platforms respectively. After obtaining network element deployment planning information, the target network element deployment template for the target cloud platform is determined based on matching the fields in the network element deployment planning information with the characteristic fields in the network element deployment template. Then, the attribute values of the fields in the network element deployment planning information used to characterize the attribute information of the network element nodes and the topological relationship information between the network element nodes are filled into the target filling position in the target network element deployment template to obtain a network element deployment template adapted to the target cloud platform, thereby being able to flexibly connect to the network element deployment planning information corresponding to the cloud platforms of different manufacturers, greatly improving the deployment efficiency, accuracy and compatibility of network elements on cloud platforms of different manufacturers, and reducing the deployment difficulty and deployment cost.
[0082] In one embodiment of the present invention, the method for constructing a network element deployment template for a cloud platform provided by the embodiment of the present invention further includes:
[0083] After obtaining the network element deployment template adapted to the target cloud platform, the network element deployment template is converted into a format to obtain network topology resource information in a preset data exchange format;
[0084] Visualize the network topology resource information to obtain a visualization image of the network element node.
[0085] Specifically, in addition to the problem of being difficult to write manually, the network element deployment template is also difficult to read manually due to its unclear deployment structure. Therefore, in the process of building the network element deployment template, it is also difficult to verify the correctness of the network element deployment template.
[0086] In the embodiment of the present invention, in order to facilitate the verification of the correctness of the network element deployment model, the network element deployment model is visualized. Specifically, in order to facilitate the visualization, it is necessary to first convert the format of the network element deployment template and convert it into network topology resource information in a preset data exchange format that is convenient for processing. Among them, the preset data exchange format can be selected based on actual needs, and the embodiment of the present invention is not limited to this. As an example, the preset data exchange format can be JSON (a data format) format.
[0087] Specifically, the data content in the network element deployment template and the network topology resource information in the preset data exchange format is the same, and the difference is only in the data format. Therefore, the format conversion can be achieved by reading the relationship between the fields in the network element deployment template. Taking the preset data exchange format as JSON format as an example, the JSON format specifically saves data in the form of key-value pairs, and the information in the network element deployment template can also be understood as using a key-value pair structure. The fields in the network topology resource information and the network element deployment template only differ in the arrangement method. Therefore, the format conversion can be achieved by parsing the correspondence between the attribute name and the attribute value in each set of key-value pairs, as well as the nested relationship between the key-value pairs.
[0088] After obtaining the network topology resource information, visualization processing can be performed based on the network topology resource information to obtain a visualization image of the network element node. In the embodiment of the present invention, the network element nodes can be represented by graphics, and the relationship between the network element nodes can be represented by the lines between the graphics, so that the network element deployment planning information can be displayed intuitively.
[0089] The embodiment of the present invention does not limit the specific process of visualizing the network topology resource information. As an example, when the network topology resource information is in JSON format, the network topology resource information can be visualized using GOJS (a JavaScript library for implementing interactive graphs).
[0090] The following is an explanation with specific examples. Figure 2 is a schematic diagram of a network element node visualization image provided by an embodiment of the present invention, see Figure 2 , which specifically shows the network element node udm.hss_glb, Figure 2 The right side shows multiple attributes of the network element node. It can be seen that the attribute information related to the basic information specifically includes: the VDU name of the network element node is udm.hss_glb, the number of virtual machines (instantiations) is 1, and the available domain is test; the attribute information related to the computing unit specifically includes: the number of virtual CPUs (Central Processing Units) is 2, and the virtual memory size is 4096MB (Megabytes); the attribute information related to the storage unit includes: the image name is ne_image, the disk size is 80GB, and the startup type is swiamge. In addition, you can also view the metadata related to the network element node udm.hss_glb based on the "Metadata" option. And, based on Figure 2It can also be seen that the network element node accesses the external network through the interface CCTM_public_net_oam, accesses udm.hss_vld_fabric through the interface fabric, and accesses udm.hss_vld_base through the interface base.
[0091] based on Figure 2 It can be seen that compared with the TOSCA template exemplified in the previous article, the node visualization image can be used to view the attribute information of the network element nodes and the topological relationship information between the network element nodes in an intuitive way.
[0092] In an embodiment of the present invention, a network element deployment template is converted into network topology resource information in a preset data exchange format, and the network topology resource information is visualized to obtain a visualization image of a network element node, and the network element deployment template is displayed in a graphical form. Thus, a user can intuitively see the attribute information of the planned network element nodes and the topological relationship information between the network element nodes, and can more intuitively verify the accuracy of the attribute information and the topological relationship information, which facilitates rapid verification of whether the network element deployment model is consistent with the expected plan.
[0093] In one embodiment of the present invention, the node visualization image is an interactive image, and the method for constructing a network element deployment template for a cloud platform provided by the embodiment of the present invention further includes:
[0094] In response to the modification of the visualization image of the network element node, the network topology resource information is updated; the modification includes the modification of the attribute information of the network element node;
[0095] The updated network topology resource information is visualized to obtain an updated network element node visualization image, and / or the updated network topology resource information is formatted to obtain an updated network element deployment template.
[0096] Specifically, in the process of visualizing the network topology resource information, a network element node visualization image can be created by creating an interactive image. As mentioned above, the network element node visualization image can display the attribute information of the node and the relationship information between the nodes. In the embodiment of the present invention, the network element node visualization image is an interactive image, which specifically means that the user can modify the attribute information of the network element node in the network element node visualization image by interacting with the network element node visualization image.
[0097] As mentioned above, the network element node visualization image is specifically generated based on the network topology resource information. In the embodiment of the present invention, in response to the user's modification of the network element node visualization image, the corresponding modification can be synchronized to the network topology resource information in real time, and the updated network topology resource information can be obtained. On this basis, the updated network topology resource information is visualized and the updated network element node visualization image is returned. Thus, the user can make changes to the network element deployment plan based on the network element node visualization image, and ensure that the network element node visualization image can display the latest version of the network topology resource information.
[0098] by Figure 2 For example, users can Figure 2 The attribute values corresponding to one or more attribute items in the attribute information illustrated in the figure can be modified, or the attribute values corresponding to all attribute items shown in the figure can be modified through the "Reset" option, and after completing the modification, click "Save Option" to synchronize the corresponding modifications to the network topology resource information. After obtaining the updated network topology resource information, the electronic device can return an updated network element node visualization image based on the updated network topology resource information.
[0099] As mentioned above, there is only a difference in format between the network element deployment template and the network topology resource information. Therefore, in an embodiment of the present invention, in response to the user modifying the network element node visualization image, after synchronizing the modification to the network topology resource information, the network topology resource information can also be converted into a format to obtain an updated network element deployment template. On this basis, when the user determines that the generated network element deployment template is insufficient based on the node visualization image, for example, there is an error in the attribute information of the network element node, the corresponding information can be directly modified in the node visualization image, and the updated network element deployment template can be obtained without adjusting the network element deployment planning information and rebuilding the network element deployment template.
[0100] Based on the description in the aforementioned embodiments of the present invention, it can be seen that the user can verify the accuracy of the network element deployment template through the network element node visualization graphics. In the embodiments of the present invention, when the user determines that the network element deployment planning effect is inconsistent with the expectation, the deployment information can be modified based on the network element node visualization image, and the update can be synchronized to the network resource topology information. On this basis, the format conversion is performed to obtain the updated network element deployment template, so that the adjustment and update of the network element deployment template can be quickly completed.
[0101] In one embodiment of the present invention, the above-mentioned step of visualizing the network topology resource information to obtain a visualization image of the network element node includes:
[0102] Get a predefined node drawing template, which is used to specify the drawing format of the node unit;
[0103] Based on the node drawing template, a node unit corresponding to the network element node is created; based on the attribute information of the network element node in the network topology resource information, the node attributes of the node unit are rendered; based on the topological relationship information between the network element nodes in the network topology resources, the relationship lines between the node units are rendered to obtain a visualization image of the network element node.
[0104] Specifically, in order to facilitate the visualization of network topology resource information, a node drawing template can be predefined, and the node drawing template can be used to specify the drawing format of the node unit. The drawing format of the node unit can specifically include the shape, size, color, corresponding text font, etc. of the node unit for specifying its display effect, and the specific range of the drawing format can be limited based on actual needs.
[0105] In the network element node visualization image, the network element nodes can be represented by node units, each node unit is specifically used to represent a network element node, and the topological relationship information between the network element nodes is represented by the relationship lines between the node units.
[0106] After obtaining the network element topology resource information, the visualization of the network topology resource information needs to be realized in combination with the node drawing template. Specifically, data binding between the network element topology resource information and the node drawing template is required. The data binding is to bind the data used to describe the node units and the relationship lines to the node drawing template, so that an object that represents the relationship between nodes in the form of a view can be obtained, that is, the network element node visualization image in the embodiment of the present invention.
[0107] This data binding process specifically requires creating a corresponding node unit for each network element node based on the drawing format of the node unit specified in the node drawing template, rendering the attribute information of the node unit corresponding to each network element node based on the attribute information of the network element node in the network topology resource information, and rendering the relationship lines between the node units based on the topological relationship information between the network element nodes in the network topology resource information to obtain a visualization image of the network element node.
[0108] As an example, if the node drawing template specifies that the shape of the node unit is a square, the network topology resource information includes the attribute information of the network element nodes "amf", "amf_glb_virtualstorage" and "amf_glb", and the network element node "amf_glb" is specified to be connected to "amf_glb_virtualstorage", then a square node unit can be created for each network element node based on the node drawing template, the attribute information corresponding to each node unit can be rendered based on the network topology resource information, and the relationship line between the node unit corresponding to "amf_glb" and the node unit of "amf_glb_virtualstorage" can be drawn.
[0109] In the embodiment of the present invention, based on the network topology resource information, data binding is performed on the predefined node drawing template to obtain a network element node visualization image, which can improve the efficiency of visualization processing of the network topology resource information.
[0110] In one embodiment of the present invention, before matching the field with the characteristic fields in the network element deployment templates respectively configured for the multiple cloud platforms and determining the target network element deployment template of the target cloud platform, the method further includes:
[0111] In response to the modification of the network element deployment template, the network element deployment template is updated to obtain an updated network element deployment template; wherein the modification of the network element deployment template includes modification of default deployment parameters in the network element deployment template and / or modification of fields in the network element deployment template.
[0112] In the embodiment of the present invention, when the pre-configured network element deployment template cannot meet the actual needs, the user can also modify the configured network element deployment template. For example, the user can modify the default configuration parameters and fields in the network element deployment template.
[0113] Specifically, some deployment parameters usually use default values in actual applications, and there is no difference between different cloud platforms, so there is no need to define them separately for each network element deployment template. These deployment parameters are default deployment parameters. In an embodiment of the present invention, if the default values used by the default deployment parameters in the network element deployment template do not meet the requirements, the user can change the default values of the default deployment parameters in the network element deployment template.
[0114] As an example, since the default deployment parameters are the same between different cloud platforms, the configuration of the default deployment parameters in the network element deployment template can be implemented through a unified default parameter configuration file. In this case, the user can change the default values of the default deployment parameters by modifying the default parameter configuration file.
[0115] If the fields in the network element deployment template, for example, the attribute name tags in the above embodiment, or the already filled fields, such as the fields for representing the specific information categories of attribute information or topological relationship information, do not meet the requirements, the user can also modify the corresponding fields in the network element deployment template. Specifically, the user can modify the text used in these fields, or modify their positions and arrangement methods.
[0116] In an embodiment of the present invention, the configured network element deployment template can be updated based on the modification of the network element deployment template by the user, and through the steps in the aforementioned embodiment of the present invention, a network element deployment template adapted to the target cloud platform is obtained based on the updated network element deployment template. Thus, the embodiment of the present invention updates the configured network element deployment template based on the modification of the network element deployment template by the user, and can be quickly applied to different scenario requirements, and differentially generate network element deployment templates adapted to the target cloud platform, without the need to configure network element deployment templates for different specific requirements.
[0117] Figure 3 This is a working operation flow chart of the method for constructing a network element deployment template for a cloud platform provided by an embodiment of the present invention. Figure 3 The embodiments of the present invention are further described.
[0118] Specifically, when the method for constructing a network element deployment template for a cloud platform according to an embodiment of the present invention is applied, the construction of the network element deployment template, i.e., the visualization process, may specifically include the following steps:
[0119] Step S311: The user imports the model file into the UI (User Interface) view.
[0120] Specifically, the user can implement the import of the model file by interacting with the UI view. The model file is specifically the network element deployment planning information in the embodiment of the present invention.
[0121] Step S312: The model parser parses the model file.
[0122] Specifically, the model parser can convert the manually planned network element deployment planning information into a network element deployment template, or convert the network element deployment template into a preset data exchange format, for example, the network element deployment template can be a TOSCA template. The specific method of converting the network element deployment planning information into the network element deployment template can refer to the content of the aforementioned embodiment of the present invention.
[0123] In the embodiment of the present invention, the network element deployment planning information can be converted into a network element deployment template through a model parser, and the network element deployment template can be converted into network topology resource information in a preset data exchange format, such as a JSON format.
[0124] Step S313: The model parser returns the parsed resource information to the constructor.
[0125] Specifically, the model parser can return the parsed topology resource information to the constructor. The constructor can be specifically understood as the constructor used in the programming process. When the network topology resource information is specifically in JSON format, the constructor is specifically a general component that traverses the JSON configuration file and generates component rendering logic.
[0126] Step S314: The constructor publishes information to the node template.
[0127] Specifically, the constructor publishes the network topology resource information to a predefined node template.
[0128] Step S315: The node template performs data binding / transfer / display.
[0129] Specifically, after receiving the network topology resource information released by the constructor, the node template will perform data binding and transmission based on the attribute information of the network element nodes and the relationship information between the network element nodes, draw the corresponding network element node visualization image, and display the network element node visualization image through the UI view. The data binding and transmission process can refer to the description in the aforementioned embodiment of the present invention.
[0130] When applying the method for constructing a network element deployment template for a cloud platform according to an embodiment of the present invention, the attribute information and relationship information can be read in the network element node visualization image through the following steps:
[0131] Step S321: The user triggers the graphic.
[0132] Specifically, when a user views a network element node visualization image through a UI interface, the user can interact with the node visualization image by clicking on a view therein.
[0133] Step S322: The UI view obtains node binding information.
[0134] As mentioned above, the network element node visualization image is specifically obtained by binding the network element topology resource information to the node template. Therefore, in an embodiment of the present invention, when the user triggers the graphic corresponding to the network element node in the network element node visualization image, the relevant data bound to the node can be obtained.
[0135] Step S323: The node template returns information to the view.
[0136] Specifically, after obtaining the data corresponding to the graphic triggered by the user, the node template can return the obtained data to the UI view. Figure 2For example, if the user triggers the graph corresponding to the node udm.hss_glb, the node template can return the data bound to the graph to the UI view, for example, Figure 2 The basic information of the node udm.hss_glb, and the related information of the computing unit and the storage unit are shown in FIG.
[0137] Step S324: The user views the information.
[0138] After the node template returns information to the UI view, the user can view the attribute information and relationship information related to the network element node on the UI view.
[0139] When applying the method for constructing a network element deployment template for a cloud platform according to an embodiment of the present invention, the network element node visualization image may also be modified in real time through the following steps:
[0140] Step S331: The user updates the UI view.
[0141] Specifically, the user can modify the attribute information of the network element node displayed in the UI view, for example, Figure 2 The basic information of the node udm.hss_glb, and the related attribute information of the computing unit and the storage unit are shown in.
[0142] Step S332: The UI view sends updated resource information to the model parser.
[0143] Specifically, the UI view can respond to the modification made by the user based on the network element node visualization image, synchronize the modification to the network topology resource information, and send the updated topology resource information to the model parser. After the model parser obtains the updated topology resource information, it can return the updated topology resource information to the constructor, obtain the updated network element node visualization image through steps S314-S315, and display the updated network element node visualization image through the UI view.
[0144] Furthermore, after the user completes the adjustment and verification of the deployment information based on the network element node visualization image, the model parser can also perform format conversion on the updated network topology resource information to obtain an updated network element deployment template.
[0145] When applying the method for constructing a network element deployment template for a cloud platform according to an embodiment of the present invention, the network element deployment model may also be exported through the following steps:
[0146] Step S341: The user issues an export template instruction through the UI view.
[0147] Specifically, when the user needs to obtain the network element deployment template corresponding to the input network element deployment planning information, an export template instruction can be issued through the UI view to obtain the corresponding network element deployment template.
[0148] Step S342: The model parser generates a template file.
[0149] Specifically, the process of generating a template file, ie, a network element deployment template, may refer to the aforementioned steps S311-S312, which will not be described in detail here.
[0150] Step S343: The model parser notifies the completion of template generation through the UI view.
[0151] Specifically, after the above steps S311-S312, when the model parser converts the network element deployment planning information imported by the user into a network element deployment template, the model parser can return notification information through the UI view to inform the user that the generation of the network element deployment template is complete.
[0152] After the user sees the notification information that the model generation is completed through the UI view, the network element deployment template can be downloaded to the specified software directory, so that the user can subsequently perform tasks such as network element deployment based on the network element deployment template.
[0153] Based on the above content, it can be seen that the method for constructing a network element deployment template for a cloud platform provided by an embodiment of the present invention can quickly realize the information adjustment and production process of the network element deployment template, and can display the deployment information in a graphical manner, so as to more intuitively verify the accuracy of the network element deployment information. In addition, the method for constructing a network element deployment template for a cloud platform provided by an embodiment of the present invention has a wide range of applicability. Specifically, when it is necessary to apply to different scenario requirements or add deployment information, it can be achieved by modifying or expanding the network element deployment planning information. When the default deployment information needs to be modified, it can be achieved by modifying the default parameter configuration file.
[0154] Based on the same inventive concept, an embodiment of the present invention further provides an electronic device, see Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, wherein the electronic device includes a memory 401, a transceiver 402, and a processor 403:
[0155] The memory 401 is used to store computer programs; the transceiver 402 is used to send and receive data under the control of the processor 403; the processor 403 is used to read the computer program in the memory and perform the following operations:
[0156] Acquire network element deployment planning information, where the network element deployment planning information includes fields for characterizing attribute information of network element nodes and topological relationship information between network element nodes;
[0157] Matching the field with the characteristic fields in the network element deployment templates respectively configured for multiple cloud platforms to determine the target network element deployment template of the target cloud platform; wherein the field includes any characteristic field in the target network element deployment template;
[0158] The attribute name of each field is matched with the attribute name label of each position to be filled in the target network element deployment template, the target filling position of each field is determined, and the attribute value of the field is filled into the target filling position to obtain a network element deployment template adapted to the target cloud platform.
[0159] Among them, Figure 4 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 403 and various circuits of memory represented by memory are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 402 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, which transmission medium may include a wireless channel, a wired channel, an optical cable, and other transmission media. The processor 403 is responsible for managing the bus architecture and general processing, and the memory 401 may store data used by the processor 403 when performing operations.
[0160] The processor 403 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD). The processor may also adopt a multi-core architecture.
[0161] The electronic device provided in the embodiment of the present invention is applied to construct a network element deployment template. After obtaining the network element deployment planning information, the target network element deployment template of the target cloud platform is determined based on the fields in the network element deployment planning information and the characteristic fields in the network element deployment template. Then, the attribute values of the fields used to characterize the attribute information of the network element nodes and the topological relationship information between the network element nodes in the network element deployment planning information are filled into the target filling position in the target network element deployment template to obtain a network element deployment template adapted to the target cloud platform, so that the network element deployment planning information corresponding to the cloud platforms of different manufacturers can be flexibly connected, which greatly improves the deployment efficiency, accuracy and compatibility of network elements on cloud platforms of different manufacturers, and reduces the deployment difficulty and deployment cost.
[0162] In one embodiment of the present invention, the processor 403 is further configured to read the computer program in the memory and perform the following operations:
[0163] After obtaining the network element deployment template adapted to the target cloud platform, the network element deployment template is converted into a format to obtain network topology resource information in a preset data exchange format;
[0164] Visualize the network topology resource information to obtain a visualization image of the network element node.
[0165] In one embodiment of the present invention, the processor 403 is further configured to read the computer program in the memory and perform the following operations:
[0166] In response to the modification of the visualization image of the network element node, the network topology resource information is updated; the modification includes the modification of the attribute information of the network element node;
[0167] The updated network topology resource information is visualized to obtain an updated network element node visualization image, and / or the updated network topology resource information is formatted to obtain an updated network element deployment template.
[0168] In one embodiment of the present invention, the network topology resource information is visualized to obtain a network element node visualization image, which specifically includes:
[0169] Get a predefined node drawing template, which is used to specify the drawing format of the node unit;
[0170] Based on the node drawing template, create the node unit corresponding to the network element node, render the node attributes of the node unit based on the attribute information of the network element node in the network topology resource information, render the relationship lines between the node units based on the topological relationship information between the network element nodes in the network topology resource information, and obtain a visualization image of the network element node.
[0171] In one embodiment of the present invention, the processor 403 is further configured to read the computer program in the memory and perform the following operations:
[0172] In response to the modification of the network element deployment template, the network element deployment template is updated to obtain an updated network element deployment template; wherein the modification of the network element deployment template includes modification of default deployment parameters in the network element deployment template and / or modification of fields in the network element deployment template.
[0173] Based on the same inventive concept, the embodiment of the present invention also provides a device for constructing a network element deployment template for a cloud platform, see Figure 5 , the device comprises:
[0174] An acquisition module 501 is used to acquire network element deployment planning information, where the network element deployment planning information includes fields for characterizing attribute information of network element nodes and topological relationship information between network element nodes;
[0175] A matching module 502 is used to match the field with the characteristic fields in the network element deployment templates configured for multiple cloud platforms respectively, and determine the target network element deployment template of the target cloud platform; wherein the field includes any characteristic field in the target network element deployment template;
[0176] Filling module 503 is used to match the attribute name of each field with the attribute name label of each to-be-filled position in the target network element deployment template, determine the target filling position of each field, and fill the attribute value of the field into the target filling position to obtain a network element deployment template adapted to the target cloud platform.
[0177] The device for constructing a network element deployment template for a cloud platform provided by an embodiment of the invention configures network element deployment templates for different cloud platforms respectively. After obtaining network element deployment planning information, the target network element deployment template for the target cloud platform is determined based on matching the fields in the network element deployment planning information with the characteristic fields in the network element deployment template. Then, the attribute values of the fields in the network element deployment planning information used to characterize the attribute information of the network element nodes and the topological relationship information between the network element nodes are filled into the target filling position in the target network element deployment template to obtain a network element deployment template adapted to the target cloud platform, thereby being able to flexibly connect to the network element deployment planning information corresponding to the cloud platforms of different manufacturers, greatly improving the deployment efficiency, accuracy and compatibility of network elements on cloud platforms of different manufacturers, and reducing the deployment difficulty and deployment cost.
[0178] In one embodiment of the present invention, the device for constructing a network element deployment template for a cloud platform further includes:
[0179] A conversion module is used to obtain a network element deployment template adapted to the target cloud platform, and then convert the format of the network element deployment template to obtain network topology resource information in a preset data exchange format;
[0180] The processing module is used to visualize the network topology resource information and obtain a visualization image of the network element node.
[0181] In one embodiment of the present invention, the device for constructing a network element deployment template for a cloud platform further includes:
[0182] A first updating module, configured to update the network topology resource information in response to a modification of a visualization image of a network element node; the modification includes a modification of attribute information of the network element node;
[0183] The processing module is also used to perform visualization processing on the updated network topology resource information to obtain an updated network element node visualization image, and / or to perform format conversion on the updated network topology resource information to obtain an updated network element deployment template.
[0184] In one embodiment of the present invention, the processing module is specifically used to:
[0185] Get a predefined node drawing template, which is used to specify the drawing format of the node unit;
[0186] Based on the node drawing template, create the node unit corresponding to the network element node. Based on the attribute information of the network element node in the network topology resource information, render the node attributes of the node unit. Based on the topological relationship information between the network element nodes in the network topology resources, render the relationship lines between the node units to obtain a visualization image of the network element node.
[0187] In one embodiment of the present invention, the device for constructing a network element deployment template for a cloud platform further includes:
[0188] The second update module is used to update the network element deployment template in response to the modification of the network element deployment template to obtain the updated network element deployment template; wherein the modification of the network element deployment template includes the modification of the default deployment parameters in the network element deployment template and / or the modification of the fields in the network element deployment template.
[0189] In another embodiment provided by the present invention, a computer-readable storage medium is also provided, which stores a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned methods for constructing a network element deployment template for a cloud platform are implemented.
[0190] In another embodiment provided by the present invention, a computer program product including instructions is also provided. When the computer is run on the computer, the computer executes any method for constructing a network element deployment template for a cloud platform in the above embodiments.
[0191] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0192] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0193] Each embodiment in this specification is described in a related 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 embodiments of the device for constructing the network element deployment template for the cloud platform, the electronic device, and the readable storage medium, 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.
[0194] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for constructing a network element deployment template for a cloud platform, characterized in that: include: Acquire network element deployment planning information, wherein the network element deployment planning information includes fields for characterizing attribute information of network element nodes and topological relationship information between the network element nodes; Matching the field with characteristic fields in network element deployment templates respectively configured for multiple cloud platforms to determine a target network element deployment template for a target cloud platform; wherein the field includes any characteristic field in the target network element deployment template; Match the attribute name of each field with the attribute name label of each to-be-filled position in the target network element deployment template, determine the target filling position of each field, and fill the attribute value of the field into the target filling position to obtain a network element deployment template adapted to the target cloud platform.
2. The method according to claim 1, characterized in that Also includes: After obtaining a network element deployment template adapted to the target cloud platform, converting the format of the network element deployment template to obtain network topology resource information in a preset data exchange format; The network topology resource information is visualized to obtain a visualization image of a network element node.
3. The method according to claim 2, characterized in that The node visualization image is an interactive image, and the method further includes: In response to the modification of the visualization image of the network element node, the network topology resource information is updated; the modification includes modification of attribute information of the network element node; The updated network topology resource information is visualized to obtain an updated network element node visualization image, and / or the updated network topology resource information is formatted to obtain an updated network element deployment template.
4. The method according to claim 2, characterized in that: The step of visualizing the network topology resource information to obtain a visualized image of a network element node includes: Obtain a predefined node drawing template, where the node drawing template is used to specify a drawing format of a node unit; Based on the node drawing template, create the node unit corresponding to the network element node; based on the attribute information of the network element node in the network topology resource information, render the node attributes of the node unit; based on the topological relationship information between the network element nodes in the network topology resource information, render the relationship lines between the node units to obtain a visualization image of the network element node.
5. The method according to any one of claims 1 to 4, characterized in that: Before matching the field with characteristic fields in network element deployment templates respectively configured for multiple cloud platforms to determine a target network element deployment template for a target cloud platform, the method further includes: In response to the modification of the network element deployment template, the network element deployment template is updated to obtain an updated network element deployment template; wherein the modification of the network element deployment template includes modification of default deployment parameters in the network element deployment template, and / or modification of fields in the network element deployment template.
6. An electronic device, characterized in that: Including memory, transceiver, processor: a memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; A processor is configured to read the computer program in the memory and perform the following operations: Acquire network element deployment planning information, wherein the network element deployment planning information includes fields for characterizing attribute information of network element nodes and topological relationship information between the network element nodes; Matching the field with characteristic fields in network element deployment templates respectively configured for multiple cloud platforms to determine a target network element deployment template for a target cloud platform; wherein the field includes any characteristic field in the target network element deployment template; Match the attribute name of each field with the attribute name label of each to-be-filled position in the target network element deployment template, determine the target filling position of each field, and fill the attribute value of the field into the target filling position to obtain a network element deployment template adapted to the target cloud platform.
7. The electronic device according to claim 6, characterized in that: The processor is further configured to read the computer program in the memory and perform the following operations: After obtaining a network element deployment template adapted to the target cloud platform, converting the format of the network element deployment template to obtain network topology resource information in a preset data exchange format; The network topology resource information is visualized to obtain a visualization image of a network element node.
8. The electronic device according to claim 7, characterized in that: The node visualization image is an interactive image, and the processor is further configured to read the computer program in the memory and perform the following operations: In response to the modification of the visualization image of the network element node, the network topology resource information is updated; the modification includes modification of attribute information of the network element node; The updated network topology resource information is visualized to obtain an updated network element node visualization image, and / or the updated network topology resource information is formatted to obtain an updated network element deployment template.
9. The electronic device according to claim 7, characterized in that: The visualizing of the network topology resource information to obtain a visualized image of a network element node specifically includes: Obtain a predefined node drawing template, where the node drawing template is used to specify a drawing format of a node unit; Based on the node drawing template, create the node unit corresponding to the network element node; based on the attribute information of the network element node in the network topology resource information, render the node attributes of the node unit; based on the topological relationship information between the network element nodes in the network topology resource information, render the relationship lines between the node units to obtain a visualization image of the network element node.
10. The electronic device according to any one of claims 6 to 9, characterized in that: The processor is further configured to read the computer program in the memory and perform the following operations: In response to the modification of the network element deployment template, the network element deployment template is updated to obtain an updated network element deployment template; wherein the modification of the network element deployment template includes modification of default deployment parameters in the network element deployment template, and / or modification of fields in the network element deployment template.
11. A device for constructing a network element deployment template for a cloud platform, characterized in that: include: An acquisition module, used to acquire network element deployment planning information, wherein the network element deployment planning information includes fields for characterizing attribute information of network element nodes and topological relationship information between the network element nodes; A matching module, used to match the field with characteristic fields in network element deployment templates respectively configured for multiple cloud platforms, and determine a target network element deployment template of a target cloud platform; wherein the field includes any characteristic field in the target network element deployment template; A filling module is used to match the attribute name of each field with the attribute name label of each to-be-filled position in the target network element deployment template, determine the target filling position of each field, and fill the attribute value of the field into the target filling position to obtain a network element deployment template adapted to the target cloud platform.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 5 are implemented.