Comment 9 for bug 1899141

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

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

commit 0705699e6072f0862cee7749de7f7633ecc9dcfd
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