Comment 2 for bug 1162409

Revision history for this message
Zhi Yan Liu (lzy-dev) wrote : Re: [Bug 1162409] Re: nova net-list not return network uuid but id instead

Hi, just change
"nova/api/openstack/compute/contrib/os_networks.py#L50" to: "if 'uuid'
in dict(network.iteritems()):". I will deliver it asap, with ut.

On Mon, Apr 1, 2013 at 9:49 AM, Haiwei Xu <email address hidden> wrote:
> Hi,
> I am also concerned about the commands "nova net-list" and "nova network-list" .
> The difference between the two commands is just ID or UUID is outputed.
> Could you please tell us how you will fix the problem more or less?
> Thank you.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1162409
>
> Title:
> nova net-list not return network uuid but id instead
>
> Status in OpenStack Compute (Nova):
> In Progress
>
> Bug description:
> os-networks API (index, show and create) return network id but not
> uuid even uuid field available.
>
> network_dict function in the extension should not use "in" checking for a Network model object.
> https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/os_networks.py#L50
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nova/+bug/1162409/+subscriptions