Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1. Using http://10.155.1.11:9696/v2.0 as public network endpoint
  2. REQ: curl -g -i -X GET http://10.155.1.11:9696/v2.0/routers -H "Accept: application/json" -H "X-Auth-Token: {SHA1}636123ccc6750b6373856bb809ca98007bc3dfc1" -H "User-Agent: openstacksdk/0.9.17 keystoneauth1/3.0.1 python-requests/2.18.1 CPython/3.5.3"
  3. http://10.155.1.11:9696 "GET /v2.0/routers HTTP/1.1" 200 3157
  4. RESP: [200] Content-Type: application/json Content-Length: 3157 X-Openstack-Request-Id: req-b7d188c3-c230-4f82-b135-49da1836e9c3 Date: Thu, 21 Jun 2018 08:40:17 GMT Connection: keep-alive
  5. RESP BODY: {"routers": [{"status": "ACTIVE", "external_gateway_info": null, "availability_zone_hints": [], "availability_zones": ["nova"], "description": "", "tags": [], "tenant_id": "fda5ad94a9014461bfcdf411968c3c5a", "created_at": "2018-05-29T14:10:21Z", "admin_state_up": true, "updated_at": "2018-05-29T14:10:21Z", "flavor_id": null, "revision_number": 1, "routes": [], "project_id": "fda5ad94a9014461bfcdf411968c3c5a", "id": "45cecd91-eb1f-48af-9374-71da69ebe105", "name": ""}, {"status": "ACTIVE", "external_gateway_info": null, "availability_zone_hints": [], "availability_zones": ["nova"], "description": "", "tags": [], "tenant_id": "fda5ad94a9014461bfcdf411968c3c5a", "created_at": "2018-05-29T14:04:39Z", "admin_state_up": true, "updated_at": "2018-05-29T14:04:39Z", "flavor_id": null, "revision_number": 1, "routes": [], "project_id": "fda5ad94a9014461bfcdf411968c3c5a", "id": "7f95cb88-3a76-4b59-bf61-13ec9877cb96", "name": "router2"}, {"status": "ACTIVE", "external_gateway_info": null, "availability_zone_hints": [], "availability_zones": ["nova"], "description": "", "tags": [], "tenant_id": "fda5ad94a9014461bfcdf411968c3c5a", "created_at": "2018-05-29T14:10:52Z", "admin_state_up": true, "updated_at": "2018-05-29T14:10:54Z", "flavor_id": null, "revision_number": 5, "routes": [], "project_id": "fda5ad94a9014461bfcdf411968c3c5a", "id": "88f94268-a828-4191-9dd5-4774e23f5016", "name": ""}, {"status": "ACTIVE", "external_gateway_info": {"network_id": "6ab14e72-a0a6-4dd7-8bd2-8df5b1fe92c3", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "f6df2bc4-0b9a-45b7-a581-f989ab54870f", "ip_address": "80.253.33.143"}]}, "availability_zone_hints": [], "availability_zones": ["nova"], "description": "", "tags": [], "tenant_id": "fda5ad94a9014461bfcdf411968c3c5a", "created_at": "2018-06-11T10:03:55Z", "admin_state_up": true, "updated_at": "2018-06-11T10:04:36Z", "flavor_id": null, "revision_number": 5, "routes": [], "project_id": "fda5ad94a9014461bfcdf411968c3c5a", "id": "a4637ffb-fd16-4253-92ac-8854569a4c2f", "name": "RouterSPC"}, {"status": "ACTIVE", "external_gateway_info": null, "availability_zone_hints": [], "availability_zones": ["nova"], "description": "", "tags": [], "tenant_id": "fda5ad94a9014461bfcdf411968c3c5a", "created_at": "2018-05-29T14:05:19Z", "admin_state_up": true, "updated_at": "2018-05-29T14:05:21Z", "flavor_id": null, "revision_number": 5, "routes": [], "project_id": "fda5ad94a9014461bfcdf411968c3c5a", "id": "dc2276bd-bb0f-4b58-8b0b-6487e0dff0b4", "name": "router3"}, {"status": "ACTIVE", "external_gateway_info": {"network_id": "eea301bf-4457-4180-a0b6-bbe3e48563ba", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "a385b95c-3139-463b-946c-5c4396531282", "ip_address": "131.1.242.8"}]}, "availability_zone_hints": [], "availability_zones": ["nova"], "description": "", "tags": [], "tenant_id": "fda5ad94a9014461bfcdf411968c3c5a", "created_at": "2018-05-29T13:01:41Z", "admin_state_up": true, "updated_at": "2018-05-29T13:02:07Z", "flavor_id": null, "revision_number": 5, "routes": [], "project_id": "fda5ad94a9014461bfcdf411968c3c5a", "id": "fd549268-1adb-4a38-9782-961ec8622006", "name": "router1"}]}
  6.  
  7. GET call to network for http://10.155.1.11:9696/v2.0/routers used request id req-b7d188c3-c230-4f82-b135-49da1836e9c3
  8. +--------------------------------------+-----------+--------+-------+-------------+-------+----------------------------------+
  9. | ID | Name | Status | State | Distributed | HA | Project |
  10. +--------------------------------------+-----------+--------+-------+-------------+-------+----------------------------------+
  11. | 45cecd91-eb1f-48af-9374-71da69ebe105 | | ACTIVE | UP | False | False | fda5ad94a9014461bfcdf411968c3c5a |
  12. | 7f95cb88-3a76-4b59-bf61-13ec9877cb96 | router2 | ACTIVE | UP | False | False | fda5ad94a9014461bfcdf411968c3c5a |
  13. | 88f94268-a828-4191-9dd5-4774e23f5016 | | ACTIVE | UP | False | False | fda5ad94a9014461bfcdf411968c3c5a |
  14. | a4637ffb-fd16-4253-92ac-8854569a4c2f | RouterSPC | ACTIVE | UP | False | False | fda5ad94a9014461bfcdf411968c3c5a |
  15. | dc2276bd-bb0f-4b58-8b0b-6487e0dff0b4 | router3 | ACTIVE | UP | False | False | fda5ad94a9014461bfcdf411968c3c5a |
  16. | fd549268-1adb-4a38-9782-961ec8622006 | router1 | ACTIVE | UP | False | False | fda5ad94a9014461bfcdf411968c3c5a |
  17. +--------------------------------------+-----------+--------+-------+-------------+-------+----------------------------------+
  18. clean_up ListRouter:
  19. END return value: 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement