Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6e1ae0b8
authored
6 years ago
by
Szabolcs Gelencser
Committed by
Szabolcs Gelencsér
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add flat and smart networks, filter by them on IndexView
parent
3aef4ef5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
+14
-1
circle/circle/settings/base.py
+11
-0
circle/dashboard/views/index.py
+3
-1
No files found.
circle/circle/settings/base.py
View file @
6e1ae0b8
...
...
@@ -625,3 +625,13 @@ ROLES_SHOWN = [
"developer"
,
"researcher"
,
]
FLAT_EXTERNAL_NETWORKS
=
[
"Flat1"
,
"Flat2"
,
]
SMART_EXTERNAL_NETWORKS
=
[
"Smart1"
,
"Smart2"
,
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
circle/dashboard/views/index.py
View file @
6e1ae0b8
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment