summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTushar Patil <tushar.vitthal.patil@gmail.com>2011-08-16 16:04:18 -0700
committerTushar Patil <tushar.vitthal.patil@gmail.com>2011-08-16 16:04:18 -0700
commit9081e8b62ea01828238ecaebdcf3e627ada3fe9a (patch)
treeae42f6e4e1c45461d81db3623c107512dbc37dff /bin
parent2be419cd88d23ae5c0b6e5bd56fff5791e4685a7 (diff)
Added uuid for networks and made changes to the Create server API format to accept network as uuid instead of id
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-manage37
1 files changed, 19 insertions, 18 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index 41433f1d6..9592d5132 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -760,25 +760,26 @@ class NetworkCommands(object):
def list(self):
"""List all created networks"""
- print "%-5s\t%-18s\t%-15s\t%-15s\t%-15s\t%-15s\t%-15s\t%-15s" % (
- _('id'),
- _('IPv4'),
- _('IPv6'),
- _('start address'),
- _('DNS1'),
- _('DNS2'),
- _('VlanID'),
- 'project')
+ _fmt = "%-5s\t%-18s\t%-15s\t%-15s\t%-15s\t%-15s\t%-15s\t%-15s\t%-15s"
+ print _fmt % (_('id'),
+ _('IPv4'),
+ _('IPv6'),
+ _('start address'),
+ _('DNS1'),
+ _('DNS2'),
+ _('VlanID'),
+ _('project'),
+ _("uuid"))
for network in db.network_get_all(context.get_admin_context()):
- print "%-5s\t%-18s\t%-15s\t%-15s\t%-15s\t%-15s\t%-15s\t%-15s" % (
- network.id,
- network.cidr,
- network.cidr_v6,
- network.dhcp_start,
- network.dns1,
- network.dns2,
- network.vlan,
- network.project_id)
+ print _fmt % (network.id,
+ network.cidr,
+ network.cidr_v6,
+ network.dhcp_start,
+ network.dns1,
+ network.dns2,
+ network.vlan,
+ network.project_id,
+ network.uuid)
@args('--network', dest="fixed_range", metavar='<x.x.x.x/yy>',
help='Network to delete')