blob: e9101888283f21bab423aee716b0421cee5bb626 [file] [log] [blame]
#!/usr/bin/env python
"""
Read adapter data while ignoring custom fields
"""
import sys
from json import dumps
from common.utils.json_format import MessageToDict
from voltha.protos import adapter_pb2
adapter = adapter_pb2.Adapter()
binary = sys.stdin.read()
adapter.ParseFromString(binary)
print dumps(MessageToDict(adapter, strict_any_handling=False))