commit 4ef6566b6dc3d069fccf6a7b8d7a8abbadd12d35
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.
Reviewed: https:/ /review. opendev. org/759267 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=4ef6566b6dc 3d069fccf6a7b8d 7a8abbadd12d35
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 4ef6566b6dc3d06 9fccf6a7b8d7a8a bbadd12d35
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 get_devices_ with_ip" .
("link", "site", "global" or "host"). This method will retrieve all
devices with an IP address calling "ip_lib.
Since [1], "ip_lib. get_devices_ with_ip" makes the conversion of netlink. rtnl.rtscopes" ). The list command should skip then
"scope" string parameter to pyroute2 format (see
"pyroute2.
the previous conversion.
Closes-Bug: #1899141
[1]https:/ /review. opendev. org/#/c/ 747406/
Change-Id: I55a0f4341b328a f52ea3bd758a72f 633fbe3abcb 62cee7749de7f76 33ecc9dcfd) 19be7ee5312ba7e 5edbc18900) e12763c5c9bfc51 f6d27f16c2)
(cherry picked from commit 0705699e6072f08
(cherry picked from commit f0849bb0d2a9cbd
(cherry picked from commit cd0526dce8703bc