blob: a187137da18d8727a0d3cc8b2fcc498bace6ee67 [file] [log] [blame]
Zsolt Harasztidafefe12016-11-14 21:29:58 -08001#!/usr/bin/env python
2"""
3Read adapter data while decoding ext2 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