neutron/neutron/tests/unit/plugins
zhouhenglc a0ac712a35 fix update port bug
when update port set body={"port": {}}, neutron server will return 500.

In function _process_port_binding_attributes(plugins/ml2/plugin.py),
when update port body={"port": {}}
attrs={}
vnic_type = attrs and attrs.get(portbindings.VNIC_TYPE)
vnic_type = {}
because attrs as False, will not execute attrs.get(portbindings.VNIC_TYPE)
vnic_type will be replicated as attrs.

Change-Id: I40d388543387ebdd72f26d761339c1829bef9413
Partial-bug: #1838396
(cherry picked from commit dd080c70b4)
2019-08-07 00:49:40 +00:00
..
common Utils: make delete_port_on_error more informative 2017-05-02 06:23:51 +03:00
ml2 fix update port bug 2019-08-07 00:49:40 +00:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00