Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Ports binding extended attributes
Closes-Bug: #1157159 Change-Id: I8d5e0bce044ba2dc689c23640f170868266a1170 author: diane fleming
- Loading branch information
Showing
10 changed files
with
212 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
api-ref/src/wadls/netconn-api/src/api_samples/port-get-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"port":[ | ||
{ | ||
"status":"ACTIVE", | ||
"name":"", | ||
"admin_state_up":true, | ||
"network_id":"ebda9658-093b-41ba-80ce-0cf8cb8365d4", | ||
"tenant_id":"63878e4c5dd649d2a980e37aefddfa87", | ||
"binding:vif_type":"ovs", | ||
"device_owner":"compute:None", | ||
"binding:capabilities":{ | ||
"port_filter":false | ||
}, | ||
"mac_address":"fa:16:3e:b9:ef:05", | ||
"fixed_ips":[ | ||
{ | ||
"subnet_id":"aca4d43c-c48c-4a2c-9bb6-ba374ef7e135", | ||
"ip_address":"172.24.4.227" | ||
} | ||
], | ||
"id":"664ebd1a-facd-4c20-948c-07a784475ab0", | ||
"device_id":"f288bb5f-920d-4276-8345-2c0319c16f58" | ||
} | ||
] | ||
} |
25 changes: 25 additions & 0 deletions
25
api-ref/src/wadls/netconn-api/src/api_samples/port-get-resp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<port xmlns="http://openstack.org/quantum/api/v2.0" | ||
xmlns:binding="http://docs.openstack.org/ext/binding/api/v1.0" | ||
xmlns:quantum="http://openstack.org/quantum/api/v2.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<status>ACTIVE</status> | ||
<name/> | ||
<admin_state_up quantum:type="bool">True</admin_state_up> | ||
<network_id>ebda9658-093b-41ba-80ce-0cf8cb8365d4</network_id> | ||
<tenant_id>63878e4c5dd649d2a980e37aefddfa87</tenant_id> | ||
<binding:vif_type>ovs</binding:vif_type> | ||
<device_owner>compute:None</device_owner> | ||
<binding:capabilities> | ||
<port_filter quantum:type="bool">False</port_filter> | ||
</binding:capabilities> | ||
<mac_address>fa:16:3e:b9:ef:05</mac_address> | ||
<fixed_ips> | ||
<fixed_ip> | ||
<subnet_id>aca4d43c-c48c-4a2c-9bb6-ba374ef7e135</subnet_id> | ||
<ip_address>172.24.4.227</ip_address> | ||
</fixed_ip> | ||
</fixed_ips> | ||
<id>664ebd1a-facd-4c20-948c-07a784475ab0</id> | ||
<device_id>f288bb5f-920d-4276-8345-2c0319c16f58</device_id> | ||
</port> |
26 changes: 26 additions & 0 deletions
26
api-ref/src/wadls/netconn-api/src/api_samples/port_create_or_update_resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"port":[ | ||
{ | ||
"status":"DOWN", | ||
"binding:host_id":null, | ||
"name":"sample_port_1", | ||
"admin_state_up":true, | ||
"network_id":"a3775a7d-9f8b-4148-be81-c84bbd0837ce", | ||
"tenant_id":"60cd4f6dbc2f491982a284e7b83b5be3", | ||
"binding:vif_type":"ovs", | ||
"device_owner":"", | ||
"binding:capabilities":{ | ||
"port_filter":true | ||
}, | ||
"mac_address":"fa:16:3e:2e:7c:8a", | ||
"fixed_ips":[ | ||
|
||
], | ||
"id":"8fb361d8-bab0-418d-b1b8-7204a230fb06", | ||
"security_groups":[ | ||
"99f465bc-0d7c-4142-8829-7ae0179f2fa8" | ||
], | ||
"device_id":"" | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
api-ref/src/wadls/netconn-api/src/api_samples/port_create_or_update_resp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<port xmlns="http://openstack.org/quantum/api/v2.0" | ||
xmlns:binding="http://docs.openstack.org/ext/binding/api/v1.0" | ||
xmlns:quantum="http://openstack.org/quantum/api/v2.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<status>DOWN</status> | ||
<binding:host_id xsi:nil="true"/> | ||
<name>test_port_1</name> | ||
<admin_state_up quantum:type="bool">True</admin_state_up> | ||
<network_id>a3775a7d-9f8b-4148-be81-c84bbd0837ce</network_id> | ||
<tenant_id>60cd4f6dbc2f491982a284e7b83b5be3</tenant_id> | ||
<binding:vif_type>ovs</binding:vif_type> | ||
<device_owner/> | ||
<binding:capabilities> | ||
<port_filter quantum:type="bool">True</port_filter> | ||
</binding:capabilities> | ||
<mac_address>fa:16:3e:c9:8d:cf</mac_address> | ||
<fixed_ips quantum:type="list"/> | ||
<id>7f0aa3f1-883a-43b2-8d1b-e85fac52b417</id> | ||
<security_groups> | ||
<security_group>99f465bc-0d7c-4142-8829-7ae0179f2fa8</security_group> | ||
</security_groups> | ||
<device_id/> | ||
</port> |
78 changes: 46 additions & 32 deletions
78
api-ref/src/wadls/netconn-api/src/api_samples/ports-create-bulk-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,48 @@ | ||
{ | ||
"ports": [ | ||
{ | ||
"status": "DOWN", | ||
"binding:host_id": null, | ||
"name": "sample_port_1", | ||
"admin_state_up": true, | ||
"network_id": "a3775a7d-9f8b-4148-be81-c84bbd0837ce", | ||
"tenant_id": "60cd4f6dbc2f491982a284e7b83b5be3", | ||
"binding:vif_type": "ovs", | ||
"device_owner": "", | ||
"binding:capabilities": {"port_filter": true}, | ||
"mac_address": "fa:16:3e:2e:7c:8a", | ||
"fixed_ips": [], | ||
"id": "8fb361d8-bab0-418d-b1b8-7204a230fb06", | ||
"security_groups": ["99f465bc-0d7c-4142-8829-7ae0179f2fa8"], | ||
"device_id": "" | ||
}, | ||
{ | ||
"status": "DOWN", | ||
"binding:host_id": null, | ||
"name": "sample_port_2", | ||
"admin_state_up": false, | ||
"network_id": "a3775a7d-9f8b-4148-be81-c84bbd0837ce", | ||
"tenant_id": "60cd4f6dbc2f491982a284e7b83b5be3", | ||
"binding:vif_type": "ovs", | ||
"device_owner": "", | ||
"binding:capabilities": {"port_filter": true}, | ||
"mac_address": "fa:16:3e:0a:4e:13", "fixed_ips": [], | ||
"id": "d4c93b0b-f593-424e-a199-d648478a5a3c", | ||
"security_groups": ["99f465bc-0d7c-4142-8829-7ae0179f2fa8"], | ||
"device_id": ""}] | ||
} | ||
"ports":[ | ||
{ | ||
"status":"DOWN", | ||
"binding:host_id":null, | ||
"name":"sample_port_1", | ||
"admin_state_up":true, | ||
"network_id":"a3775a7d-9f8b-4148-be81-c84bbd0837ce", | ||
"tenant_id":"60cd4f6dbc2f491982a284e7b83b5be3", | ||
"binding:vif_type":"ovs", | ||
"device_owner":"", | ||
"binding:capabilities":{ | ||
"port_filter":true | ||
}, | ||
"mac_address":"fa:16:3e:2e:7c:8a", | ||
"fixed_ips":[ | ||
|
||
], | ||
"id":"8fb361d8-bab0-418d-b1b8-7204a230fb06", | ||
"security_groups":[ | ||
"99f465bc-0d7c-4142-8829-7ae0179f2fa8" | ||
], | ||
"device_id":"" | ||
}, | ||
{ | ||
"status":"DOWN", | ||
"binding:host_id":null, | ||
"name":"sample_port_2", | ||
"admin_state_up":false, | ||
"network_id":"a3775a7d-9f8b-4148-be81-c84bbd0837ce", | ||
"tenant_id":"60cd4f6dbc2f491982a284e7b83b5be3", | ||
"binding:vif_type":"ovs", | ||
"device_owner":"", | ||
"binding:capabilities":{ | ||
"port_filter":true | ||
}, | ||
"mac_address":"fa:16:3e:0a:4e:13", | ||
"fixed_ips":[ | ||
|
||
], | ||
"id":"d4c93b0b-f593-424e-a199-d648478a5a3c", | ||
"security_groups":[ | ||
"99f465bc-0d7c-4142-8829-7ae0179f2fa8" | ||
], | ||
"device_id":"" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 12 additions & 11 deletions
23
api-ref/src/wadls/netconn-api/src/api_samples/ports-post-create-bulk-req.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{ | ||
"ports": [ | ||
{ | ||
"name": "sample_port_1", | ||
"admin_state_up": false, | ||
"network_id": "a3775a7d-9f8b-4148-be81-c84bbd0837ce" | ||
}, | ||
{ | ||
"name": "sample_port_2", | ||
"admin_state_up": false, | ||
"network_id": "a3775a7d-9f8b-4148-be81-c84bbd0837ce" | ||
}] | ||
"ports":[ | ||
{ | ||
"name":"sample_port_1", | ||
"admin_state_up":false, | ||
"network_id":"a3775a7d-9f8b-4148-be81-c84bbd0837ce" | ||
}, | ||
{ | ||
"name":"sample_port_2", | ||
"admin_state_up":false, | ||
"network_id":"a3775a7d-9f8b-4148-be81-c84bbd0837ce" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.