Comment 13 for bug 1838396

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/rocky)

Reviewed: https://review.opendev.org/674966
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=b4e544fa9a1ee40fb753e9756ca50a21e8d0ea7c
Submitter: Zuul
Branch: stable/rocky

commit b4e544fa9a1ee40fb753e9756ca50a21e8d0ea7c
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),
    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)