This is just trivial fixes; I think I caught all of them.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
#
#
-# Copyright (C) 2011 Google Inc.
+# Copyright (C) 2011, 2012 Google Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
mode = args[2]
link = args[3]
- #TODO: allow comma separated group names
- if groups == 'all':
+ # TODO: allow comma separated group names
+ if groups == "all":
cl = GetClient()
- (groups, ) = cl.QueryGroups([], ['name'], False)
+ (groups, ) = cl.QueryGroups([], ["name"], False)
else:
groups = [groups]
groups = args[1]
#TODO: allow comma separated group names
- if groups == 'all':
+ if groups == "all":
cl = GetClient()
- (groups, ) = cl.QueryGroups([], ['name'], False)
+ (groups, ) = cl.QueryGroups([], ["name"], False)
else:
groups = [groups]
netparams = group.networks[net_uuid]
mode = netparams[constants.NIC_MODE]
link = netparams[constants.NIC_LINK]
- info = group.name + '(' + mode + ', ' + link + ')'
+ info = group.name + "(" + mode + ", " + link + ")"
network_to_groups[net_uuid].append(info)
if do_instances:
NIC_VALID_MODES = frozenset([NIC_MODE_BRIDGED, NIC_MODE_ROUTED])
-RESERVE_ACTION = 'reserve'
-RELEASE_ACTION = 'release'
+RESERVE_ACTION = "reserve"
+RELEASE_ACTION = "release"
# An extra description of the network.
# Can be used by hooks/kvm-vif-bridge to apply different rules
_AppendDryRunIf(query, dry_run)
if add_reserved_ips:
- add_reserved_ips = add_reserved_ips.split(',')
+ add_reserved_ips = add_reserved_ips.split(",")
if tags:
- tags = tags.split(',')
+ tags = tags.split(",")
body = {
"network_name": network_name,