Hi,

Yes, the OpenStack class you get a reference to through the get_provider()
method is really an OpenStack_1_1_NodeDriver class, so you have access to
all of the methods provided by this class.

So something like:

conn =  OpenStack(...)
floating_ips = conn.ex_list_floating_ip_pools()


On Thu, Mar 13, 2014 at 3:27 PM, Patrick Galbraith <[email protected]> wrote:

> Hi all,
>
> I'm using libcloud with openstack and was wondering what is the best way
> to obtain a list of floating ip pools. I see the test:
>
> ex_list_floating_ip_pools() a class in OpenStack_1_1_NodeDriver(), and it
> seems you can instantiate OpenStack_1_1_NodeDriver with connection
> parameters.
>
> If I have something such as:
>
> conn = OpenStack('username', 'xxxx',
>                    ex_force_auth_url='
> https://region-b.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens',
>                    ex_force_auth_version='2.0_password',
>                    ex_force_service_region='region-b.geo-1',
>                    ex_tenant_name='username-project1',
>                    ex_force_service_name='Compute')
>
> Do I have access to OpenStack_1_1_NodeDriver? Or what would be a good
> example of doing this?
>
> I see one such example in test_openstack.py, but I'm a little lost on how
> to get this to work:
>
> def test_ex_list_floating_ip_pools(self):
>         ret = self.driver.ex_list_floating_ip_pools()
>
> Thanks in advance for any info/tips !
>
> Patrick

Reply via email to