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)
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 test/fixtures/ quantum_ test.py( 169)get_ port() show_port( port_id, fields= field)[ 'port']
> /contrail-
-> port_obj = self.obj.
(Pdb) self.obj v2_0.client. Client object at 0x7f87283a2d10> show_port( port_id, fields= field)[ 'port'] show_port( port_id, fields=field) show_port( port_id) f413-4739- 9149-27cc7f6936 5d', u'allowed_ address_ pa 03a94b12afd0943 15a9', u'binding: vif_details' : {u'port_filter': True}, u'binding:vnic 1c:ce:76: f4', u'port_ security_ enabled' : True, u'fixed_ips': [{u'subnet_id': u'e335d5d6- 3621-4877- a4e9-7f4d 2e9c-46d7- b64e-3a758c7228 0c'], u'device_id': u''}}
<neutronclient.
(Pdb) field
''
(Pdb) self.obj.
{}
(Pdb) self.obj.
{u'port': {}}
(Pdb) self.obj.
{u'port': {u'status': u'DOWN', u'binding:host_id': None, u'name': u'ff1cce76-
fb0280ae2b0', u'tenant_id': u'fb870958cab44
ac_address': u'02:ff:
7cc7f69365d', u'security_groups': [u'03c35532-
(Pdb)