Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Gateway problem #979

Open
ayberkcal opened this issue Mar 20, 2017 · 0 comments
Open

Disable Gateway problem #979

ayberkcal opened this issue Mar 20, 2017 · 0 comments

Comments

@ayberkcal
Copy link

I have faced the same problem on #599. "gateway_ip" property is not included in request json.
Subnet Builder Code:

Subnet subnet=getSubnetById(subnetId); //getting subnet from OS
SubnetBuilder builder=subnet.toBuilder(); //create builder from existed subnet
builder=builder.noGateway(); //disable subnet gateway
openStackService.client().networking().subnet().update(builder.build()); //send request to OpenStack API

Debug Logs:

PUT /v2.0/subnets/9180b203-d4cb-4c92-9d3c-5b9958b10b82 HTTP/1.1
"{[\r][\n]"
" "subnet" : {[\r][\n]"
" "name" : "subnet name123",[\r][\n]"
" "dns_nameservers" : [ ],[\r][\n]"
" "allocation_pools" : [ {[\r][\n]"
" "start" : "192.164.1.2",[\r][\n]"
" "end" : "192.164.1.254"[\r][\n]"
" } ],[\r][\n]"
" "host_routes" : [ ][\r][\n]"
" }[\r][\n]"
"}"

As you can see "gateway_ip" property is not converted to json. I have debug code. Everything looks fine but samething went wrong when entity converting to json.

vinodborole added a commit that referenced this issue Oct 10, 2018
Fix for issue #979: Disable Gateway problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant