summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason Kölker <jason@koelker.net>2016-03-29 19:18:30 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-03-30 08:07:51 +0900
commit740cc3a0992c4c8485e362d6d7e3319ba483bd87 (patch)
treeea2e01db2ded1d2dc8cbe2844ea9c5f5da2bc7c0
parenta77ab6fddc368118ef11eebfea644b282432621e (diff)
ofproto/ofproto_v1_2_parser: Flake8 Fixes
Signed-off-by: Jason Kölker <jason@koelker.net> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_2_parser.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py
index 2da51951..6c418b45 100644
--- a/ryu/ofproto/ofproto_v1_2_parser.py
+++ b/ryu/ofproto/ofproto_v1_2_parser.py
@@ -1557,16 +1557,6 @@ class OFPActionSetField(OFPAction):
return not hasattr(self, 'value')
def to_jsondict(self):
- # XXX old api compat
- if self._composed_with_old_api():
- # copy object first because serialize_old is destructive
- o2 = OFPActionSetField(self.field)
- # serialize and parse to fill new fields
- buf = bytearray()
- o2.serialize(buf, 0)
- o = OFPActionSetField.parser(six.binary_type(buf), 0)
- else:
- o = self
return {
self.__class__.__name__: {
'field': ofproto.oxm_to_jsondict(self.key, self.value),