Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1af8fb6

Browse files
committed
Revert "Fix inex#201 - empty ASN list causes bird RS config to bomb"
This reverts commit 5c99b4d.
1 parent 00a631f commit 1af8fb6

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

application/views/router-cli/server/bird/neighbor.cfg

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{*
2-
NOTE: fvliid is used below to distinguish between multiple VLAN interfaces
2+
NOTE: fvliid is used below to distinguish between multiple VLAN interfaces
33
for the same customer in the same peering LAN *}
44

55
### AS{$int.autsys} - {$int.cname} - VLAN Interface #{$int.vliid}
@@ -22,16 +22,16 @@ int set allas;
2222
# to collapse. Recommend evasive manoeuvers.
2323
if (bgp_path.first != {$int.autsys} ) then
2424
reject;
25-
25+
2626
{* Only do filtering if this is enabled per client *}
2727
{if $int['irrdbfilter'] }
2828
allas = [ {foreach $irrdbAsns as $a}{$a.asn}{if not $a@last},{/if} {if $a@iteration % 10 == 0}
29-
30-
{/if}{foreachelse}{$int.autsys}{/foreach} ];
29+
30+
{/if}{/foreach} ];
3131

3232
if !(bgp_path.last ~ allas) then
3333
reject;
34-
34+
3535
{if count( $prefixes )}
3636
allnet = [ {foreach $prefixes as $p}{$p.prefix}{if not $p@last},{/if} {/foreach} ];
3737

@@ -63,5 +63,6 @@ protocol bgp pb_{$int.fvliid}_as{$int.autsys} from tb_rsclient {
6363
route limit {$int.maxprefixes};
6464
table t_{$int.fvliid}_as{$int.autsys};
6565
{if $int.bgpmd5secret}password "{$int.bgpmd5secret}";{/if}
66-
66+
6767
}
68+

0 commit comments

Comments
 (0)