]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: parser: remove incorrect assert 820/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Fri, 14 Jul 2017 15:53:59 +0000 (17:53 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 14 Jul 2017 15:53:59 +0000 (17:53 +0200)
A {foo|bar|baz} graph node will have more than 1/2 incoming links even
if no other references are left to it (which is what the assert was
previously trying to ensure.)

I don't see a good way to "fix" the assert so I'm just removing it.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/command_graph.c

index 4254b91d95f5f17bec8fe683c6471005e73e5e73..2ae294e5a26aa390e7a7aaf9ddc5b93959fc4ae8 100644 (file)
@@ -348,8 +348,6 @@ cmd_merge_nodes (struct graph *oldgraph, struct graph *newgraph,
       /* nothing found => add new to old */
       if (i == vector_active (old->to) && direction > 0)
         {
-          assert (vector_count (cnew->from) ==
-                          (cmd_nodes_link (cnew, cnew) ? 2 : 1));
           graph_remove_edge (new, cnew);
 
           cmd_reparent_tree (newgraph, oldgraph, cnew);