Extend the get_hosts_mapped_with_segments method to add
optional filters to include/exclude based on agent type.
Uses a joined query, when both include and exclude
filtering is used togheter the exclude filter is most
significant.
Partial-Bug: #2040172
Change-Id: I2cfd52a2657fad989e24e974fda470ecd960262b
Signed-off-by: Harald Jensås <email address hidden>
(cherry picked from commit 64b5787c3283b29cd36dde46ae298ae332f972d5)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/901791 /opendev. org/openstack/ neutron/ commit/ 6e3cbee84578eee 3714659498ba334 693b617f41
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/yoga
commit 6e3cbee84578eee 3714659498ba334 693b617f41
Author: Harald Jensås <email address hidden>
Date: Tue Oct 24 09:38:33 2023 +0200
get_ hosts_mapped_ with_segments add filter agt_type
Extend the get_hosts_ mapped_ with_segments method to add
optional filters to include/exclude based on agent type.
Uses a joined query, when both include and exclude
filtering is used togheter the exclude filter is most
significant.
Partial-Bug: #2040172
Change-Id: I2cfd52a2657fad 989e24e974fda47 0ecd960262b cd36dde46ae298a e332f972d5)
Signed-off-by: Harald Jensås <email address hidden>
(cherry picked from commit 64b5787c3283b29