mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-25 02:21:45 +01:00
of12/3/4/5: fix to_jsondict of OFPActionSetField
Some fields missing in the JSON dict that to_jsondict of OFPActionSetField is returnd. This patch fixes this problem. Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
00c7d2918d
commit
4dc709d90d
@ -1569,7 +1569,9 @@ class OFPActionSetField(OFPAction):
|
||||
o = self
|
||||
return {
|
||||
self.__class__.__name__: {
|
||||
'field': ofproto.oxm_to_jsondict(self.key, self.value)
|
||||
'field': ofproto.oxm_to_jsondict(self.key, self.value),
|
||||
"len": self.len,
|
||||
"type": self.type
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -3285,7 +3285,9 @@ class OFPActionSetField(OFPAction):
|
||||
o = self
|
||||
return {
|
||||
self.__class__.__name__: {
|
||||
'field': ofproto.oxm_to_jsondict(self.key, self.value)
|
||||
'field': ofproto.oxm_to_jsondict(self.key, self.value),
|
||||
"len": self.len,
|
||||
"type": self.type
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -4908,7 +4908,9 @@ class OFPActionSetField(OFPAction):
|
||||
def to_jsondict(self):
|
||||
return {
|
||||
self.__class__.__name__: {
|
||||
'field': ofproto.oxm_to_jsondict(self.key, self.value)
|
||||
'field': ofproto.oxm_to_jsondict(self.key, self.value),
|
||||
"len": self.len,
|
||||
"type": self.type
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -5781,7 +5781,9 @@ class OFPActionSetField(OFPAction):
|
||||
def to_jsondict(self):
|
||||
return {
|
||||
self.__class__.__name__: {
|
||||
'field': ofproto.oxm_to_jsondict(self.key, self.value)
|
||||
'field': ofproto.oxm_to_jsondict(self.key, self.value),
|
||||
"len": self.len,
|
||||
"type": self.type
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,7 +19,9 @@
|
||||
"mask": null,
|
||||
"value": 258
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -46,7 +48,9 @@
|
||||
"mask": null,
|
||||
"value": "01:02:03:04:05:06"
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@ -139,7 +139,9 @@
|
||||
"mask": null,
|
||||
"value": 258
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -264,7 +266,9 @@
|
||||
"mask": null,
|
||||
"value": "01:02:03:04:05:06"
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -275,7 +279,9 @@
|
||||
"mask": null,
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@ -19,7 +19,9 @@
|
||||
"mask": null,
|
||||
"value": 258
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -144,7 +146,9 @@
|
||||
"mask": null,
|
||||
"value": "01:02:03:04:05:06"
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -155,7 +159,9 @@
|
||||
"mask": null,
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@ -25,7 +25,9 @@
|
||||
"mask": null,
|
||||
"value": "192.168.2.9"
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -25,7 +25,9 @@
|
||||
"mask": null,
|
||||
"value": "192.168.2.9"
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@ -22,7 +22,9 @@
|
||||
"mask": null,
|
||||
"value": 6636321
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@ -25,7 +25,9 @@
|
||||
"mask": null,
|
||||
"value": "192.168.2.9"
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -143,7 +143,9 @@
|
||||
"mask": null,
|
||||
"value": 258
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -285,7 +287,9 @@
|
||||
"mask": null,
|
||||
"value": "01:02:03:04:05:06"
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -296,7 +300,9 @@
|
||||
"mask": null,
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@ -20,7 +20,9 @@
|
||||
"mask": null,
|
||||
"value": 258
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -153,7 +155,9 @@
|
||||
"mask": null,
|
||||
"value": "01:02:03:04:05:06"
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -164,7 +168,9 @@
|
||||
"mask": null,
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@ -30,7 +30,9 @@
|
||||
"mask": null,
|
||||
"value": "192.168.2.9"
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -26,7 +26,9 @@
|
||||
"mask": null,
|
||||
"value": "192.168.2.9"
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -26,7 +26,9 @@
|
||||
"mask": null,
|
||||
"value": "192.168.2.9"
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@ -20,7 +20,9 @@
|
||||
"mask": null,
|
||||
"value": "192.168.2.9"
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@ -22,7 +22,9 @@
|
||||
"mask": null,
|
||||
"value": "192.168.2.9"
|
||||
}
|
||||
}
|
||||
},
|
||||
"len": 16,
|
||||
"type": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user