translations static-address show exists in vnctl but not in webapi
Opened this issue · 0 comments
Metallion commented
Problem
There is currently a command in vnctl
for show static_address translations but there is no matching route in the webapi
.
Reproduction
vnctl translations add --interface-uuid if-inst1 --mode static_address --uuid tr-joske
vnctl translations static-address show tr-joske
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body { text-align:center;font-family:helvetica,arial;font-size:22px;
color:#888;margin:20px}
#c {margin:0 auto;width:500px;text-align:left}
</style>
</head>
<body>
<h2>Sinatra doesn’t know this ditty.</h2>
<img src='http://127.0.0.1:9090/api/1.0/__sinatra__/404.png'>
<div id="c">
Try this:
<pre># in vnet_api.rb
class Vnet::Endpoints::V10::VnetAPI
get '/translations/tr-1xd1x5fm/static_address' do
"Hello World"
end
end
</pre>
</div>
</body>
</html>
Solution
Either implement it in the webapi
or remove it from vnctl