summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorWATANABE Fumitaka <watanabe.fumitaka@nttcom.co.jp>2013-10-29 21:09:16 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-10-29 21:51:30 +0900
commitc0cd5da68f623e6ff5d9ea12e5997abd5eb32cfb (patch)
tree4b9a58fd24064b83a0fbec84f59ecb50515558c1
parent0ced2d9fbca2e4ce1790b7a5c9989a810c13aa55 (diff)
rest_router: fix mac address conversion
use the new API. Signed-off-by: WATANABE Fumitaka <watanabe.fumitaka@nttcom.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/app/rest_router.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/ryu/app/rest_router.py b/ryu/app/rest_router.py
index ece4508f..6a5c865d 100644
--- a/ryu/app/rest_router.py
+++ b/ryu/app/rest_router.py
@@ -1764,13 +1764,9 @@ class OfCtl_v1_2(OfCtl):
if dec_ttl:
actions.append(ofp_parser.OFPActionDecNwTtl())
if src_mac:
- set_src = ofp_parser.OFPMatchField.make(ofp.OXM_OF_ETH_SRC,
- src_mac)
- actions.append(ofp_parser.OFPActionSetField(set_src))
+ actions.append(ofp_parser.OFPActionSetField(eth_src=src_mac))
if dst_mac:
- set_dst = ofp_parser.OFPMatchField.make(ofp.OXM_OF_ETH_DST,
- dst_mac)
- actions.append(ofp_parser.OFPActionSetField(set_dst))
+ actions.append(ofp_parser.OFPActionSetField(eth_dst=dst_mac))
if outport is not None:
actions.append(ofp_parser.OFPActionOutput(outport, 0))