Document: find_ip does not take name as a parameter

Bug #1465954 reported by Hardik Italia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack SDK
Invalid
High
Unassigned

Bug Description

Tags: proxy resource
Revision history for this message
Brian Curtin (brian.curtin) wrote :

Most of the find calls are broken.

Revision history for this message
Terry Howe (thowe-g) wrote :

It seems to be working for me:

    print('======================================================')
    print(str(conn.network.find_ip('15.125.93.234')))
    print('======================================================')
    print(str(conn.network.find_ip('c0032060-5798-4335-bd5b-1108796fdeca')))
    print('======================================================')

Results:

    ======================================================
    openstack.network.v2.floating_ip.FloatingIP(attrs={u'router_id': None, u'status': u'DOWN', u'tenant_id': u'96554402455058', u'floating_network_id': u'122c72de-0924-4b9f-8cf3-b18d5d3d292c', u'fixed_ip_address': None, u'floating_ip_address': u'15.125.93.234', u'port_id': None, u'id': u'c0032060-5798-4335-bd5b-1108796fdeca'}, loaded=True)
    ======================================================
    openstack.network.v2.floating_ip.FloatingIP(attrs={u'router_id': None, u'status': u'DOWN', u'tenant_id': u'96554402455058', u'floating_network_id': u'122c72de-0924-4b9f-8cf3-b18d5d3d292c', u'fixed_ip_address': None, u'floating_ip_address': u'15.125.93.234', u'port_id': None, u'id': u'c0032060-5798-4335-bd5b-1108796fdeca'}, loaded=True)
======================================================

Revision history for this message
Terry Howe (thowe-g) wrote :

FloatingIP uses floating_ip_address as the name attribute.

Changed in python-openstacksdk:
milestone: none → 1.0
Changed in python-openstacksdk:
importance: Undecided → High
Revision history for this message
Brian Curtin (brian.curtin) wrote :

We have a bunch of work to do around find as it is, but Hardik, does what Terry tried work for you?

Changed in python-openstacksdk:
status: New → Incomplete
Revision history for this message
Hardik Italia (hardik-italia) wrote :

Yes it works as mentioned by terry to use floating_ip_address as name.

tags: added: proxy resource
Changed in python-openstacksdk:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.