Comment 14 for bug 1899141

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

Reviewed: https://review.opendev.org/759266
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=cd0526dce8703bce12763c5c9bfc51f6d27f16c2
Submitter: Zuul
Branch: stable/ussuri

commit cd0526dce8703bce12763c5c9bfc51f6d27f16c2
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Fri Oct 9 13:26:33 2020 +0000

    "scope" conversion only just before pyroute2 method call

    In "IpAddrCommand.list" method, the "scope" parameter is a string
    ("link", "site", "global" or "host"). This method will retrieve all
    devices with an IP address calling "ip_lib.get_devices_with_ip".

    Since [1], "ip_lib.get_devices_with_ip" makes the conversion of
    "scope" string parameter to pyroute2 format (see
    "pyroute2.netlink.rtnl.rtscopes"). The list command should skip then
    the previous conversion.

    Closes-Bug: #1899141

    [1]https://review.opendev.org/#/c/747406/

    Change-Id: I55a0f4341b328af52ea3bd758a72f633fbe3abcb
    (cherry picked from commit 0705699e6072f0862cee7749de7f7633ecc9dcfd)
    (cherry picked from commit f0849bb0d2a9cbd19be7ee5312ba7e5edbc18900)