blob: 80326157da8162413fb4bde6bd5458ce37575688 [file] [log] [blame]
Zsolt Harasztidafefe12016-11-14 21:29:58 -08001#!/usr/bin/env python
2"""
3Read adapter data while decoding ext1 custom fields.
4"""
5import sys
6from json import dumps
7
8from common.utils.json_format import MessageToDict
9from voltha.protos import adapter_pb2
10
11adapter = adapter_pb2.Adapter()
12binary = sys.stdin.read()
13adapter.ParseFromString(binary)
14
15print dumps(MessageToDict(adapter, strict_any_handling=False))
16