Comment 5 for bug 1783688

Revision history for this message
Nagendra Prasath (npchandran) wrote :

In test code when field is not passed, port returns properly. Not sure if it is due to newer python neutronclient.
Not a bug at contrail API

checked at
> /contrail-test/fixtures/quantum_test.py(169)get_port()
-> port_obj = self.obj.show_port(port_id, fields=field)['port']

(Pdb) self.obj
<neutronclient.v2_0.client.Client object at 0x7f87283a2d10>
(Pdb) field
''
(Pdb) self.obj.show_port(port_id, fields=field)['port']
{}
(Pdb) self.obj.show_port(port_id, fields=field)
{u'port': {}}
(Pdb) self.obj.show_port(port_id)
{u'port': {u'status': u'DOWN', u'binding:host_id': None, u'name': u'ff1cce76-f413-4739-9149-27cc7f69365d', u'allowed_address_pa
fb0280ae2b0', u'tenant_id': u'fb870958cab4403a94b12afd094315a9', u'binding:vif_details': {u'port_filter': True}, u'binding:vnic
ac_address': u'02:ff:1c:ce:76:f4', u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'e335d5d6-3621-4877-a4e9-7f4d
7cc7f69365d', u'security_groups': [u'03c35532-2e9c-46d7-b64e-3a758c72280c'], u'device_id': u''}}
(Pdb)