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

Revert conditional clauses around XR prefix list generation

This fixes #39

Thank you Octavio & Lukas
This commit is contained in:
Job Snijders
2021-03-16 09:57:43 +00:00
parent 5f5ce4cff3
commit 9498d7f368

View File

@ -451,10 +451,10 @@ main(int argc, char* argv[])
expander.generation = T_PREFIXLIST; expander.generation = T_PREFIXLIST;
} }
if (expander.generation != (T_PREFIXLIST & T_ASPATH & T_OASPATH) && if (expander.vendor == V_CISCO_XR && expander.generation != T_PREFIXLIST &&
expander.vendor == V_CISCO_XR) { expander.generation != T_ASPATH && expander.generation != T_OASPATH) {
sx_report(SX_FATAL, "Sorry, only prefix-sets and as-paths " sx_report(SX_FATAL, "Sorry, only prefix-sets and as-paths "
"supported for IOS XR\n"); "supported for IOS XR\n");
} }
if (expander.vendor == V_BIRD && expander.generation != T_PREFIXLIST && if (expander.vendor == V_BIRD && expander.generation != T_PREFIXLIST &&
expander.generation != T_ASPATH && expander.generation != T_ASSET) { expander.generation != T_ASPATH && expander.generation != T_ASSET) {