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

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

Open
Metallion opened this issue Dec 16, 2016 · 0 comments
Open

Comments

@Metallion
Copy link
Contributor

Metallion commented Dec 16, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant