Signed-off-by: YAMAMOTO Takashi <yamam...@valinux.co.jp> --- ryu/ofproto/ofproto_v1_0_parser.py | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py index e1951c8..03cbc65 100644 --- a/ryu/ofproto/ofproto_v1_0_parser.py +++ b/ryu/ofproto/ofproto_v1_0_parser.py @@ -83,6 +83,8 @@ class OFPPhyPort(ofproto_parser.namedtuple('OFPPhyPort', ( 'port_no', 'hw_addr', 'name', 'config', 'state', 'curr', 'advertised', 'supported', 'peer'))): + _JSON_FORMATTER = {'hw_addr': addrconv.plain_text} + @classmethod def parser(cls, buf, offset): port = struct.unpack_from(ofproto_v1_0.OFP_PHY_PORT_PACK_STR, @@ -2102,6 +2104,9 @@ class OFPFlowMod(MsgBase): @_set_msg_type(ofproto_v1_0.OFPT_PORT_MOD) class OFPPortMod(MsgBase): + + _JSON_FORMATTER = {'hw_addr': addrconv.plain_text} + def __init__(self, datapath, port_no, hw_addr, config, mask, advertise): super(OFPPortMod, self).__init__(datapath) self.port_no = port_no -- 1.8.3.1 ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel