List Networks hosted by one DHCP agent

Verb URI Description
GET /agents/agent_id/dhcp-networks List networks the given DHCP agent is hosting.

Normal Response Code: 200

Error Response Codes: Unauthorized (401), Forbidden (403)

This operation does not require a request body.

This operation returns a response body.

 

Example 4.150. List Networks on DHCP agent: JSON Request

GET /v2.0/agents/d5724d7e-389d-4ba0-8d00-fc673a147bfa/dhcp-networks HTTP/1.1
Host: localhost:9696
User-Agent: python-neutronclient
Content-Type: application/json
Accept: application/json
X-Auth-Token: 797f94caf0a8481c893a232cc0c1dfca


 

Example 4.151. List Networks on DHCP agent: JSON Response

{
   "networks":[
      {
         "status":"ACTIVE",
         "subnets":[
            "15a09f6c-87a5-4d14-b2cf-03d97cd4b456"
         ],
         "name":"net1",
         "provider:physical_network":"physnet1",
         "admin_state_up":true,
         "tenant_id":"3671f46ec35e4bbca6ef92ab7975e463",
         "provider:network_type":"vlan",
         "router:external":false,
         "shared":false,
         "id":"2d627131-c841-4e3a-ace6-f2dd75773b6d",
         "provider:segmentation_id":1001
      },
      {
         "status":"ACTIVE",
         "subnets":[

         ],
         "name":"net2",
         "provider:physical_network":null,
         "admin_state_up":true,
         "tenant_id":"3671f46ec35e4bbca6ef92ab7975e463",
         "provider:network_type":"local",
         "router:external":false,
         "shared":false,
         "id":"524e26ea-fad4-4bb0-b504-1ad0dc770e7a",
         "provider:segmentation_id":null
      },
      {
         "status":"ACTIVE",
         "subnets":[
            "43671fba-c76b-4c33-bd7e-8bef54145f2f"
         ],
         "name":"mynet1",
         "provider:physical_network":"physnet1",
         "admin_state_up":true,
         "tenant_id":"3671f46ec35e4bbca6ef92ab7975e463",
         "provider:network_type":"vlan",
         "router:external":false,
         "shared":false,
         "id":"cfa65a54-06a8-4f9f-86b0-73c700c02c41",
         "provider:segmentation_id":1000
      }
   ]
}

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...