Final tidy of tenant net admin script

This commit is contained in:
James Page 2012-11-16 13:15:36 +00:00
parent 0b26d07170
commit 65d843f3bf

View File

@ -88,7 +88,7 @@ if __name__ == '__main__':
} }
network = quantum.create_network(network_msg)['network'] network = quantum.create_network(network_msg)['network']
else: else:
logging.error('Network %s already exists.', net_name) logging.warning('Network %s already exists.', net_name)
network = networks['networks'][0] network = networks['networks'][0]
# Create subnet # Create subnet
@ -140,5 +140,5 @@ if __name__ == '__main__':
quantum.add_interface_router(router['id'], quantum.add_interface_router(router['id'],
{'subnet_id': subnet['id']}) {'subnet_id': subnet['id']})
else: else:
logging.info('Router already connected to subnet') logging.warning('Router already connected to subnet')