diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-09-09 17:12:49 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-09-14 08:01:34 +0900 |
commit | 9ae95a88d41522ab232cf2fa27998114a7b34077 (patch) | |
tree | 6be6844d84aea12f65531cb1241535a4d179caa0 | |
parent | 9ab6cc607b78ffa460a6ae447f9352df090ed9a8 (diff) |
simple_switch: simplify
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/app/simple_switch.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ryu/app/simple_switch.py b/ryu/app/simple_switch.py index 0397bc48..400092c6 100644 --- a/ryu/app/simple_switch.py +++ b/ryu/app/simple_switch.py @@ -43,13 +43,8 @@ class SimpleSwitch(app_manager.RyuApp): def add_flow(self, datapath, in_port, dst, actions): ofproto = datapath.ofproto - wildcards = ofproto_v1_0.OFPFW_ALL - wildcards &= ~ofproto_v1_0.OFPFW_IN_PORT - wildcards &= ~ofproto_v1_0.OFPFW_DL_DST - match = datapath.ofproto_parser.OFPMatch( - wildcards, in_port, 0, dst, - 0, 0, 0, 0, 0, 0, 0, 0, 0) + in_port=in_port, dl_dst=dst) mod = datapath.ofproto_parser.OFPFlowMod( datapath=datapath, match=match, cookie=0, |