]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Print debug config in files after we have prefix-lists
authorDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 20 Nov 2023 12:50:57 +0000 (14:50 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 22 Nov 2023 06:20:01 +0000 (08:20 +0200)
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 <donatas@opensourcerouting.org>
lib/command.h

index 0da838feb19b638cf2e37d2277b36be5b3bafc5d..8b2dee17ea416adcf0d7d95dc52939fe68e9c460 100644 (file)
@@ -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. */