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
e9b1d76f
authored
Apr 03, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall: fix random errors
parent
ac8ffba0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
firewall/models.py
+1
-0
one/views.py
+1
-1
No files found.
firewall/models.py
View file @
e9b1d76f
...
@@ -10,6 +10,7 @@ from django.core.validators import MinValueValidator, MaxValueValidator
...
@@ -10,6 +10,7 @@ from django.core.validators import MinValueValidator, MaxValueValidator
from
cloud.settings
import
firewall_settings
as
settings
from
cloud.settings
import
firewall_settings
as
settings
from
django.db.models.signals
import
post_save
from
django.db.models.signals
import
post_save
import
re
import
re
import
random
class
Rule
(
models
.
Model
):
class
Rule
(
models
.
Model
):
CHOICES_type
=
((
'host'
,
'host'
),
(
'firewall'
,
'firewall'
),
CHOICES_type
=
((
'host'
,
'host'
),
(
'firewall'
,
'firewall'
),
...
...
one/views.py
View file @
e9b1d76f
...
@@ -430,7 +430,7 @@ class VmPortAddView(View):
...
@@ -430,7 +430,7 @@ class VmPortAddView(View):
public
=
None
,
private
=
port
)
public
=
None
,
private
=
port
)
else
:
else
:
inst
.
firewall_host
.
add_port
(
proto
=
request
.
POST
[
'proto'
],
inst
.
firewall_host
.
add_port
(
proto
=
request
.
POST
[
'proto'
],
public
=
p
rivate
,
private
=
None
)
public
=
p
ort
,
private
=
None
)
except
:
except
:
messages
.
error
(
request
,
_
(
u"Adding port failed."
))
messages
.
error
(
request
,
_
(
u"Adding port failed."
))
...
...
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