Commit 6e1ae0b8 by Szabolcs Gelencser Committed by Szabolcs Gelencsér

Add flat and smart networks, filter by them on IndexView

parent 3aef4ef5
......@@ -625,3 +625,13 @@ ROLES_SHOWN = [
"developer",
"researcher",
]
FLAT_EXTERNAL_NETWORKS = [
"Flat1",
"Flat2",
]
SMART_EXTERNAL_NETWORKS = [
"Smart1",
"Smart2",
]
\ No newline at end of file
......@@ -109,7 +109,9 @@ class IndexView(LoginRequiredMixin, TemplateView):
# vxlan
all_vxlans = openstack_api.neutron.network_list_for_tenant(self.request, self.request.user.tenant_id)
context['vxlans'] = all_vxlans[:5]
tenant_networks = [n for n in all_vxlans
if n.name not in settings.FLAT_EXTERNAL_NETWORKS + settings.SMART_EXTERNAL_NETWORKS]
context['vxlans'] = tenant_networks[:5]
# toplist
if settings.STORE_URL:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment