Allow deleting gateway interfaces on network topology

We didn't allow to delete a router_gateway interface from a router
in the network topology due to the checking being done
working only on normal interfaces.

Change-Id: I35f7fc7c0050e1441a740a110fb6f45ddec9371d
Closes-Bug: 1548224
This commit is contained in:
Itxaka 2016-02-22 10:52:20 +01:00
parent e21885d11f
commit 58b905bf1c
1 changed files with 1 additions and 1 deletions

View File

@ -942,7 +942,7 @@ horizon.network_topology = {
object.ip_address = ipAddress;
object.device_owner = deviceOwner;
object.network_id = networkId;
object.is_interface = (deviceOwner === 'router_interface');
object.is_interface = (deviceOwner === 'router_interface' || deviceOwner === 'router_gateway');
ports.push(object);
});
} else if (d.hasOwnProperty('subnets')) {