clicon / clixon-controller

Clixon network controller
Apache License 2.0
14 stars 5 forks source link

RPC error when using pipe #34

Closed krihal closed 1 year ago

krihal commented 1 year ago
debian@khn-dev[/]# set devices device * config interfaces interface | display cli
Aug 29 06:55:32: cli_dbxml_devs_sub: 1456: Config error: api-path syntax error "/clixon-controller:devices/device=r1/config/ietf-interfaces:interfaces/interface": rpc malformed-message malformed key =interface, expected '=restval' : Invalid argument
CLI command error
debian@khn-dev[/]#
olofhagsand commented 1 year ago

This is because "display cli" is not meaningful for "set" commands. The solution is to not have "display cli" as a menu option for the set command. Or more general, only have it for commands that generate XML output.

krihal commented 1 year ago

This is because "display cli" is not meaningful for "set" commands. The solution is to not have "display cli" as a menu option for the set command. Or more general, only have it for commands that generate XML output.

Same goes for all the other pipe commands such as count, except, grep and tail.

olofhagsand commented 1 year ago

Other than show commands removed @krihal please try again

krihal commented 1 year ago

Verified.