Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compatibility fixes for contrail-horizon Liberty-8.0.0
Closes-Bug: #1508467 Change-Id: Iadec45d23ddc24826b94001673ccc82e82d8e019
- Loading branch information
Adam Tengler
committed
Jan 8, 2016
1 parent
1cf1e6c
commit 7f7c89b
Showing
16 changed files
with
328 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
29 changes: 29 additions & 0 deletions
29
openstack_dashboard/dashboards/project/networking_topology/networks/tables.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright 2015 Cisco Systems. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
from contrail_openstack_dashboard.openstack_dashboard.dashboards.project.networking import tables | ||
|
||
|
||
class DeleteNetwork(tables.DeleteNetwork): | ||
redirect_url = "horizon:project:networking_topology:network" | ||
|
||
|
||
class NetworksTable(tables.NetworksTable): | ||
class Meta(object): | ||
name = "networks" | ||
verbose_name = _("Networks") | ||
table_actions = (DeleteNetwork,) | ||
row_actions = (DeleteNetwork,) |
Empty file.
30 changes: 30 additions & 0 deletions
30
openstack_dashboard/dashboards/project/networking_topology/subnets/tables.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright 2015 Cisco Systems. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
|
||
|
||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
from contrail_openstack_dashboard.openstack_dashboard.dashboards.project.networking.subnets import tables | ||
|
||
|
||
class DeleteSubnet(tables.DeleteSubnet): | ||
failure_url = 'horizon:project:networking_topology:network' | ||
|
||
|
||
class SubnetsTable(tables.SubnetsTable): | ||
class Meta(object): | ||
name = "subnets" | ||
verbose_name = _("Subnets") | ||
row_actions = (DeleteSubnet, ) | ||
table_actions = (DeleteSubnet, ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...ject/networking_topology/templates/networking_topology/client_side/_balloon_instance.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% extends "horizon/client_side/template.html" %} | ||
{% load horizon %} | ||
|
||
{% block id %}balloon_instance{% endblock %} | ||
|
||
{% block template %} | ||
{% jstemplate %} | ||
<div class="portTableHeader"> | ||
<div class="title">[[ips_label]]</div> | ||
</div> | ||
<table class="detailInfoTable"> | ||
<caption></caption> | ||
<tbody> | ||
[[#ips]] | ||
<tr> | ||
<th>[[ip_address]]</th> | ||
<td>[[subnet_id]]</td> | ||
</tr> | ||
[[/ips]] | ||
</tbody> | ||
</table> | ||
{% endjstemplate %} | ||
{% endblock %} |
38 changes: 38 additions & 0 deletions
38
...s/project/networking_topology/templates/networking_topology/client_side/_balloon_net.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{% extends "horizon/client_side/template.html" %} | ||
{% load horizon %} | ||
|
||
{% block id %}balloon_net{% endblock %} | ||
|
||
{% block template %} | ||
{% jstemplate %} | ||
<div class="portTableHeader"> | ||
<div class="title">[[subnets_label]]</div> | ||
<div class="action"> | ||
<a class="add-subnet btn btn-default btn-xs ajax-modal [[type]]" href="[[add_subnet_url]]"> | ||
<span class="fa fa-plus"></span> | ||
[[add_subnet_label]] | ||
</a> | ||
</div> | ||
</div> | ||
<table class="detailInfoTable"> | ||
<caption></caption> | ||
<tbody> | ||
[[#subnet]] | ||
<tr> | ||
<th> | ||
<span title="[[id]]"> | ||
<a href="[[url]]">[[id]]</a> | ||
</span> | ||
</th> | ||
<td>[[cidr]]</td> | ||
<td class="delete"> | ||
<button class="delete-port btn btn-danger btn-xs" | ||
data-router-id="[[router_id]]" data-network-id="[[network_id]]" | ||
data-port-id="[[id]]">[[delete_subnet_label]]</button> | ||
</td> | ||
</tr> | ||
[[/subnet]] | ||
</tbody> | ||
</table> | ||
{% endjstemplate %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.