From 664d14eadbc18cc711177ad72412b1cb827d64b6 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Tue, 23 Jan 2024 00:17:26 +0200 Subject: [PATCH] vtysh: fix VTYSH_VRF definition VTYSH_VRF is a collection of daemon flags, not node flags. The current code works only because RPKI_VRF_NODE is 1100101 in binary, which accidentally includes VTYSH_BGPD which is actually needed. Signed-off-by: Igor Ryzhov --- vtysh/vtysh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtysh/vtysh.h b/vtysh/vtysh.h index f63d4be6ee..6bc0c5e2c5 100644 --- a/vtysh/vtysh.h +++ b/vtysh/vtysh.h @@ -58,7 +58,7 @@ extern struct event_loop *master; VTYSH_EIGRPD | VTYSH_BABELD | VTYSH_PBRD | VTYSH_FABRICD | \ VTYSH_VRRPD | VTYSH_MGMTD #define VTYSH_INTERFACE VTYSH_INTERFACE_SUBSET | VTYSH_BGPD -#define VTYSH_VRF VTYSH_INTERFACE_SUBSET | RPKI_VRF_NODE +#define VTYSH_VRF VTYSH_INTERFACE_SUBSET | VTYSH_BGPD #define VTYSH_KEYS VTYSH_RIPD | VTYSH_EIGRPD | VTYSH_OSPF6D | VTYSH_OSPFD /* Daemons who can process nexthop-group configs */ #define VTYSH_NH_GROUP VTYSH_PBRD|VTYSH_SHARPD -- 2.39.5