Advertisement
Guest User

Untitled

a guest
Mar 8th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. from keystoneauth1 import loading
  2. from keystoneauth1 import session
  3. from neutronclient.v2_0 import client
  4.  
  5.  
  6. loader = loading.get_plugin_loader('password')
  7. 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')
  8. sess = session.Session(auth=auth)
  9. neutron = client.Client( session=sess)
  10.  
  11.  
  12. print(neutron.list_floatingips(retrieve_all=True))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement