Hi Gary,
How can I query the ports with ip_adress?
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: gkot...@redhat.com
From: Yong Sheng Gong/China/IBM
Date: 06/25/2012 06:00PM
Cc: garyk <gkot...@redhat.com>, Sumit Naiksatam <snaik...@cisco.com>
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)" <rev...@openstack.org> wrote: -----
From: Yong Sheng Gong/China/IBM
Date: 06/25/2012 06:00PM
Cc: garyk <gkot...@redhat.com>, Sumit Naiksatam <snaik...@cisco.com>
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)" <rev...@openstack.org> wrote: -----
To: Yong Sheng Gong/China/IBM@IBMCN
From: "garyk (Code Review)" <rev...@openstack.org>
Date: 06/25/2012 05:40PM
Cc: Sumit Naiksatam <snaik...@cisco.com>, garyk <gkot...@redhat.com>
Subject: Change in openstack/python-quantumclient[master]: add --fixed-ip argument to create port
From: "garyk (Code Review)" <rev...@openstack.org>
Date: 06/25/2012 05:40PM
Cc: Sumit Naiksatam <snaik...@cisco.com>, garyk <gkot...@redhat.com>
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 <gong...@cn.ibm.com>
Gerrit-Reviewer: Jenkins
Gerrit-Reviewer: Sumit Naiksatam <snaik...@cisco.com>
Gerrit-Reviewer: garyk <gkot...@redhat.com>
Gerrit-Reviewer: gongysh <gong...@cn.ibm.com>
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 <gong...@cn.ibm.com>
Gerrit-Reviewer: Jenkins
Gerrit-Reviewer: Sumit Naiksatam <snaik...@cisco.com>
Gerrit-Reviewer: garyk <gkot...@redhat.com>
Gerrit-Reviewer: gongysh <gong...@cn.ibm.com>
-- Mailing list: https://launchpad.net/~netstack Post to : netstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~netstack More help : https://help.launchpad.net/ListHelp