Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #!/usr/bin/env python
  2. from neutronclient.v2_0 import client as neutronClient
  3. import os
  4.  
  5. neutronConnection = neutronClient.Client(
  6. username=os.environ['OS_USERNAME'],
  7. password=os.environ['OS_PASSWORD'],
  8. tenant_name=os.environ['OS_TENANT_NAME'],
  9. auth_url=os.environ['OS_AUTH_URL']
  10. )
  11. print neutronConnection
  12. neutronConnection.format = 'json'
  13. neutronConnection.list_networks()
  14.  
  15. neutronConnection.list_networks()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement