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 dd080c70b423a56a69abf7e52d1fee0cb7988c92)
Reviewed: https:/ /review. opendev. org/674966 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=b4e544fa9a1 ee40fb753e9756c a50a21e8d0ea7c
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit b4e544fa9a1ee40 fb753e9756ca50a 21e8d0ea7c
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 a69abf7e52d1fee 0cb7988c92)
Partial-bug: #1838396
(cherry picked from commit dd080c70b423a56