From: Donatas Abraitis Date: Mon, 20 Nov 2023 12:50:57 +0000 (+0200) Subject: lib: Print debug config in files after we have prefix-lists X-Git-Tag: base_10.0~243^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9d8e384d12fe14a536b32b88cc45e77cf7772883;p=matthieu%2Ffrr.git lib: Print debug config in files after we have prefix-lists Without this if we enter something like `debug bgp updates in x.x.x.x prefix-list y`, prefix-list can't be lookup up, because when we read the config, debug does not know anything about this prefix-list. Signed-off-by: Donatas Abraitis --- diff --git a/lib/command.h b/lib/command.h index 0da838feb1..8b2dee17ea 100644 --- a/lib/command.h +++ b/lib/command.h @@ -82,6 +82,8 @@ enum node_type { AUTH_ENABLE_NODE, /* Authentication mode for change enable. */ ENABLE_NODE, /* Enable node. */ CONFIG_NODE, /* Config node. Default mode of config file. */ + PREFIX_NODE, /* ip prefix-list node. */ + PREFIX_IPV6_NODE, /* ipv6 prefix-list node. */ DEBUG_NODE, /* Debug node. */ VRF_DEBUG_NODE, /* Vrf Debug node. */ NORTHBOUND_DEBUG_NODE, /* Northbound Debug node. */ @@ -133,10 +135,8 @@ enum node_type { ISIS_NODE, /* ISIS protocol mode */ ISIS_FLEX_ALGO_NODE, /* ISIS Flex Algo mode */ ACCESS_NODE, /* Access list node. */ - PREFIX_NODE, /* Prefix list node. */ ACCESS_IPV6_NODE, /* Access list node. */ ACCESS_MAC_NODE, /* MAC access list node*/ - PREFIX_IPV6_NODE, /* Prefix list node. */ AS_LIST_NODE, /* AS list node. */ COMMUNITY_LIST_NODE, /* Community list node. */ COMMUNITY_ALIAS_NODE, /* Community alias node. */