Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
fwdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8702eb74
authored
Mar 12, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
random fixes v2
parent
557ab841
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
fw.py
+2
-3
miscellaneous/firewall.conf
+3
-1
ovs.py
+1
-1
No files found.
fw.py
View file @
8702eb74
...
@@ -231,11 +231,11 @@ def start_networking():
...
@@ -231,11 +231,11 @@ def start_networking():
reload_firewall_vlan
(
data
,
True
)
reload_firewall_vlan
(
data
,
True
)
except
:
except
:
print
'nemsikerult:('
print
'nemsikerult:('
raise
#
raise
def
main
():
def
main
():
start_networking
()
start_networking
()
start_firewall
()
start_firewall
()
main
()
main
()
\ No newline at end of file
miscellaneous/firewall.conf
View file @
8702eb74
...
@@ -11,8 +11,10 @@ setuid fw
...
@@ -11,8 +11,10 @@ setuid fw
script
script
cd
/
home
/
fw
/
fwdriver
cd
/
home
/
fw
/
fwdriver
. /
home
/
fw
/.
virtualenvs
/
fw
/
bin
/
postactivate
. /
home
/
fw
/.
virtualenvs
/
fw
/
bin
/
activate
. /
home
/
fw
/.
virtualenvs
/
fw
/
bin
/
activate
celeryd
-
A
fw
-
Q
firewall
,
dhcp
--
loglevel
=
info
HOSTNAME
=$(
hostname
-
s
)
exec
celeryd
-
A
fw
-
Q
${
HOSTNAME
}.
firewall
--
loglevel
=
info
-
c
1
end
script
end
script
ovs.py
View file @
8702eb74
...
@@ -96,7 +96,7 @@ class Switch:
...
@@ -96,7 +96,7 @@ class Switch:
name
]
+
interfaces
+
[
'tag=
%
d'
%
int
(
tag
)]
name
]
+
interfaces
+
[
'tag=
%
d'
%
int
(
tag
)]
else
:
else
:
params
=
[
'add-port'
,
self
.
brname
,
name
]
params
=
[
'add-port'
,
self
.
brname
,
name
]
if
tag
is
not
None
:
if
tag
is
not
None
and
(
trunks
is
None
or
len
(
trunks
)
==
0
)
:
params
=
params
+
[
'tag=
%
d'
%
int
(
tag
)]
params
=
params
+
[
'tag=
%
d'
%
int
(
tag
)]
if
internal
:
if
internal
:
params
=
params
+
[
'--'
,
'set'
,
'Interface'
,
interfaces
[
0
],
params
=
params
+
[
'--'
,
'set'
,
'Interface'
,
interfaces
[
0
],
...
...
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