Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from keystoneauth1 import loading
- from keystoneauth1 import session
- from neutronclient.v2_0 import client
- loader = loading.get_plugin_loader('password')
- auth = loader.load_from_options(auth_url='http://10.10.33.140:35357/v3',username='admin',password='k3st0ne2017ZEtka', project_id= 'e241d7f5fae342048589cc0c3387dac0', user_domain_name='default')
- sess = session.Session(auth=auth)
- neutron = client.Client( session=sess)
- print(neutron.list_floatingips(retrieve_all=True))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement