-
-{% endblock %}
diff --git a/astara_horizon/astara_openstack_dashboard/dashboards/admin/astaratenants/tests.py b/astara_horizon/astara_openstack_dashboard/dashboards/admin/astaratenants/tests.py
deleted file mode 100644
index e69de29..0000000
diff --git a/astara_horizon/astara_openstack_dashboard/dashboards/admin/astaratenants/urls.py b/astara_horizon/astara_openstack_dashboard/dashboards/admin/astaratenants/urls.py
deleted file mode 100644
index e7f1682..0000000
--- a/astara_horizon/astara_openstack_dashboard/dashboards/admin/astaratenants/urls.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright (c) 2015 Akanda, Inc. All Rights Reserved.
-#
-# 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.conf.urls import patterns
-from django.conf.urls import url
-
-from astara_horizon.astara_openstack_dashboard.dashboards.admin.astaratenants \
- import views
-
-TENANT = r'^(?P[^/]+)/%s$'
-
-urlpatterns = patterns(
- 'astara_openstack_dashboard.dashboards.admin.astaratenants.views',
- url(r'^$', views.TenantIndexView.as_view(), name='index'),
- url(TENANT % '$', views.TenantRouterIndexView.as_view(), name='tenant'),
- url(r'^(?P[^/]+)/(?P[^/]+)/rebuild$',
- views.RebuildView.as_view(), name='rebuild'),
-)
diff --git a/astara_horizon/astara_openstack_dashboard/dashboards/admin/astaratenants/views.py b/astara_horizon/astara_openstack_dashboard/dashboards/admin/astaratenants/views.py
deleted file mode 100644
index 5c5cc75..0000000
--- a/astara_horizon/astara_openstack_dashboard/dashboards/admin/astaratenants/views.py
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright (c) 2015 Akanda, Inc. All Rights Reserved.
-#
-# 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 django.core.urlresolvers import reverse
-from django.core.urlresolvers import reverse_lazy
-
-from horizon import tables
-from horizon import exceptions
-from horizon import messages
-from horizon import forms
-
-from openstack_dashboard import api
-from openstack_dashboard import policy
-
-from astara_horizon.astara_openstack_dashboard.dashboards.admin.astaratenants \
- import tables as tenant_tables
-from astara_horizon.astara_openstack_dashboard.dashboards.admin.astararouters \
- import forms as astararouters_forms
-from astara_horizon.astara_openstack_dashboard.api.astara import AstaraClient
-
-
-rc = AstaraClient()
-
-
-class TenantIndexView(tables.DataTableView):
- table_class = tenant_tables.TenantsTable
- template_name = 'admin/astaratenants/index.html'
-
- def has_more_data(self, table):
- return self._more
-
- def get_data(self):
- tenants = []
- marker = self.request.GET.get(
- tenant_tables.TenantsTable._meta.pagination_param, None)
- domain_context = self.request.session.get('domain_context', None)
- if policy.check((("admin", "admin:list_projects"),), self.request):
- try:
- tenants, self._more = api.keystone.tenant_list(
- self.request,
- domain=domain_context,
- paginate=True,
- marker=marker)
- except Exception:
- self._more = False
- exceptions.handle(self.request,
- _("Unable to retrieve project list."))
- elif policy.check((("admin", "identity:list_user_projects"),),
- self.request):
- try:
- tenants, self._more = api.keystone.tenant_list(
- self.request,
- user=self.request.user.id,
- paginate=True,
- marker=marker,
- admin=False)
- except Exception:
- self._more = False
- exceptions.handle(self.request,
- _("Unable to retrieve project information."))
- else:
- self._more = False
- msg = \
- _("Insufficient privilege level to view project information.")
- messages.info(self.request, msg)
- return tenants
-
-
-class TenantRouterIndexView(tables.DataTableView):
- table_class = tenant_tables.TenantRouterTable
- template_name = 'admin/astaratenants/router-index.html'
-
- def has_prev_data(self, table):
- return getattr(self, "_prev", False)
-
- def has_more_data(self, table):
- return getattr(self, "_more", False)
-
- def get_context_data(self, **kwargs):
- context = super(TenantRouterIndexView, self).get_context_data(**kwargs)
- context["tenant_id"] = self.kwargs['tenant_id']
- tenant = api.keystone.tenant_get(self.request,
- self.kwargs['tenant_id'],
- admin=True)
- context["title"] = "Routers of tenant \"%s\"" % tenant.name
- return context
-
- def get_data(self):
- try:
- routers, self._more = rc.get_routers(
- self.request,
- tenant_id=self.kwargs['tenant_id']
- )
- return routers
- except Exception:
- url = reverse('horizon:admin:astaratenants:index')
- exceptions.handle(self.request,
- _('Unable to retrieve routers\' details.'),
- redirect=url)
-
-
-class RebuildView(forms.ModalFormView):
- form_class = astararouters_forms.RebuildForm
- template_name = 'admin/astaratenants/rebuild.html'
- success_url = reverse_lazy('horizon:admin:astaratenants:index')
-
- def get_success_url(self):
- return reverse("horizon:admin:astaratenants:tenant",
- args=(self.kwargs['tenant_id'],))
-
- def get_context_data(self, **kwargs):
- self.router = api.neutron.router_get(self.request,
- self.kwargs['router_id'])
- context = super(RebuildView, self).get_context_data(**kwargs)
- context["router_id"] = self.kwargs['router_id']
- context["tenant_id"] = self.kwargs['tenant_id']
- context["router_name"] = self.router['name']
- return context
-
- def get_initial(self):
- return {
- 'router_id': self.kwargs['router_id'],
- 'tenant_id': self.kwargs['tenant_id'],
- 'router_name': self.get_context_data()['router_name']
- }
diff --git a/astara_horizon/astara_openstack_dashboard/overrides.py b/astara_horizon/astara_openstack_dashboard/overrides.py
deleted file mode 100644
index 3f491ab..0000000
--- a/astara_horizon/astara_openstack_dashboard/overrides.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright (c) 2015 Akanda, Inc. All Rights Reserved.
-#
-# 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 openstack_dashboard.dashboards.admin.networks import views
-from openstack_dashboard.dashboards.admin.networks.ports \
- import tables as ports_tables
-from openstack_dashboard.dashboards.admin.networks.subnets \
- import tables as subnets_tables
-
-
-# override network tables to delete dhcp agent table
-views.DetailView.table_classes = (subnets_tables.SubnetsTable,
- ports_tables.PortsTable)
diff --git a/openstack_dashboard_extensions/_80_admin_astara.py b/openstack_dashboard_extensions/_80_admin_astara.py
deleted file mode 100644
index 31a979c..0000000
--- a/openstack_dashboard_extensions/_80_admin_astara.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copyright (c) 2015 Akanda, Inc. All Rights Reserved.
-#
-# 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.
-
-# The name of the panel group to be added to HORIZON_CONFIG. Required.
-PANEL_GROUP = 'astara'
-# The display name of the PANEL_GROUP. Required.
-PANEL_GROUP_NAME = 'Astara'
-# The name of the dashboard the PANEL_GROUP associated with. Required.
-PANEL_GROUP_DASHBOARD = 'admin'
diff --git a/openstack_dashboard_extensions/_81_admin_astara_routers.py b/openstack_dashboard_extensions/_81_admin_astara_routers.py
deleted file mode 100644
index 3930bd6..0000000
--- a/openstack_dashboard_extensions/_81_admin_astara_routers.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright (c) 2015 Akanda, Inc. All Rights Reserved.
-#
-# 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.
-
-# The name of the panel to be added to HORIZON_CONFIG. Required.
-PANEL = 'astararouters'
-# The name of the dashboard the PANEL associated with. Required.
-PANEL_DASHBOARD = 'admin'
-# The name of the panel group the PANEL is associated with.
-PANEL_GROUP = 'astara'
-
-# Python panel class of the PANEL to be added.
-ADD_PANEL = \
- 'astara_horizon.astara_openstack_dashboard.dashboards.admin.astararouters.panel.AstaraRouters'
diff --git a/openstack_dashboard_extensions/_82_admin_astara_tenants.py b/openstack_dashboard_extensions/_82_admin_astara_tenants.py
deleted file mode 100644
index 24b96e5..0000000
--- a/openstack_dashboard_extensions/_82_admin_astara_tenants.py
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright (c) 2015 Akanda, Inc. All Rights Reserved.
-#
-# 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.
-
-# The name of the panel to be added to HORIZON_CONFIG. Required.
-PANEL = 'astaratenants'
-# The name of the dashboard the PANEL associated with. Required.
-PANEL_DASHBOARD = 'admin'
-# The name of the panel group the PANEL is associated with.
-PANEL_GROUP = 'astara'
-
-# Python panel class of the PANEL to be added.
-ADD_PANEL = (
- 'astara_horizon.astara_openstack_dashboard.dashboards.admin.astaratenants.'
- 'panel.AstaraTenants')
-
diff --git a/setup.cfg b/setup.cfg
deleted file mode 100644
index 834ccae..0000000
--- a/setup.cfg
+++ /dev/null
@@ -1,41 +0,0 @@
-[metadata]
-name = astara-horizon
-summary = Astara plugin for Horizon
-description-file =
- README.md
-author = OpenStack
-author-email = openstack-dev@lists.openstack.org
-home-page = http://github.com/openstack/astara-horizon
-classifier =
- Environment :: OpenStack
- Intended Audience :: Developers
- Intended Audience :: Information Technology
- Intended Audience :: System Administrators
- License :: OSI Approved :: Apache Software License
- Operating System :: POSIX :: Linux
- Programming Language :: Python
- Programming Language :: Python :: 2
- Programming Language :: Python :: 2.7
-
-
-[files]
-packages =
- astara_horizon
- astara_horizon.astara_openstack_dashboard
-namespace_packages =
- astara_horizon
-
-[global]
-setup-hooks =
- pbr.hooks.setup_hook
-
-[build_sphinx]
-all_files = 1
-build-dir = doc/build
-source-dir = doc/source
-
-[nosetests]
-where = test
-verbosity = 2
-detailed-errors = 1
-cover-package = astara_horizon
diff --git a/setup.py b/setup.py
deleted file mode 100644
index 782bb21..0000000
--- a/setup.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
-#
-# 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.
-
-# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
-import setuptools
-
-# In python < 2.7.4, a lazy loading of package `pbr` will break
-# setuptools if some other modules registered functions in `atexit`.
-# solution from: http://bugs.python.org/issue15881#msg170215
-try:
- import multiprocessing # noqa
-except ImportError:
- pass
-
-setuptools.setup(
- setup_requires=['pbr>=1.8'],
- pbr=True)
diff --git a/test-requirements.txt b/test-requirements.txt
deleted file mode 100644
index 99889c3..0000000
--- a/test-requirements.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-# The order of packages is significant, because pip processes them in the order
-# of appearance. Changing the order has an impact on the overall integration
-# process, which may cause wedges in the gate later.
-unittest2 # BSD
-nose # LGPL
-coverage>=3.6 # Apache-2.0
-mock>=2.0 # BSD
-pep8==1.5.7 # MIT
-eventlet!=0.18.3,>=0.18.2 # MIT
-iso8601>=0.1.11 # MIT
-python-novaclient!=2.33.0,>=2.29.0 # Apache-2.0
-WebOb>=1.2.3 # MIT
-mox>=0.5.3 # Apache-2.0
-testtools>=1.4.0 # MIT
-fixtures>=3.0.0 # Apache-2.0/BSD
diff --git a/test/README.md b/test/README.md
deleted file mode 120000
index 61cfe9a..0000000
--- a/test/README.md
+++ /dev/null
@@ -1 +0,0 @@
-./README.md
\ No newline at end of file
diff --git a/tox.ini b/tox.ini
deleted file mode 100644
index 9f3ad31..0000000
--- a/tox.ini
+++ /dev/null
@@ -1,33 +0,0 @@
-[tox]
-envlist = py27,pep8
-
-[testenv]
-distribute = False
-setenv = VIRTUAL_ENV={envdir}
-deps = -r{toxinidir}/test-requirements.txt
-commands = nosetests --with-coverage {posargs}
-sitepackages = False
-
-[tox:jenkins]
-
-[testenv:style]
-deps = flake8
-setuptools_git>=0.4
-commands = flake8 astara_horizon setup.py
-
-[testenv:pep8]
-deps = {[testenv:style]deps}
-commands = {[testenv:style]commands}
-
-[testenv:doc]
-deps = Sphinx
-commands = sphinx-build doc/source doc/build
-
-[testenv:cover]
-setenv = NOSE_WITH_COVERAGE=1
-
-[testenv:venv]
-commands = {posargs}
-
-[flake8]
-ignore = E133,E226,E241,E242,E731