-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Hello, team!
I've faced with issue in gnetclisdk related to NETCONF functionality:
Both ways to execute netconf rpc is not worked:
- By netconf_session context manager
async with api.netconf_session(hostname=host) as s:
res = await s.cmd(cmd=rpc)
gnetclisdk.exceptions.Unauthenticated: AioRpcError unauthenticated verbose:unauthenticatedThere is similar issue has been fixed already with cmd_session, probably is the same root cause.
- By cmd_netconf
res = await api.cmd_netconf(hostname=host, cmd=rpc)
pbcmd = server_pb2.CMDNetconf(host=hostname, cmd=cmd, json=json, trace=trace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Protocol message CMDNetconf has no "trace" field.It seems CMDNetconf don't expect trace field:
class CMDNetconf(_message.Message):
__slots__ = ("host", "cmd", "json", "read_timeout", "cmd_timeout")Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels