Disclosure of Invention
Aiming at the problems that in the prior art, in the machine room renting process and the configuration information generation process, data is huge, manual operation is completely depended on, the manual workload is large, the efficiency is low and the error rate is high, the method and the system for realizing the quick online of the service based on the SDN frame renting scene are provided, and the technical problem is solved to a certain extent
The above object of the present application is achieved by the following technical solutions:
in a first aspect, an embodiment of the present application provides a method for implementing a quick online service based on a rental scene of an SDN rack, including:
acquiring a corresponding relation between a server and a switch port through an LLDP function, generating a corresponding relation table, and inputting the corresponding relation table into a preset database platform;
receiving online information submitted by a business online party;
the online information corresponds to the corresponding relation table to generate network configuration information;
and issuing the network configuration information to a switch through a preset SDN controller.
Optionally, the online information includes: host name, environment classification information and service network segment information.
Optionally, the issuing the network configuration to the switch by using the preset SDN controller includes:
calling an SDN API interface;
and issuing the network configuration to the switch machine through the SDN API.
Optionally, the preset database platform includes a CMDB platform.
Optionally, the service network segment information includes virtual machine change information.
In a second aspect, an embodiment of the present application provides a system for implementing quick online of a service based on a rental scenario of an SDN chassis, including:
the acquisition module is used for acquiring the corresponding relation between the server and the port of the switch and acquiring the online information submitted by the service online party;
the generating module is used for generating network configuration information based on the correspondence between the online information and the corresponding relation table;
and the issuing module is used for issuing the network configuration information to the switch.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the technical scheme provided by the embodiment of the application, firstly, the corresponding relation between a server and a switch port is obtained through an LLDP function, a corresponding relation table is generated, and the corresponding relation table is input into a preset database platform; then, receiving online information submitted by a business online party; the online information corresponds to the corresponding relation table to generate network configuration information; and finally, issuing the network configuration information to a switch through a preset SDN controller. Therefore, by the method for realizing the rapid online of the service based on the renting scene of the SDN rack, which is provided by the embodiment of the application, the corresponding relation between the server and the port of the switch can be accurately obtained through LLDP, and the system is entered without manual maintenance; meanwhile, automatic issuing is realized by calling the API interface of the controller, manual maintenance is not needed, automation is realized, working efficiency is improved, the data error rate is reduced, and when the machine room is rented, the service is quickly on-line.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Fig. 1 is a schematic flowchart of a method for implementing a fast service online based on an SDN rack rental scene in an embodiment of the present application, and as shown in fig. 1, the method for implementing a fast service online based on an SDN rack rental scene in an embodiment of the present application includes:
s101, acquiring a corresponding relation between a server and a switch port through an LLDP function, generating a corresponding relation table, and inputting the corresponding relation table into a preset database platform;
specifically, the server switch is completely opened with an LLDP function, the corresponding relationship between the server and the switch port can be accurately obtained through the LLDP, a corresponding relationship table is generated, and the corresponding relationship table is output and input to a preset database platform for recording and storing. In practical application, the database platform may specifically adopt a CMDB platform, and the corresponding relationship between the server and the switch port is output and entered into the CMDB platform, and data recording and storage are performed.
Before data is output, the format of the data may be uniformly defined, so that the data is more accurate and efficient when being used and stored, for example, the format of the relationship correspondence table may be defined as: "switch name-switch port-host name".
S102, receiving online information submitted by a business online party;
specifically, the business online party submits online information, that is, the content of the online work order of the asset submission machine, and the online information and the content of the work order may include information such as host name/environment classification (VPC)/business segment (virtual switch)/VLAN.
S103, corresponding the online information to the corresponding relation table to generate network configuration information;
specifically, after the online information is submitted, the online information needs to be matched with the relationship correspondence table, that is, the submitted online information matches the correspondence table entered by the CMDB, so as to generate the online network configuration information of the service.
S104, issuing the network configuration information to a switch through a preset SDN controller;
specifically, after the online information is matched with the corresponding relation table and the network configuration is generated, the network configuration resource needs to be issued to the switch, and in practical application, the service flash network configuration information can be issued to the switch by calling an API interface through the SDN controller.
According to the method for realizing the rapid online of the service based on the renting scene of the SDN rack, the corresponding relation between a server and a switch port is obtained through an LLDP function, a corresponding relation table is generated, and the corresponding relation table is input into a preset database platform; then, receiving online information submitted by a business online party; the online information corresponds to the corresponding relation table to generate network configuration information; and finally, issuing the network configuration information to a switch through a preset SDN controller. Therefore, a large number of tables do not need to be manually maintained, network configuration of service online can be rapidly and accurately issued, manual operation amount is reduced, efficiency is improved, and error rate is reduced.
Fig. 2 is a flowchart illustrating a method for implementing a service fast online based on an SDN rack rental scene according to another embodiment of the present application, and as shown in fig. 2, the method for implementing a service fast online based on an SDN rack rental scene provided in this embodiment includes:
firstly, the server switch is completely opened with an LLDP function, and the CMDB acquires the corresponding shutdown of the server and the switch port through the LLDP, namely the name of the switch, the port of the switch and the name of a host; then submitting online work order content of the machine by the assets, wherein the content can comprise host names, environment classification (VPC), service network segments (virtual switch), VLAN and the like; after all the issued configuration information is provided, namely the issued configuration information comprises a corresponding relation table and work order content, issuing the configuration information by calling an SDN API (software defined network API) interface; and finally, the offline content of the asset submission machine is realized.
Based on the same inventive concept, the present application further provides a system for implementing a quick service online based on an SDN rack rental scene, fig. 3 is a schematic structural diagram of the system for implementing a quick service online based on an SDN rack rental scene, shown in fig. 3, the system for implementing a quick service online based on an SDN rack rental scene provided in the embodiment of the present application includes:
an obtaining module 301, configured to obtain a correspondence between a server and a switch port and obtain online information submitted by a service online party;
a generating module 302, configured to generate network configuration information based on correspondence between the online information and the corresponding relationship table;
the issuing module 303 is configured to issue the network configuration information to the switch.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.