【发布时间】:2018-09-17 07:05:54
【问题描述】:
我无法发出PUT 为路由器添加静态路由的请求。
我收到以下错误:
{
"NeutronError": {
"message": "Invalid input for external_gateway_info. Reason: Unexpected keys supplied: routes.",
"type": "HTTPBadRequest",
"detail": ""
}
}
我的请求负载是:
{
"router": {
"distributed": false,
"external_gateway_info": {
"network_id": "04901d68-eb70-410c-a2ae-e4b77d4e4641",
"enable_snat": true,
"routes": [
{
"destination": "112.112.112.0/24",
"nexthop": "117.97.10.2"
}
]
}
}
}
而且,我的网址是:/routers/{:routerId}
使用相同的路由,我可以在开放堆栈中子中添加静态路由,但不能通过 API 请求。
这种方法有什么改进吗?
【问题讨论】:
标签: openstack openstack-neutron