Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8493ed67
authored
Feb 25, 2013
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall: unused code removed
parent
2d520ecb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
firewall/models.py
+0
-3
firewall/views.py
+0
-1
No files found.
firewall/models.py
View file @
8493ed67
...
@@ -214,9 +214,6 @@ class Host(models.Model):
...
@@ -214,9 +214,6 @@ class Host(models.Model):
'private'
:
rule
.
nat_dport
})
'private'
:
rule
.
nat_dport
})
return
retval
return
retval
def
del_rules
(
self
):
self
.
rules
.
filter
(
owner
=
self
.
owner
)
.
delete
()
def
get_fqdn
(
self
):
def
get_fqdn
(
self
):
return
self
.
hostname
+
u'.'
+
unicode
(
self
.
vlan
.
domain
)
return
self
.
hostname
+
u'.'
+
unicode
(
self
.
vlan
.
domain
)
...
...
firewall/views.py
View file @
8493ed67
...
@@ -78,7 +78,6 @@ def firewall_api(request):
...
@@ -78,7 +78,6 @@ def firewall_api(request):
host
=
models
.
Host
.
objects
.
get
(
hostname
=
data
[
"hostname"
],
host
=
models
.
Host
.
objects
.
get
(
hostname
=
data
[
"hostname"
],
owner
=
owner
)
owner
=
owner
)
host
.
del_rules
()
host
.
delete
()
host
.
delete
()
else
:
else
:
raise
Exception
(
_
(
"Unknown command."
))
raise
Exception
(
_
(
"Unknown command."
))
...
...
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