-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
I have a container setup with the latest versions of cligen, clixon, clixon-controller, and clixon-pyapi.
When sending an RPC to a device following the instructions in https://clixon-controller-docs.readthedocs.io/en/latest/cli.html#send-the-rpc, I get an error 'Template not found' when calling cx.device_rpc("*", "stats", {"MODULES": "true"})
(Pdb) l
396
397 send(self.__socket, rpc, pp)
398
399 data = read(self.__socket, pp, standalone=self.__standalone)
400
401 -> if "<ok/>" not in data:
402 raise ValueError("Apply template failed")
403
404 return True
405
406 def apply_template(self, devname: str, template: str, variables: dict) -> None:
(Pdb) p data
'<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><rpc-error><error-type>application</error-type><error-tag>operation-failed</error-tag><error-severity>error</error-severity><error-message>Template not found</error-message></rpc-error></rpc-reply>'
If I downgrade clixon-pyapi to version 1.4.0, the device_rpc call works as expected.