Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
netdriver.py
+4
-1
No files found.
netdriver.py
View file @
9308614f
...
...
@@ -230,6 +230,9 @@ 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
)
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
...
...
@@ -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