[NEUTRON-136] Fix ip_address in allowed_address_pairs info Created: 06/Sep/16  Updated: 09/Sep/16  Resolved: 09/Sep/16

Status: Resolved
Project: neutron
Component/s: transcriber
Affects Version/s: master
Fix Version/s: None

Type: Bug
Reporter: Sridhar Gaddam Assignee: Sridhar Gaddam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 6641
Priority: Normal

 Description   

Update a Neutron port with an allowed_address_pair and query the port info using Postman.
The allowed_address_pairs info in the port details does not show the ip_address properly.

neutron port-update c4a2ac9f-98d6-483c-8a72-4daf5e4b4ac8 --allowed_address_pairs type=dict list=true ip_address=192.168.1.200

http://127.0.0.1:8080/controller/nb/v2/neutron/ports/c4a2ac9f-98d6-483c-8a72-4daf5e4b4ac8
{
"port": {
"id": "c4a2ac9f-98d6-483c-8a72-4daf5e4b4ac8",
"tenant_id": "a7d11fdce14049bdbbe475c4d627474d",
"network_id": "2ccda909-945c-4bb0-a34e-5d193a96a5a0",
"name": "",
"admin_state_up": true,
"mac_address": "fa:16:3e:c0:62:87",
"fixed_ips": [

{ "ip_address": "11.1.1.11", "subnet_id": "69e1183e-39a6-4144-b70f-156d20dc82fe" }

],
"device_id": "",
"device_owner": "",
"security_groups": [

{ "id": "7cb29c8b-2c16-4bab-872a-610d2ddb3729" }

],
"allowed_address_pairs": [

{ "mac_address": "fa:16:3e:c0:62:87", "ip_address": "[C@5f7fa0de" }

],
"binding:host_id": "",
"binding:vnic_type": "normal",
"binding:vif_type": "unbound",
"Map": {},
"extra_dhcp_opts": [],
"port_security_enabled": true
}
}



 Comments   
Comment by Sridhar Gaddam [ 06/Sep/16 ]

Proposed the following patch that addresses the issue.

https://git.opendaylight.org/gerrit/#/c/45216

Generated at Wed Feb 07 20:25:39 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.