From 2443d95a9ca3810597729a8f11cf82ed601fd9b6 Mon Sep 17 00:00:00 2001 From: Scott Ware Date: Fri, 17 Apr 2015 14:17:01 -0400 Subject: [PATCH] Added method to allow custom RPC commands --- netconf/rpc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netconf/rpc.go b/netconf/rpc.go index 4eb3609..21098cb 100644 --- a/netconf/rpc.go +++ b/netconf/rpc.go @@ -78,3 +78,7 @@ func MethodUnlock(target string) RawMethod { func MethodGetConfig(source string) RawMethod { return RawMethod(fmt.Sprintf("<%s/>", source)) } + +func MethodRPC(command string) RawMethod { + return RawMethod(fmt.Sprintf("%s", command)) +}