Fix icon of status on network topology

Currently, the icon of status on network topology is wrong because
of incorrect icon. There are two issues:

1. The icon of router status is in red color though it's active.
2. The icon of interface status is missing.

Closes-Bug: #1713901

Change-Id: Icf676c7267f64b3704cd16e6a1cccf9ae4d95e91
This commit is contained in:
Feilong Wang 2017-08-30 16:32:34 +12:00
parent 1ae2c16041
commit b26b17caec
2 changed files with 3 additions and 3 deletions

View File

@ -523,7 +523,7 @@ horizon.flat_network_topology = {
object.router_id = port.device_id;
object.url = port.url;
object.port_status = port.status;
object.port_status_css = (port.status === "ACTIVE")? 'active' : 'down';
object.port_status_class = (port.original_status === "ACTIVE")? 'active' : 'down';
var ip_address = '';
try {
ip_address = port.fixed_ips[0].ip_address;
@ -557,7 +557,7 @@ horizon.flat_network_topology = {
type:d.type,
delete_label: gettext("Delete"),
status:d.status,
status_class:(d.status === "ACTIVE")? 'active' : 'down',
status_class:(d.original_status === "ACTIVE")? 'active' : 'down',
status_label: gettext("STATUS"),
id_label: gettext("ID"),
interfaces_label: gettext("Interfaces"),

View File

@ -919,7 +919,7 @@ horizon.network_topology = {
object.router_id = port.device_id;
object.url = port.url;
object.port_status = port.status;
object.port_status_css = (port.original_status === 'ACTIVE') ? 'active' : 'down';
object.port_status_class = (port.original_status === 'ACTIVE') ? 'active' : 'down';
var ipAddress = '';
try {
for (var ip in port.fixed_ips) {