Unlock instant, AI-driven research and patent intelligence for your innovation.

Configuration method of subnet forbidden gateway based on openback4j

A configuration method and gateway technology, applied in the direction of network connection, data exchange network, digital transmission system, etc., can solve the problems of unable to receive the requirement of disabling the gateway, disabling the gateway, etc.

Inactive Publication Date: 2019-10-15
YANGTZE OPTICAL FIBRE & CABLE CO LTD
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] When using the update subnet interface provided by openstack4j to perform the operation of disabling the gateway, it is found that after setting the relevant parameters according to the instructions of the openstack official api, the gateway cannot be successfully disabled after calling the method provided by openstack4j
After capturing the interface parameters of openstack called by openstack4j, it was found that the parameter gateway_id=null used to set the disabled gateway was not passed to the openstack background service, resulting in the background being unable to receive the request to disable the gateway

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Configuration method of subnet forbidden gateway based on openback4j

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0016] Such as figure 1 As shown, a configuration method based on openstack4j subnet disabled gateway,

[0017] The process of the inventive method is when receiving the request that the front desk needs to disable the subnet gateway, when rebuilding and updating the subnet, object parameters need to be passed in, to ensure that openstack4j invokes the API of openstack to update the subnet to perform the parameter value needed when the gateway operation is disabled ( gateway_ip=null) can be passed to the openstack service in the background. Specific steps are as follows:

[0018] Step 1: Create an entity class NoGatewayS...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a configuration method of a subnet forbidden gateway based on openback4j. The method comprises the following steps: 1) monitoring a request that a foreground needs to disable asubnet gateway; after receiving a request that a foreground needs to disable a sub-network gateway, creating an entity class NoGatewaySubnet used for forbidding a subnet gateway, wherein the entity class NoGatewaySubnet inherits an original subnet entity class NeutronSubnet of an openstark4j; 2) adding an instance variable gateway for controlling a forbidden gateway in the entity class NoGatewaySubnet, and adding an instance variable gateway for controlling the forbidden gateway in the entity class NoGateway Subnet; (3) constructing an object of NoGatewaySubnet, and setting the value of an instance variable gateway of a control forbidden gateway in the object to be null, wherein other global variables in the object are set according to the requirement that the gateway is not forbidden; 4) calling a method for updating subnet information provided by openstark4j, and taking the object constructed in the step 3) as a parameter to be transmitted in; and 5) executing the method for updating the subnet information provided by the openstark4j to disable the gateway of the subnet. According to the method disclosed by the invention, the problem of disable of the gateway when the openstark4j does not support updating of the subnet is solved by adding an entity class, and meanwhile, other unpredictable problems are not introduced.

Description

technical field [0001] The invention relates to cloud technology, in particular to a configuration method for disabling gateways of subnets based on openstack4j. Background technique [0002] When adding a virtual network card to the cloud host, there is an application scenario of adding two network cards to the cloud host, one is used for internal network communication, and the other is used for accessing the external network. At this time, if both network cards have default gateways, routing confusion will result. In fact, internal communication does not require a gateway, so it is necessary to disable the gateway of the subnet to achieve the purpose of not using the default gateway when adding an intranet network card. [0003] The bottom layer of the cloud environment uses openstack, and the SDK used by the cloud platform is openstack4j. openstack4j is a java development toolkit that provides a set of java APIs that can manage openstack. The bottom layer is to call the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/24H04L12/66
CPCH04L12/66H04L41/0816
Inventor 郑文海王晓志戴维娇聂磊兰玥
Owner YANGTZE OPTICAL FIBRE & CABLE CO LTD