Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
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
from
cloud.settings
import
firewall_settings
as
settings
from
django.db.models.signals
import
post_save
import
re
import
random
class
Rule
(
models
.
Model
):
CHOICES_type
=
((
'host'
,
'host'
),
(
'firewall'
,
'firewall'
),
...
...
one/views.py
View file @
e9b1d76f
...
...
@@ -430,7 +430,7 @@ class VmPortAddView(View):
public
=
None
,
private
=
port
)
else
:
inst
.
firewall_host
.
add_port
(
proto
=
request
.
POST
[
'proto'
],
public
=
p
rivate
,
private
=
None
)
public
=
p
ort
,
private
=
None
)
except
:
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