CN109471970A - Network inquiry method, apparatus and storage medium in a kind of virtual management platform - Google Patents
Network inquiry method, apparatus and storage medium in a kind of virtual management platform Download PDFInfo
- Publication number
- CN109471970A CN109471970A CN201811381494.7A CN201811381494A CN109471970A CN 109471970 A CN109471970 A CN 109471970A CN 201811381494 A CN201811381494 A CN 201811381494A CN 109471970 A CN109471970 A CN 109471970A
- Authority
- CN
- China
- Prior art keywords
- network
- information
- inquiry
- subnet
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses network inquiry method, apparatus and storage mediums in a kind of virtual management platform, are able to solve the inquiry network information and return to slow problem.The described method includes: receiving network inquiry order, extended network interface is called to carry out network inquiry, returns to the network information including subnet information field.Using the embodiment of the present invention, provide a kind of data query prioritization scheme, on the basis of not changing virtual platform intrinsic framework, it is modified by the RESTful API to neutron network, define privately owned API, it is slow to solve the problems, such as that the inquiry network information returns, improves the ease for use of virtual management platform, third-party platform is made preferably to be compatible with openstack neutron network.
Description
Technical field
The present invention relates to computer technology, network inquiry method, apparatus and storage in espespecially a kind of virtual management platform
Medium.
Background technique
Virtual management platform generally comprises calculating, storage, three broad aspect of network, SDN (Software Defined
Networks, software defined network) it is a kind of novel transmission via net framework, by the way that plane and data planar separation will be controlled,
Realize the flexible control of network flow.Due to the appearance of SDN, the networking component of virtual management platform needs the function of integrated SDN
Energy.For the integrated of SDN, virtual management platform generally uses the open source neutron networking component of openstack,
Neutron component shifting value is into virtual management platform.It manages platform and passes through the RESTful api interface portion of calling neutron
Affix one's name to SDN business, the information such as Configuration network/subnet.But due to the limitation of neutron interface, when need to show the network of SDN/
When the configuration informations such as subnet, the information of return is imperfect, needs repeatedly to inquire, causes the search efficiency of information slower.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides network inquiry methods, dress in a kind of virtual management platform
It sets and storage medium, is able to solve the inquiry network information and returns to slow problem.
It is described the present invention provides a kind of network inquiry method in virtual management platform in order to reach the object of the invention
Method includes:
Network inquiry order is received, extended network interface is called to carry out network inquiry, returning includes subnet information field
The network information.
In a kind of exemplary embodiment, the calling extended network interface carries out network inquiry, and returning includes that subnet is believed
Cease the network information of field, comprising:
Openstack4j calls RESTful api interface to carry out network inquiry, obtains Xiang Suoshu after query result
Openstack4j returns to the network information including subnet information field.
In a kind of exemplary embodiment, the extended network interface, comprising: according to pre-set policy definition
Extended network interface.
In a kind of exemplary embodiment, the subnet information field, including one or more of:
Subnet name network field information, subnet id information.
In order to reach the object of the invention, the present invention also provides network inquiry device in a kind of virtual management platform,
It is characterized in that, described device includes receiving module, calling module and return module, in which:
The receiving module, for receiving network inquiry order;
The calling module, for calling extended network interface to carry out network inquiry;
The return module, for returning to the network information including subnet information field.
In a kind of exemplary embodiment, the calling module calls extended network interface to carry out network inquiry, returns to mould
Block returns to the network information including subnet information field, comprising:
The calling module calls RESTful api interface to carry out network inquiry, after obtaining query result, the return mould
Block returns to the network information including subnet information field.
In a kind of exemplary embodiment, described device further includes definition module, and the definition module is used for extended network
Interface;
The extended network interface includes: definition module extended network interface according to pre-set policy definition.
In a kind of exemplary embodiment, the subnet information field, including one or more of:
Subnet name network field information, subnet id information.
In order to reach the object of the invention, the present invention also provides a kind of computer readable storage mediums, are stored thereon with meter
Calculation machine program, which is characterized in that the step of above method is realized when the program is executed by processor.
In order to reach the object of the invention, the present invention also provides a kind of computer equipment, including memory, processor and
Store the computer program that can be run on a memory and on a processor, which is characterized in that the processor executes the journey
The step in the above method is realized when sequence.
Compared with prior art, the present invention includes receiving network inquiry order, and extended network interface is called to carry out network
Inquiry returns to the network information including subnet information field.A kind of data query prioritization scheme, it is solid not changing virtual platform
On the basis of having framework, is modified by the RESTful API to neutron network, define privately owned API, solve inquiry
The network information returns to slow problem, improves the ease for use of virtual management platform, is compatible with third-party platform preferably
Openstack neutron network.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right
Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this
The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow chart of network inquiry method in the virtual management platform of the embodiment of the present invention one;
Fig. 2 is another flow chart of network inquiry method in the virtual management platform of the embodiment of the present invention two;
Fig. 3 is the structural schematic diagram of network inquiry device in the virtual management platform of the embodiment of the present invention three;
Fig. 4 is the structural schematic diagram of the computer equipment of the embodiment of the present invention three.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions
It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable
Sequence executes shown or described step.
Embodiment one
A kind of network inquiry method in virtual management platform is present embodiments provided, as shown in Figure 1, this method includes
S11-S13:
S11, network inquiry order is received;
S12, extended network interface is called to carry out network inquiry;
S13, the network information including subnet information field is returned.
In the embodiment of the present invention, network interface is optimized, does not need that inquiry knot can be returned by repeatedly inquiring
Fruit improves the search efficiency of virtual management platform.
Wherein, the RESTful in open source neutron networking component that the application programming interfaces API is openstack
Api interface;
Existing be api interface is networks, and customized api interface is extendnetworks, is passed through
Extendnetworks carries out network inquiry.
In a kind of exemplary embodiment, the calling extended network interface carries out network inquiry, and returning includes that subnet is believed
Cease the network information of field, comprising:
Openstack4j calls RESTful api interface to carry out network inquiry, obtains Xiang Suoshu after query result
Openstack4j returns to the network information including subnet information field.
In a kind of exemplary embodiment, the extended network interface, comprising: according to pre-set policy definition
Extended network interface.
In a kind of exemplary embodiment, the subnet information field, including one or more of:
Subnet name network field information, subnet id information.
In a kind of exemplary embodiment, subnet information field can also include the letter such as IP address, subnet mask, gateway
Breath;
The extended network interface includes one or more of:
Safe group interface, router interface and firewall interface;
Safe group interface: the name of secure group cited in secure group rule;
Router interface: the subnet title being added in router;
Firewall interface: the security strategy title quoted in firewall.
Field information is returned by increasing on the return field information of existing API come customized API, for example,
Increase the field information subnet_infos field of return on original field basis of existing api interface.
In the embodiment of the present invention, network inquiry order is received, extended network interface is called to carry out network inquiry, returns to packet
The network information of enclosed tool net information field.On the basis of virtual management plateform system, a kind of data query optimization is provided
Scheme is repaired on the basis of not changing virtual platform intrinsic framework by the RESTful API to neutron network
Change, define privately owned API, it is slow to solve the problems, such as that the inquiry network information returns, improves the ease for use of virtual management platform, makes
Third-party platform is preferably compatible with openstack neutron network.
Embodiment two
Above-described embodiment method is specifically described in the present embodiment.
Open source openstack framework is all employed inside the more popular virtual platform framework of industry at present,
Secondary development is carried out on the basis of openstack platform, is configured using the RESTful api interface that openstack is provided.
When virtual management platform carries out data displaying by the page, need that query interface is called to be shown.The speed of inquiry is
Assess an important indicator of cloud platform performance.
When openstack neutron networking component is integrated into virtual platform system, virtual platform use is opened
The openstack4j in source is called the RESTful api interface that neutron is provided.If to neutron network
In the case that RESTful api interface is not modified, inquiry is slower, especially in the case where big data quantity.
As shown in Fig. 2, using the process flow of virtual management platform inquiry neutron network data, including following step
It is rapid:
(1) virtual platform page interrogation network data;
(2) virtual platform calls Openstack4j inquiry;
(3) Openstack4j calls the inquiry of neutron-server REST API query interface;
(4) neutron-server returns to query result to Openstack4j;
(5) Openstack4j parses data and returns to virtual platform;
(6) virtual platform returns data to the page and is shown.
Wherein, the neutron-server REST api interface of the calling is extended network interface;
For example, existing subnets field only returns to the id letter of subnet by taking the network information that neutron is returned as an example
Breath, there is no name is returned, page presentation, which generally requires, shows name rather than id, if it is desired to obtain name, it is also necessary to logical
The id for crossing subnet removes inquiry name, and in this way in the case where there is multiple subnet, search efficiency is slower.
The network field information that the RESTful api interface networks for the inquiry network that neutron is provided is returned are as follows:
Subnets field therein only returns to the id information of subnet, and there is no return to name information.To the field of return
Information is expanded, comprising: increases subnet_infos field on the basis of original field, subnet_infos field includes
Id and name;Define the privately owned RESTful api interface extendnetworks of neutron;
Extendnetworks interface is called by modifying above, obtains subnet_infos parsing result, it is virtual in this way
Change the return of platform page invocation openstack neutron interface is the network information with subnet title, is not needed again
The title for inquiring subnet separately through subnet id is gone, the page is returned to, the corresponding name information of id information can be obtained.
The search efficiency of virtual management platform can be improved in the above method.Assuming that a network contains 100
Subnet, inquiry obtain id information and need one query, are obtaining corresponding name information according to id information, are needing to look into for 100 times
It askes (according to the corresponding name information of the id acquisition of information of each subnet), all information can just be obtained by amounting to 101 times, be optimized
While obtaining id information afterwards, name information can be obtained, therefore only need to carry out one query.
Embodiment three
Network inquiry device in a kind of virtual management platform is present embodiments provided, is described in above method embodiment
It is applicable in this present embodiment, as shown in figure 3, it includes receiving module 31, calling module 32 and return module 33 that this, which states device,
In:
The receiving module 31, for receiving network inquiry order;
The calling module 32, for calling extended network interface to carry out network inquiry;
The return module 33, for returning to the network information including subnet information field.
In a kind of exemplary embodiment, the calling module 32 calls extended network interface to carry out network inquiry, returns
Module 33 returns to the network information including subnet information field, comprising:
The calling module 32 calls RESTful api interface to carry out network inquiry, after obtaining query result, the return
Module 33 returns to the network information including subnet information field.
In a kind of exemplary embodiment, described device further includes definition module 34, and the definition module 34 is for extending
Network interface;
The extended network interface includes: definition module extended network interface according to pre-set policy definition.
In a kind of exemplary embodiment, the subnet information field, including one or more of:
Subnet name network field information, subnet id information.
The embodiment of the present invention also provides a kind of computer storage medium, and the computer storage medium is stored with computer journey
Sequence;After the computer program is performed, network inquiry side in the virtual management platform of previous embodiment offer can be realized
Method, for example, executing method as shown in Figure 1.
The embodiment of the present invention also provides a kind of computer equipment, can be structure as shown in Figure 4, including processor
41, memory 42 and storage on a memory and the computer program that can run on a processor, processor execution institute
Part or Overall Steps in embodiment one or embodiment two can be realized when stating program.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove
Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment,
Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one
Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups
Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by
It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable
On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily
Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as
Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non-
Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its
His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other
Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This
Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould
Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information
Delivery media.
Claims (10)
1. a kind of network inquiry method in virtual management platform, which is characterized in that the described method includes:
Network inquiry order is received, extended network interface is called to carry out network inquiry, returns to the net including subnet information field
Network information.
2. being returned the method according to claim 1, wherein the calling extended network interface carries out network inquiry
Return the network information including subnet information field, comprising:
Openstack4j calls RESTful api interface to carry out network inquiry, obtains Xiang Suoshu after query result
Openstack4j returns to the network information including subnet information field.
3. the method according to claim 1, wherein the extended network interface, comprising: according to pre-set
Extended network interface described in policy definition.
4. the method according to claim 1, wherein the subnet information field, including one or more of:
Subnet name network field information, subnet id information.
5. network inquiry device in a kind of virtual management platform, which is characterized in that described device includes receiving module, calls mould
Block and return module, in which:
The receiving module, for receiving network inquiry order;
The calling module, for calling extended network interface to carry out network inquiry;
The return module, for returning to the network information including subnet information field.
6. the apparatus according to claim 1, which is characterized in that the calling module calls extended network interface to carry out network
Inquiry, return module return to the network information including subnet information field, comprising:
The calling module calls RESTful api interface to carry out network inquiry, and after obtaining query result, the return module is returned
Return the network information including subnet information field.
7. the apparatus according to claim 1, which is characterized in that described device further includes definition module, the definition module
For extended network interface;
The extended network interface includes: definition module extended network interface according to pre-set policy definition.
8. the apparatus according to claim 1, which is characterized in that the subnet information field, including one or more of:
Subnet name network field information, subnet id information.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The step of any one of claim 1-4 the method is realized when row.
10. a kind of computer equipment, can run on a memory and on a processor including memory, processor and storage
Computer program, which is characterized in that realize that any one of claim 1-4 right such as is wanted when the processor executes described program
Seek the step in the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811381494.7A CN109471970A (en) | 2018-11-20 | 2018-11-20 | Network inquiry method, apparatus and storage medium in a kind of virtual management platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811381494.7A CN109471970A (en) | 2018-11-20 | 2018-11-20 | Network inquiry method, apparatus and storage medium in a kind of virtual management platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109471970A true CN109471970A (en) | 2019-03-15 |
Family
ID=65673095
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811381494.7A Pending CN109471970A (en) | 2018-11-20 | 2018-11-20 | Network inquiry method, apparatus and storage medium in a kind of virtual management platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109471970A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111399775A (en) * | 2020-03-12 | 2020-07-10 | 山东汇贸电子口岸有限公司 | Resource cleaning method and system based on OpenStack environment |
CN114666161A (en) * | 2022-04-29 | 2022-06-24 | 深信服科技股份有限公司 | Component security policy management method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102868997A (en) * | 2011-07-06 | 2013-01-09 | 中兴通讯股份有限公司 | Local gateway information processing method and device |
CN103220285A (en) * | 2013-04-10 | 2013-07-24 | 中国科学技术大学苏州研究院 | Access system based on RESTful interface in ubiquitous service environment |
US8688677B2 (en) * | 2010-05-20 | 2014-04-01 | Digiting, Inc. | Search-highlighter system and method |
CN104714973A (en) * | 2013-12-17 | 2015-06-17 | 航天信息股份有限公司 | Method and device for processing query statements |
CN105468709A (en) * | 2015-11-19 | 2016-04-06 | 中国建设银行股份有限公司 | Data inquiry device and data inquiry method based on HBase |
-
2018
- 2018-11-20 CN CN201811381494.7A patent/CN109471970A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8688677B2 (en) * | 2010-05-20 | 2014-04-01 | Digiting, Inc. | Search-highlighter system and method |
CN102868997A (en) * | 2011-07-06 | 2013-01-09 | 中兴通讯股份有限公司 | Local gateway information processing method and device |
CN103220285A (en) * | 2013-04-10 | 2013-07-24 | 中国科学技术大学苏州研究院 | Access system based on RESTful interface in ubiquitous service environment |
CN104714973A (en) * | 2013-12-17 | 2015-06-17 | 航天信息股份有限公司 | Method and device for processing query statements |
CN105468709A (en) * | 2015-11-19 | 2016-04-06 | 中国建设银行股份有限公司 | Data inquiry device and data inquiry method based on HBase |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111399775A (en) * | 2020-03-12 | 2020-07-10 | 山东汇贸电子口岸有限公司 | Resource cleaning method and system based on OpenStack environment |
CN114666161A (en) * | 2022-04-29 | 2022-06-24 | 深信服科技股份有限公司 | Component security policy management method, device, equipment and storage medium |
CN114666161B (en) * | 2022-04-29 | 2024-04-09 | 深信服科技股份有限公司 | Component security policy management method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11646940B2 (en) | Intent driven network policy platform | |
CN112771820B (en) | Differentiated services within a service grid | |
CN103026660B (en) | Network policy configuration method, management equipment and network management centre device | |
Zhou et al. | Network virtualization and resource description in software-defined wireless networks | |
US10984048B2 (en) | Efficient graph database traversal | |
US11481441B2 (en) | Graph database query pagination | |
CN108702316A (en) | A kind of resource allocation methods and device of VNF | |
US9590855B2 (en) | Configuration of transparent interconnection of lots of links (TRILL) protocol enabled device ports in edge virtual bridging (EVB) networks | |
CN111130825A (en) | Network slice template generation method, device, equipment and storage medium | |
WO2020083315A1 (en) | Method for achieving optical line terminal slicing, storage medium, electronic device, and apparatus | |
CN109471970A (en) | Network inquiry method, apparatus and storage medium in a kind of virtual management platform | |
EP3319270A1 (en) | Service registration method, usage method and relevant apparatus | |
CN106856438A (en) | A kind of method of Network instantiation, device and NFV systems | |
US20180278481A1 (en) | Distributed Policy Store | |
CN110536359A (en) | Network is sliced creation method, device, equipment and storage medium | |
US9641611B2 (en) | Logical interface encoding | |
WO2021121086A1 (en) | Traffic scheduling method, electronic device and storage medium | |
WO2021017907A1 (en) | Method and device for optimized inter-microservice communication | |
US8856342B2 (en) | Efficiently relating adjacent management applications managing a shared infrastructure | |
US10057291B1 (en) | Comparing networking access control lists | |
CN111600849A (en) | Message processing method, device, equipment and machine readable storage medium | |
CN106789655A (en) | The sending method and device of a kind of advertising of route message | |
WO2021071748A1 (en) | Adaptive network slicing via overlaying decomposition and inheritance | |
US20230397039A1 (en) | Combining User and Operator Intents in Network Slice Design | |
US11765651B1 (en) | Federated provisioning on multiple core networks based on unique device identifiers |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190315 |
|
RJ01 | Rejection of invention patent application after publication |