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
589cdc2f
authored
Jul 19, 2013
by
tarokkk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ovs commands log
parent
352c12c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
nwdriver.py
+21
-0
No files found.
nwdriver.py
View file @
589cdc2f
...
...
@@ -15,7 +15,28 @@ class NWDriver:
return
return_val
def
nw_create
(
self
,
vm
):
for
network
in
vm
.
network_list
:
self
.
port_create
(
network
)
pass
def
nw_delete
(
self
,
vm
):
pass
def
port_create
(
self
,
network
):
'''
add-port BRIDGE PORT
set Port vnet18 tag=9
add-flow cloud in_port=245,dl_src=02:00:0a:09:01:8a,udp,tp_dst=68,priority=43000,actions=drop".
add-flow cloud in_port=245,dl_src=02:00:0a:09:01:8a,ip,nw_src=10.9.1.138,priority=42000,actions=normal".
add-flow cloud in_port=245,dl_src=02:00:0a:09:01:8a,ipv6,ipv6_src=2001:738:2001:4031:9:1:138:0/112,priority=42000,actions=normal".
add-flow cloud in_port=245,dl_src=02:00:0a:09:01:8a,arp,nw_src=10.9.1.138,priority=41000,actions=normal".
add-flow cloud in_port=245,dl_src=02:00:0a:09:01:8a,udp,tp_dst=67,priority=40000,actions=normal".
add-flow cloud in_port=245,priority=39000,actions=drop".
'''
self
.
ovs_command_execute
(
''
)
self
.
ovs_command_execute
(
''
)
self
.
ovs_command_execute
(
''
)
self
.
ovs_command_execute
(
''
)
self
.
ovs_command_execute
(
''
)
self
.
ovs_command_execute
(
''
)
self
.
ovs_command_execute
(
''
)
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