[Maas-devel] Allow names instead of IDs ?
Blake Rouse
blake.rouse at canonical.com
Wed Nov 4 15:38:59 UTC 2015
John,
We have implemented this logic for the storage API's. We have a bug filed
to do the same for the networking API in 1.9.
https://bugs.launchpad.net/maas/+bug/1510917
Thanks,
Blake
On Wed, Nov 4, 2015 at 5:16 AM, John Meinel <john at arbash-meinel.com> wrote:
> I was using the CLI some more to create spaces and subnets in them, and
> kept running into the difficulty having to remember IDs rather than being
> able to pass in names.
>
> So I investigated what it would take to actually use names, and I came up
> with this patch:
> https://code.launchpad.net/~jameinel/maas/space-from-name/+merge/276632
>
> It is by no means well tested or complete, but it did let me do "maas m1
> subnet create name=foo space=bar" and have that work rather than "space=1"
> and also lets me do "maas m1 subnet delete foo" instead of just the id.
>
> Is this a sane direction to be going? I'm concerned about compatibility
> because while "to_field_name" lets me change *what* key is used, it doesn't
> let me allow IDs *or* names.
>
> Thoughts appreciated,
> John
> =:->
>
>
> --
> Mailing list: https://launchpad.net/~maas-devel
> Post to : maas-devel at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~maas-devel
> More help : https://help.launchpad.net/ListHelp
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/maas-devel/attachments/20151104/bb5b066b/attachment.html>
More information about the Maas-devel
mailing list