How can I find the port using local ip address by openstacksdk?

asked 2017-09-25 03:02:36 -0500

liaodalin19903 gravatar image

When I use the openstacksdk, I tried use conn.network.find_port() method to find the port, but I only knows the local_ip address, but the conn.network.find_port() params requires the id or the name.

In my openstack cloud:

image description

You see, I only knows the fixed_ips' ip_address, but how can I get the port by openstacksdk?

edit retag flag offensive close merge delete