]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib, tests: Add notation about whether or not a route-map is about to be reprocessed
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 3 Aug 2020 22:00:34 +0000 (18:00 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 4 Aug 2020 14:16:09 +0000 (10:16 -0400)
When you make a change to a route-map or a prefix-list it depends on, note
that the route-map needs to be reprocessed for the change.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/routemap.c
tests/topotests/all-protocol-startup/r1/show_route_map.ref

index 22b4beb79d0c746c0ea76f041637417d42fcaf59..639e7f63d24f3e9ca9277b7bbe2eb88dad2b1e77 100644 (file)
@@ -821,9 +821,10 @@ static void vty_show_route_map_entry(struct vty *vty, struct route_map *map)
        struct route_map_index *index;
        struct route_map_rule *rule;
 
-       vty_out(vty, "route-map: %s Invoked: %" PRIu64 " Optimization: %s\n",
+       vty_out(vty, "route-map: %s Invoked: %" PRIu64 " Optimization: %s Processed Change: %s\n",
                map->name, map->applied - map->applied_clear,
-               map->optimization_disabled ? "disabled" : "enabled");
+               map->optimization_disabled ? "disabled" : "enabled",
+               map->to_be_processed ? "true" : "false");
 
        for (index = map->head; index; index = index->next) {
                vty_out(vty, " %s, sequence %d Invoked %" PRIu64 "\n",
index 25786081d1d70b0fd594a9cb49018ba79560ab7e..a0b7dda8f0838fdbde0478fa2b45eacc48504a5b 100644 (file)
@@ -1,5 +1,5 @@
 ZEBRA:
-route-map: LIES Invoked: 0 Optimization: enabled
+route-map: LIES Invoked: 0 Optimization: enabled Processed Change: false
  deny, sequence 10 Invoked 0
   Match clauses:
     interface notpresent
@@ -8,7 +8,7 @@ route-map: LIES Invoked: 0 Optimization: enabled
   Action:
     Exit routemap
 RIP:
-route-map: LIES Invoked: 0 Optimization: enabled
+route-map: LIES Invoked: 0 Optimization: enabled Processed Change: false
  deny, sequence 10 Invoked 0
   Match clauses:
     interface notpresent
@@ -17,7 +17,7 @@ route-map: LIES Invoked: 0 Optimization: enabled
   Action:
     Exit routemap
 RIPNG:
-route-map: LIES Invoked: 0 Optimization: enabled
+route-map: LIES Invoked: 0 Optimization: enabled Processed Change: false
  deny, sequence 10 Invoked 0
   Match clauses:
     interface notpresent
@@ -26,7 +26,7 @@ route-map: LIES Invoked: 0 Optimization: enabled
   Action:
     Exit routemap
 OSPF:
-route-map: LIES Invoked: 0 Optimization: enabled
+route-map: LIES Invoked: 0 Optimization: enabled Processed Change: false
  deny, sequence 10 Invoked 0
   Match clauses:
     interface notpresent
@@ -35,7 +35,7 @@ route-map: LIES Invoked: 0 Optimization: enabled
   Action:
     Exit routemap
 OSPF6:
-route-map: LIES Invoked: 0 Optimization: enabled
+route-map: LIES Invoked: 0 Optimization: enabled Processed Change: false
  deny, sequence 10 Invoked 0
   Match clauses:
     interface notpresent
@@ -44,7 +44,7 @@ route-map: LIES Invoked: 0 Optimization: enabled
   Action:
     Exit routemap
 BGP:
-route-map: LIES Invoked: 0 Optimization: enabled
+route-map: LIES Invoked: 0 Optimization: enabled Processed Change: false
  deny, sequence 10 Invoked 0
   Match clauses:
     interface notpresent
@@ -52,7 +52,7 @@ route-map: LIES Invoked: 0 Optimization: enabled
   Call clause:
   Action:
     Exit routemap
-route-map: bgp-map Invoked: 0 Optimization: enabled
+route-map: bgp-map Invoked: 0 Optimization: enabled Processed Change: false
  permit, sequence 10 Invoked 0
   Match clauses:
   Set clauses: