"network list" command is not implemented in nova network.
This patch implements it.
The Network object in novaclient is quite different from
the one in sdk. And the output of "network list" using
Nova network is also quite different from using Neutron.
It is like this:
# openstack network list
+--------------------------------------+---------+-------------+
| ID | Name | Subnet |
+--------------------------------------+---------+-------------+
| 96a98ec4-31f6-45f6-99e6-9384569b3bb5 | private | 10.0.0.0/24 |
+--------------------------------------+---------+-------------+
--long and --external options have not been implemented because
the attrs in Network object in novaclient is too much different.
This patch also introduces a new FakeNetwork class in compute/v2/fake.py
to fake nova network.
Reviewed: https:/ /review. openstack. org/278253 /git.openstack. org/cgit/ openstack/ python- openstackclient /commit/ ?id=ddc97c6dc5b c36d678515aeb9f 7b3f9e85bd70d0
Committed: https:/
Submitter: Jenkins
Branch: master
commit ddc97c6dc5bc36d 678515aeb9f7b3f 9e85bd70d0
Author: Tang Chen <email address hidden>
Date: Wed Feb 10 11:49:15 2016 +0800
Support "network list" command in nova network
"network list" command is not implemented in nova network.
This patch implements it.
The Network object in novaclient is quite different from
the one in sdk. And the output of "network list" using
Nova network is also quite different from using Neutron.
It is like this:
# openstack network list ------- ------- ------- ------- ------- -+----- ----+-- ------- ----+ ------- ------- ------- ------- ------- -+----- ----+-- ------- ----+ 31f6-45f6- 99e6-9384569b3b b5 | private | 10.0.0.0/24 | ------- ------- ------- ------- ------- -+----- ----+-- ------- ----+
+--
| ID | Name | Subnet |
+--
| 96a98ec4-
+--
--long and --external options have not been implemented because
the attrs in Network object in novaclient is too much different.
This patch also introduces a new FakeNetwork class in compute/v2/fake.py
to fake nova network.
Change-Id: Id1fdf81fb2fa8b 39f2c76b7bae37a c4fecafd0f7 1062f4e8db233cc b7fd0e95f0e
Depends-On: I1b59264cd40aaf
partial-Bug: 1543672