This commit consists of:
1) Parsing protobuf responses from Voltha into a dict which will also
include the yang proto annotations
2) Converting a protobuf response into a yang-compatible XML format
3) Support for GET (no request params) for Voltha, VolthaInstance and VolthaInstances
4) Minor bug fixes
5) Testing done using the MG-Soft Netconf client
Change-Id: Ibb7f62a391e19b0240cc739919fccc689a316005
diff --git a/netconf/nc_rpc/rpc.py b/netconf/nc_rpc/rpc.py
index 5b579c9..bafc58e 100644
--- a/netconf/nc_rpc/rpc.py
+++ b/netconf/nc_rpc/rpc.py
@@ -21,14 +21,13 @@
from lxml import etree
import io
+
+
class Rpc(object):
- def __init__(self,rpc_request, rpc_method, voltha_method_ref,
- grpc_client, session):
- self.rpc_request = rpc_request
- self.rpc_method = rpc_method
+ def __init__(self, request, grpc_client, session):
+ self.request = request
self.rpc_response = RpcResponse()
self.grpc_client = grpc_client
- self.voltha_method_ref = voltha_method_ref
self.session = session