frr: enable frr-vtysh by defalult and hide it
authorGeorgi Valkov <redacted>
Thu, 2 May 2024 12:23:22 +0000 (15:23 +0300)
committerTianling Shen <redacted>
Tue, 28 May 2024 05:59:43 +0000 (13:59 +0800)
commitfd8467d1a215203c56ab821e009983f38b616990
treed3ca765c13b5dc2e22b48edafe6b96fdff43aa96
parentda26ac2725e8fc4b6b9b504bb422b420f2d85636
frr: enable frr-vtysh by defalult and hide it

Fixes [1]
lib/vty.c: In function 'vty_mgmt_resume_response':
lib/vty.c:195:27: error: 'VTYSH_READ' undeclared (first use in this function); did you mean 'VTY_READ'?
  195 |                 vty_event(VTYSH_READ, vty);
      |                           ^~~~~~~~~~
      |                           VTY_READ

The error is a bug in frr: not all use cases of the VTYSH_* enums are
guarded by #ifdef VTYSH. These enums are enabled by the VTYSH macro,
which is defined if sub package frr-vtysh is enabled in menuconfig.
According to support ticket [2], building without frr-vtysh is
no longer supported.

[1] https://github.com/openwrt/packages/issues/24063
[2] https://github.com/FRRouting/frr/issues/15752#issuecomment-2059328993

Signed-off-by: Georgi Valkov <redacted>
net/frr/Makefile
git clone https://git.99rst.org/PROJECT