]> git.proxmox.com Git - mirror_frr.git/commit - lib/vty.h
ospfd: Fix MI-OSPF configuraton clis
authorChirag Shah <chirag@cumulusnetworks.com>
Thu, 3 Aug 2017 23:34:17 +0000 (16:34 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Fri, 4 Aug 2017 14:47:45 +0000 (07:47 -0700)
commita3d826f0ea4e773ef2e359390e143d13f22a55e5
treec5440aa04e7e445f114e466469c62370c4e327d4
parentef8482267d2cc90053e422b88a9744cea315e70b
ospfd: Fix MI-OSPF configuraton clis

Multi-Instance OSPF configuration CLI would fail because
first client return error upon seeing qobj_index being 0.
With new marco generate new error code to return from each
instance (vtysh client) and if the command is intended for given
instance, its qobj_index would be nonzero and process the command
and push correct ospf context. Other instance would return the error.
On vtysh end, check all instance return an error log a message to a
file.

Testing Done:
Verfied various MI-OSPF configuration CLI with multi instances.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
lib/command.h
lib/vty.h
ospfd/ospf_opaque.c
ospfd/ospf_te.c
ospfd/ospf_vty.c
vtysh/vtysh.c