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
Commit
633b1b50
authored
Feb 10, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netdriver: clean code
parent
0743162b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
15 deletions
+1
-15
netdriver.py
+1
-15
No files found.
netdriver.py
View file @
633b1b50
...
...
@@ -243,23 +243,9 @@ def port_create(network):
def
port_delete
(
network
):
""" Remove port from bridge and remove rules from flow database. """
# Getting network FlowPortNumber
port_number
=
get_fport_for_network
(
network
)
# Clear network rules - debuggin 1 by 1 delete
#if network.managed:
# ban_dhcp_server(network, port_number, remove=True)
# ipv4_filter(network, port_number, remove=True)
# ipv6_filter(network, port_number, remove=True)
# arp_filter(network, port_number, remove=True)
# enable_dhcp_client(network, port_number, remove=True)
#else:
# mac_filter(network, port_number, remove=True)
# Clear all port rules
clear_port_rules
(
network
)
# Explicit deny all other traffic
disable_all_not_allowed_trafic
(
network
,
port_number
,
remove
=
True
)
# Delete port
del_port_from_bridge
(
network
.
name
)
...
...
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