From d879f21686af0255cc59d9cb3ceca3c2d09fc34e Mon Sep 17 00:00:00 2001 From: Alexandre Snarskii Date: Fri, 10 Aug 2018 15:13:04 +0300 Subject: [PATCH] huawei: missing terminator in as-path regexes --- bgpq3_printer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bgpq3_printer.c b/bgpq3_printer.c index 915f164..553e673 100644 --- a/bgpq3_printer.c +++ b/bgpq3_printer.c @@ -400,14 +400,14 @@ bgpq3_print_huawei_aspath(FILE* f, struct bgpq_expander* b) }; nc++; if(nc==b->aswidth) { - fprintf(f,")\n"); + fprintf(f,")$\n"); nc=0; }; }; }; }; }; - if(nc) fprintf(f,")\n"); + if(nc) fprintf(f,")$\n"); if(empty) fprintf(f,"ip as-path-filter %s deny .*\n", b->name?b->name:"NN"); return 0; @@ -444,14 +444,14 @@ bgpq3_print_huawei_oaspath(FILE* f, struct bgpq_expander* b) nc++; empty=0; if(nc==b->aswidth) { - fprintf(f,")\n"); + fprintf(f,")$\n"); nc=0; }; }; }; }; }; - if(nc) fprintf(f,")\n"); + if(nc) fprintf(f,")$\n"); if(empty) fprintf(f, "ip as-path-filter %s deny .*\n", b->name?b->name:"NN"); return 0;