Comment 6 for bug 1838396

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

Reviewed: https://review.opendev.org/673486
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=dd080c70b423a56a69abf7e52d1fee0cb7988c92
Submitter: Zuul
Branch: master

commit dd080c70b423a56a69abf7e52d1fee0cb7988c92
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