What's the difference between net-list and network-list?

Asked by Haiwei Xu

There are two nova network commands: net-list and network-list which list the existing networks.
 From the output of these two commands , we know one outputs ID and the other outputs UUID.
I am not quite sure whether both of them are necessary. Can anyone explain it for me ?
Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Haiwei Xu
Solved:
Last query:
Last reply:
Revision history for this message
Giampaolo Lauria (lauria) said :
#1

Hi Haiwei,

would you be more specific as to which commands you are referring to?

I do see "nova network-list", but can't find anything about "net-list" (I am running Grizzly).

Thanks

Revision history for this message
Haiwei Xu (xu-haiwei) said :
#2

I am using Grizzly and I installed nova-network but not quantum.
After I asked this question network-list is fixed by someone.
Now net-list and network-list run almost the same.
$ nova net-list
+--------------------------------------+---------+-----------------+
| ID | Label | CIDR |
+--------------------------------------+---------+-----------------+
| 2e0d973c-164f-4f3a-8d21-e628ba6cde73 | private | 10.0.0.0/24 |
| 516783fc-2170-47f1-ba8d-a4b39a839d51 | net15 | 192.168.15.0/24 |
| c90de04b-a425-4f3d-b001-5c861c52dbe9 | net8 | 11.0.0.0/8 |
+--------------------------------------+---------+-----------------+
$ nova network-list
+--------------------------------------+---------+-----------------+
| ID | Label | Cidr |
+--------------------------------------+---------+-----------------+
| 2e0d973c-164f-4f3a-8d21-e628ba6cde73 | private | 10.0.0.0/24 |
| 516783fc-2170-47f1-ba8d-a4b39a839d51 | net15 | 192.168.15.0/24 |
| c90de04b-a425-4f3d-b001-5c861c52dbe9 | net8 | 11.0.0.0/8 |
+--------------------------------------+---------+-----------------+

Revision history for this message
GuoHui Liu (guohliu) said :
#3

Well, the network-list api is for Admin-only, the net-list api is tenant based network management.

Revision history for this message
Haiwei Xu (xu-haiwei) said :
#4

Hi, GuoHui

Thank you for answering me. But I am still confused. The net-list and network-list work all the same when the tenant is admin
and demo. But can't run in the other tenant.

~$ env|grep OS
OS_PASSWORD=openstack
OS_AUTH_URL=http://192.168.0.20:5000/v2.0
OS_USERNAME=admin
OS_TENANT_NAME=tenant1
OS_CACERT=/opt/stack/data/CA/int-ca/ca-chain.pem
OS_NO_CACHE=1
LESSCLOSE=/usr/bin/lesspipe %s %s

~$ nova network-list
ERROR: Invalid OpenStack Nova credentials.
$ nova net-list
ERROR: Invalid OpenStack Nova credentials.

Why this happens?