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.
Reviewed: https:/ /review. opendev. org/673486 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=dd080c70b42 3a56a69abf7e52d 1fee0cb7988c92
Committed: https:/
Submitter: Zuul
Branch: master
commit dd080c70b423a56 a69abf7e52d1fee 0cb7988c92
Author: zhouhenglc <email address hidden>
Date: Tue Jul 30 19:57:18 2019 +0800
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), portbindings. VNIC_TYPE) portbindings. VNIC_TYPE)
when update port body={"port": {}}
attrs={}
vnic_type = attrs and attrs.get(
vnic_type = {}
because attrs as False, will not execute attrs.get(
vnic_type will be replicated as attrs.
Change-Id: I40d388543387eb dd72f26d761339c 1829bef9413
Partial-bug: #1838396