of1.2: make set_metadata implementation consistent with the rest

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2012-07-25 11:48:43 +09:00
parent f2ac2b5e15
commit 2bf07c065a

View File

@ -1723,8 +1723,7 @@ class OFPMatch(object):
self.flow.in_phy_port = phy_port
def set_metadata(self, metadata):
self.wc.ft_set(ofproto_v1_2.OFPXMT_OFB_METADATA)
self.flow.metadata = metadata
self.set_metadata_masked(metadata, UINT64_MAX)
def set_metadata_masked(self, metadata, mask):
self.wc.ft_set(ofproto_v1_2.OFPXMT_OFB_METADATA)