Public bug reported:
We can specify external_gateway_info in the body of router-create api
but there is no such option in the client
API command
$ curl -v -i -X POST -H "X-Auth-Token: $auth_token" -H
"Content-type:application/json" -d '{"router": {"external_gateway_info":
{"network_id": "e9fc4a13-31a1-419e-9be7-53b8eb99e2f9"}, "name":
"router--8574156", "admin_state_up": false}}'
http://10.101.1.40:9696/v2.0/routers
* About to connect() to 10.101.1.40 port 9696 (#0)
* Trying 10.101.1.40...
* Connected to 10.101.1.40 (10.101.1.40) port 9696 (#0)
> POST /v2.0/routers HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 10.101.1.40:9696
> Accept: */*
> X-Auth-Token: 4474c1b7718d4cbd8c138520b308b14f
> Content-type:application/json
> Content-Length: 145
>
* upload completely sent off: 145 out of 145 bytes
< HTTP/1.1 201 Created
HTTP/1.1 201 Created
< Content-Type: application/json; charset=UTF-8
Content-Type: application/json; charset=UTF-8
< Content-Length: 383
Content-Length: 383
< X-Openstack-Request-Id: req-d052a68a-2cb9-481d-b17f-70d050b56b31
X-Openstack-Request-Id: req-d052a68a-2cb9-481d-b17f-70d050b56b31
< Date: Fri, 17 Jul 2015 12:31:35 GMT
Date: Fri, 17 Jul 2015 12:31:35 GMT
<
* Connection #0 to host 10.101.1.40 left intact
{"router": {"status": "ACTIVE", "external_gateway_info": {"network_id":
"e9fc4a13-31a1-419e-9be7-53b8eb99e2f9", "external_fixed_ips": [{"subnet_id":
"1dde980c-94c6-4b35-a9a1-5e1e1dc28efc", "ip_address": "10.101.1.108"}]},
"name": "router--8574156", "admin_state_up": false, "tenant_id":
"90a112852ba84606976607176c1340dd", "routes": [], "id":
"efc9f0ae-fd87-4fc6-8431-01cf76962bac"}}
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1475638
Title:
There is no option to specify external_gateway_info in neutron router-
create command
Status in neutron:
New
Bug description:
We can specify external_gateway_info in the body of router-create api
but there is no such option in the client
API command
$ curl -v -i -X POST -H "X-Auth-Token: $auth_token" -H
"Content-type:application/json" -d '{"router": {"external_gateway_info":
{"network_id": "e9fc4a13-31a1-419e-9be7-53b8eb99e2f9"}, "name":
"router--8574156", "admin_state_up": false}}'
http://10.101.1.40:9696/v2.0/routers
* About to connect() to 10.101.1.40 port 9696 (#0)
* Trying 10.101.1.40...
* Connected to 10.101.1.40 (10.101.1.40) port 9696 (#0)
> POST /v2.0/routers HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 10.101.1.40:9696
> Accept: */*
> X-Auth-Token: 4474c1b7718d4cbd8c138520b308b14f
> Content-type:application/json
> Content-Length: 145
>
* upload completely sent off: 145 out of 145 bytes
< HTTP/1.1 201 Created
HTTP/1.1 201 Created
< Content-Type: application/json; charset=UTF-8
Content-Type: application/json; charset=UTF-8
< Content-Length: 383
Content-Length: 383
< X-Openstack-Request-Id: req-d052a68a-2cb9-481d-b17f-70d050b56b31
X-Openstack-Request-Id: req-d052a68a-2cb9-481d-b17f-70d050b56b31
< Date: Fri, 17 Jul 2015 12:31:35 GMT
Date: Fri, 17 Jul 2015 12:31:35 GMT
<
* Connection #0 to host 10.101.1.40 left intact
{"router": {"status": "ACTIVE", "external_gateway_info": {"network_id":
"e9fc4a13-31a1-419e-9be7-53b8eb99e2f9", "external_fixed_ips": [{"subnet_id":
"1dde980c-94c6-4b35-a9a1-5e1e1dc28efc", "ip_address": "10.101.1.108"}]},
"name": "router--8574156", "admin_state_up": false, "tenant_id":
"90a112852ba84606976607176c1340dd", "routes": [], "id":
"efc9f0ae-fd87-4fc6-8431-01cf76962bac"}}
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1475638/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp