Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
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
019ee29f
authored
Jun 30, 2018
by
Szabolcs Gelencser
Committed by
Szabolcs Gelencsér
Jun 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filter VxlanList by external networks
parent
6e1ae0b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
circle/network/views.py
+5
-1
No files found.
circle/network/views.py
View file @
019ee29f
...
...
@@ -25,6 +25,7 @@ import openstack_api
from
braces.views
import
LoginRequiredMixin
,
SuperuserRequiredMixin
from
dashboard.forms
import
AclUserOrGroupAddForm
from
dashboard.views
import
AclUpdateView
,
FormView
,
OperationView
,
PermissionDenied
from
django.conf
import
settings
from
django.contrib
import
messages
from
django.contrib.messages.views
import
SuccessMessageMixin
from
django.core.exceptions
import
(
...
...
@@ -980,7 +981,10 @@ class VxlanList(LoginRequiredMixin, SingleTableView):
return
[
"network/vxlan-list.html"
]
def
get_queryset
(
self
):
return
openstack_api
.
neutron
.
network_list
(
self
.
request
)
all_networks
=
openstack_api
.
neutron
.
network_list
(
self
.
request
)
networks
=
[
n
for
n
in
all_networks
if
n
.
name
not
in
settings
.
FLAT_EXTERNAL_NETWORKS
+
settings
.
SMART_EXTERNAL_NETWORKS
]
return
networks
def
get
(
self
,
*
args
,
**
kwargs
):
if
self
.
request
.
is_ajax
():
...
...
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