Skip to content

Commit

Permalink
Added button Add Interface on Network Topology tab
Browse files Browse the repository at this point in the history
On the Network Topology tab, when a router is selected a new
button was added to allow it connect with different networks.
This change was made following the most simple mechanism that
I could find, please check if it is the correct behavior.

Change-Id: Ia08c5f22e3237fc4e90767a8becfe6413d754b04
Closes-Bug: #1288779
  • Loading branch information
facundo Farias authored and openstack-gerrit committed Apr 23, 2014
1 parent 84ca8a9 commit 72fe47e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions horizon/static/horizon/js/horizon.networktopology.js
Expand Up @@ -541,6 +541,8 @@ horizon.network_topology = {
};
if (d.type === 'router') {
html_data.port = ports;
html_data.add_interface_url = d.url + 'addinterface';
html_data.add_interface_label = gettext("Add Interface");
html = balloon_tmpl.render(html_data,{
table1:device_tmpl,
table2:port_tmpl
Expand Down
Expand Up @@ -19,6 +19,7 @@
<a href="[[url]][[console]]" class="vnc_window">» [[open_console_label]]</a>
[[/console_id]]
</div>
<a class="add-interface btn btn-primary btn-mini ajax-modal [[type]]" href="[[add_interface_url]]">[[add_interface_label]]</a>
<div class="cell delete">
<button class="delete-device btn btn-danger btn-mini [[type]]" data-type="[[type]]" data-device-id="[[id]]">[[type_capital]]</button>
</div>
Expand Down

0 comments on commit 72fe47e

Please sign in to comment.