Hi John, Thanks for pointing this out. Static Routes support is only available on 2.1+.
This seems like a publishing issue rather than a docs issue, provided that the publishing of docs has recently changed to a complete different system. I've raised this already. Thanks. On Mon, Feb 27, 2017 at 3:34 PM, John Meinel <[email protected]> wrote: > I was implementing support for static routes in containers (part of bug > #1653708). I consulted the MAAS API docs to see if the API existed in 2.0: > https://docs.ubuntu.com/maas/2.0/en/api#static-route > > Would seem to indicate that the API is indeed, available in 2.0. > > However, our MAAS 2.0 clearly does not have that endpoint available: > > 2017-02-27 17:55:46 WARNING juju.provisioner ... unable to look up > static-routes: unexpected: ServerError: 404 NOT FOUND (Unknown API > endpoint: /MAAS/api/2.0/static-routes/.) > > I can certainly work around that on my end. > > However, is there something about how the docs are updated that are > causing the "2.0" docs to include endpoints that aren't present in 2.0? > > I can't say the exact version of the MAAS controller personally. It is our > CI MAAS. > > I'll also note that you can't tell if the API supports it from the api > version string, which seems to only say "2.0" for both MAAS 2.1 and for > MAAS 2.0 even though there are different APIs available in 2.1. (I know > there is always tension in versioning, but I wanted to give some feedback > that bumping the version when you add things is actually pretty useful for > people who want to be compatible with *both* versions, so they can tell > them apart.) > > John > =:-> > > -- > Maas-devel mailing list > [email protected] > Modify settings or unsubscribe at: https://lists.ubuntu.com/ > mailman/listinfo/maas-devel > > -- Andres Rodriguez Engineering Manager, MAAS Canonical USA, Inc.
-- Maas-devel mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/maas-devel
