]> git.puffer.fish Git - mirror/frr.git/commit
vtysh: add the "show yang operational-data" command 5042/head
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 23 Sep 2019 12:38:03 +0000 (09:38 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 23 Sep 2019 12:38:05 +0000 (09:38 -0300)
commiteba4e1ea9f9763aa8fad9f80eeeba6369e7d1ad2
tree84d7ce3f257297e9e4594c93c0f34449723f62b9
parent4ad771401e18fef1d85de2df73b41fa512162b54
vtysh: add the "show yang operational-data" command

The right way to implement this command in vtysh is the following:
* Send the command to each running FRR daemon;
* Collect the command output from each daemon;
* Parse the text outputs into libyang lyd_node structures. Then merge
  all these data trees into a single one. Finally, print the merged
  data trees to the standard output (libyang will take care of
  combining duplicate nodes as necessary).

What this commit does is to allow vtysh to send the "show yang
operational-data" command to a single daemon only (the last
parameter).  It's a quick workaround to allow us to write topotests
using YANG-modeled data until we do the real thing (full vtysh
northbound integration).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
vtysh/vtysh.c