It is not important. I will get port and then get needed information.



-----Gary Kotton <[email protected]> wrote: -----
To: Yong Sheng Gong/China/IBM@IBMCN
From: Gary Kotton <[email protected]>
Date: 06/26/2012 02:39PM
Cc: Dan Wendlandt <[email protected]>, "[email protected]" <[email protected]>
Subject: Re: about query ports via ip_address

On 06/26/2012 09:33 AM, Yong Sheng Gong wrote:
nova integration:

    def get_instance_uuids_by_ip_filter(self, context, filters):

Silly question - is the instance uuid the port uuid?
Thanks
Gary


-----Gary Kotton <[email protected]> wrote: -----
To: Yong Sheng Gong/China/IBM@IBMCN
From: Gary Kotton <[email protected]>
Date: 06/26/2012 02:26PM
Cc: Dan Wendlandt <[email protected]>, "[email protected]" <[email protected]>
Subject: Re: about query ports via ip_address

On 06/26/2012 09:00 AM, Yong Sheng Gong wrote:

Hi Gary,
How can I query the ports with ip_adress?

At the moment there is no formal way of doing this. Last week there were a number of mails on the list about this particular issue. We did not get to the bottom of this.

Your suggestion below should work. That is, read all of the ports and then filter per IP.

Can you please elaborate  where this is needed.

Thanks
Gary
quantumv2 list_ports -- --fixed_ips ip_address=ip
or any one in the format of http get URL

Thanks
Yong Sheng Gong
-----Yong Sheng Gong/China/IBM wrote: -----
To: [email protected]
From: Yong Sheng Gong/China/IBM
Date: 06/25/2012 06:00PM
Cc: garyk <[email protected]>, Sumit Naiksatam <[email protected]>
Subject: Change in openstack/python-quantumclient[master]: add --fixed-ip argument to create port

run it with latest code:
I think the format is better now.
[root@robinlinux git]# quantumv2 create_port --fixed-ip subnet_id=f1ce20ad-e597-4236-a961-0523cfbb31df --fixed-ip subnet_id=f1ce20ad-e597-4236-a961-0523cfbb31df --fixed-ip subnet_id=f1ce20ad-e597-4236-a961-0523cfbb31df --fixed-ip subnet_id=f1ce20ad-e597-4236-a961-0523cfbb31df 14c5c38b-49d8-44d0-bd4d-4b98e5dfcc43
Created a new port:
+----------------+----------------------------------------------------------------------------------+
| Field          | Value                                                                            |
+----------------+----------------------------------------------------------------------------------+
| admin_state_up | True                                                                             |
| device_id      |                                                                                  |
| fixed_ips      | {"subnet_id": "f1ce20ad-e597-4236-a961-0523cfbb31df", "ip_address": "10.0.0.13"} |
|                | {"subnet_id": "f1ce20ad-e597-4236-a961-0523cfbb31df", "ip_address": "10.0.0.14"} |
|                | {"subnet_id": "f1ce20ad-e597-4236-a961-0523cfbb31df", "ip_address": "10.0.0.12"} |
|                | {"subnet_id": "f1ce20ad-e597-4236-a961-0523cfbb31df", "ip_address": "10.0.0.15"} |
| id             | a6706765-4e43-4ec1-aa75-27fce4f4da83                                             |
| instance_id    |                                                                                  |
| mac_address    | fa:16:3e:6f:65:b9                                                                |
| network_id     | 14c5c38b-49d8-44d0-bd4d-4b98e5dfcc43                                             |
| status         | ACTIVE                                                                           |
| tenant_id      | 9d049e4b60b64716978ab415e6fbd5c0                                                 |
+----------------+----------------------------------------------------------------------------------+




-----"garyk (Code Review)" <[email protected]> wrote: -----
To: Yong Sheng Gong/China/IBM@IBMCN
From: "garyk (Code Review)" <[email protected]>
Date: 06/25/2012 05:40PM
Cc: Sumit Naiksatam <[email protected]>, garyk <[email protected]>
Subject: Change in openstack/python-quantumclient[master]: add --fixed-ip argument to create port

garyk has posted comments on this change.

Change subject: add --fixed-ip argument to create port
......................................................................


Patch Set 4: Looks good to me (core reviewer)

I have done a number of tests and it looks good. Only one minor issue regarding the display of a lot of data.
I think that that can be addressed later.
Please look at create_port --tenant-id default --fixed-ip subnet_id=6109e7e5-e778-4d04-8dc3-5c5e18cf64db --fixed-ip subnet_id=6109e7e5-e778-4d04-8dc3-5c5e18cf64db --fixed-ip subnet_id=6109e7e5-e778-4d04-8dc3-5c5e18cf64db --fixed-ip subnet_id=6109e7e5-e778-4d04-8dc3-5c5e18cf64db  ca5ea3d2-b57f-4b4a-8b07-8beafe57f84c
 for an example.
list_ports is also problematic.

--
To view, visit https://review.openstack.org/8902
To unsubscribe, visit https://review.openstack.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I693848c75055d1947862d55f4b538c1dfb1e86db
Gerrit-PatchSet: 4
Gerrit-Project: openstack/python-quantumclient
Gerrit-Branch: master
Gerrit-Owner: gongysh <[email protected]>
Gerrit-Reviewer: Jenkins
Gerrit-Reviewer: Sumit Naiksatam <[email protected]>
Gerrit-Reviewer: garyk <[email protected]>
Gerrit-Reviewer: gongysh <[email protected]>



-- 
Mailing list: https://launchpad.net/~netstack
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~netstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to