Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from neutronclient.v2_0 import client as neutronClient
- import os
- neutronConnection = neutronClient.Client(
- username=os.environ['OS_USERNAME'],
- password=os.environ['OS_PASSWORD'],
- tenant_name=os.environ['OS_TENANT_NAME'],
- auth_url=os.environ['OS_AUTH_URL']
- )
- print neutronConnection
- neutronConnection.format = 'json'
- neutronConnection.list_networks()
- neutronConnection.list_networks()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement