projects
/
osm
/
vim-emu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: Removed depricated Docker build scripts and test scripts.
[osm/vim-emu.git]
/
src
/
emuvim
/
dcemulator
/
son_emu_simple_switch_13.py
diff --git
a/src/emuvim/dcemulator/son_emu_simple_switch_13.py
b/src/emuvim/dcemulator/son_emu_simple_switch_13.py
index
ce2f544
..
53d1a2e
100755
(executable)
--- a/
src/emuvim/dcemulator/son_emu_simple_switch_13.py
+++ b/
src/emuvim/dcemulator/son_emu_simple_switch_13.py
@@
-44,11
+44,12
@@
class SimpleSwitch13(app_manager.RyuApp):
# truncated packet data. In that case, we cannot output packets
# correctly. The bug has been fixed in OVS v2.1.0.
match = parser.OFPMatch()
# truncated packet data. In that case, we cannot output packets
# correctly. The bug has been fixed in OVS v2.1.0.
match = parser.OFPMatch()
- actions = [parser.OFPActionOutput(ofproto.OFPP_CONTROLLER,
- ofproto.OFPCML_NO_BUFFER)]
+ #actions = [parser.OFPActionOutput(ofproto.OFPP_CONTROLLER,
+ # ofproto.OFPCML_NO_BUFFER)]
+ actions = [parser.OFPActionOutput(ofproto.OFPCML_NO_BUFFER)]
self.add_flow(datapath, 0, match, actions)
self.add_flow(datapath, 0, match, actions)
- def add_flow(self, datapath, priority, match, actions, buffer_id=None):
+ def add_flow(self, datapath, priority, match, actions, buffer_id=None
, table_id=0
):
ofproto = datapath.ofproto
parser = datapath.ofproto_parser
ofproto = datapath.ofproto
parser = datapath.ofproto_parser
@@
-57,10
+58,10
@@
class SimpleSwitch13(app_manager.RyuApp):
if buffer_id:
mod = parser.OFPFlowMod(datapath=datapath, buffer_id=buffer_id,
priority=priority, match=match,
if buffer_id:
mod = parser.OFPFlowMod(datapath=datapath, buffer_id=buffer_id,
priority=priority, match=match,
- instructions=inst)
+ instructions=inst
, table_id=table_id
)
else:
mod = parser.OFPFlowMod(datapath=datapath, priority=priority,
else:
mod = parser.OFPFlowMod(datapath=datapath, priority=priority,
- match=match, instructions=inst)
+ match=match, instructions=inst
, table_id=table_id
)
datapath.send_msg(mod)
# new switch detected
datapath.send_msg(mod)
# new switch detected
@@
-74,7
+75,7
@@
class SimpleSwitch13(app_manager.RyuApp):
# send NORMAL action for all undefined flows
ofp_parser = datapath.ofproto_parser
actions = [ofp_parser.OFPActionOutput(ofproto_v1_3.OFPP_NORMAL)]
# send NORMAL action for all undefined flows
ofp_parser = datapath.ofproto_parser
actions = [ofp_parser.OFPActionOutput(ofproto_v1_3.OFPP_NORMAL)]
- self.add_flow(datapath, 0, None, actions)
+ self.add_flow(datapath, 0, None, actions
, table_id=0
)
@set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)
@set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)