Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
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
9308614f
authored
Oct 02, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netdriver: fixing interface pull up and port_delete
parent
34197891
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
netdriver.py
+5
-2
No files found.
netdriver.py
View file @
9308614f
...
...
@@ -230,7 +230,10 @@ def port_delete(network):
ipv6_filter
(
network
,
port_number
,
delete
=
True
)
arp_filter
(
network
,
port_number
,
delete
=
True
)
enable_dhcp_client
(
network
,
port_number
,
delete
=
True
)
disable_all_not_allowed_trafic
(
network
,
port_number
,
delete
=
True
)
else
:
mac_filter
(
network
,
port_number
,
delete
=
True
)
# Explicit deny all other traffic
disable_all_not_allowed_trafic
(
network
,
port_number
,
delete
=
True
)
# Delete port
del_port_from_bridge
(
network
.
name
)
...
...
@@ -241,7 +244,7 @@ def port_delete(network):
def
pull_up_interface
(
network
):
command
=
[
'sudo'
,
'ip'
,
'link'
,
'set'
,
'up'
,
network
]
command
=
[
'sudo'
,
'ip'
,
'link'
,
'set'
,
'up'
,
network
.
name
]
return_val
=
subprocess
.
call
(
command
)
logging
.
info
(
'IP command:
%
s executed.'
,
command
)
return
return_val
...
...
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