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
a884e528
authored
Apr 22, 2018
by
Szabolcs Gelencser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add initial template list
parent
8f13987f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
.idea/workspace.xml
+0
-0
circle/network/tables.py
+3
-3
circle/network/views.py
+2
-2
No files found.
.idea/workspace.xml
View file @
a884e528
This diff is collapsed.
Click to expand it.
circle/network/tables.py
View file @
a884e528
...
...
@@ -236,13 +236,13 @@ class VlanGroupTable(Table):
class
VxlanTable
(
Table
):
name
=
LinkColumn
(
'network.vxlan'
,
args
=
[
A
(
'
vni
'
)])
name
=
LinkColumn
(
'network.vxlan'
,
args
=
[
A
(
'
id
'
)])
class
Meta
:
model
=
Vxlan
attrs
=
{
'class'
:
'table table-striped table-condensed'
}
fields
=
(
'
vni'
,
'
name'
,
)
order_by
=
'
vni
'
fields
=
(
'name'
,
)
order_by
=
'
name
'
class
HostRecordsTable
(
Table
):
...
...
circle/network/views.py
View file @
a884e528
...
...
@@ -969,7 +969,7 @@ class VlanGroupDelete(LoginRequiredMixin, SuperuserRequiredMixin, DeleteView):
class
VxlanList
(
LoginRequiredMixin
,
SingleTableView
):
model
=
Vxlan
model
=
Network
table_class
=
VxlanTable
table_pagination
=
False
...
...
@@ -980,7 +980,7 @@ class VxlanList(LoginRequiredMixin, SingleTableView):
return
[
"network/vxlan-list.html"
]
def
get_queryset
(
self
):
return
Vxlan
.
get_objects_with_level
(
'user'
,
self
.
request
.
user
)
return
openstack_api
.
neutron
.
network_list
(
self
.
request
)
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