axsh/openvnet

translations static-address show exists in vnctl but not in webapi

Opened this issue · 0 comments

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&rsquo;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 &#x27;&#x2F;translations&#x2F;tr-1xd1x5fm&#x2F;static_address&#x27; do
    &quot;Hello World&quot;
  end
end
</pre>
  </div>
</body>
</html>

Solution

Either implement it in the webapi or remove it from vnctl