Previously d3 version of the network topology view handles ports with
device_owner 'compute:nova' and 'compute:None' specially. This leads
to the situtaion that neutron ports with non-default AZ are not shown
properly. There is no reason to handle neutron ports with the default
AZ differently. What we would like to do is just to classify neutron
ports attached to nova servers.
This commit changes the logic to check device_owner of ports have
a prefix 'compute:'. Note that we also need to check if device_owner
is a string before checking the prefix.
Change-Id: I472bae9af3d14d8a31efcae8a7610b84c4f09c3d
Closes-Bug: #1820260
(cherry picked from commit ffbe0e2f2f96556f4476ea3873af1bc628c879ca)
Reviewed: https:/ /review. openstack. org/645317 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=273de58cccf d7c82dbe7372b7c 8a7d9d9dd39b06
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 273de58cccfd7c8 2dbe7372b7c8a7d 9d9dd39b06
Author: Akihiro Motoki <email address hidden>
Date: Thu Mar 21 16:41:37 2019 +0900
network topology: handle port AZ correctly
Previously d3 version of the network topology view handles ports with
device_owner 'compute:nova' and 'compute:None' specially. This leads
to the situtaion that neutron ports with non-default AZ are not shown
properly. There is no reason to handle neutron ports with the default
AZ differently. What we would like to do is just to classify neutron
ports attached to nova servers.
This commit changes the logic to check device_owner of ports have
a prefix 'compute:'. Note that we also need to check if device_owner
is a string before checking the prefix.
Change-Id: I472bae9af3d14d 8a31efcae8a7610 b84c4f09c3d f4476ea3873af1b c628c879ca)
Closes-Bug: #1820260
(cherry picked from commit ffbe0e2f2f96556