1
0
mirror of https://github.com/bgp/bgpq4.git synced 2024-05-11 05:55:05 +00:00

huawei: missing terminator in as-path regexes

This commit is contained in:
Alexandre Snarskii
2018-08-10 15:13:04 +03:00
parent 0dac6ad060
commit d879f21686

View File

@@ -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;