Skip to content

Problem with netconf feature #141

@anteron1992

Description

@anteron1992

Hello, team!

I've faced with issue in gnetclisdk related to NETCONF functionality:
Both ways to execute netconf rpc is not worked:

  1. 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:unauthenticated

There is similar issue has been fixed already with cmd_session, probably is the same root cause.

  1. 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")

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions