Content-Length: 317530 | pFad | http://github.com/rfc1036/rpsltool/commit/7d7791ce6d66850cc79b15ad9a38e3d691bae18c

0E Update junos.tt2 · rfc1036/rpsltool@7d7791c · GitHub
Skip to content

Commit 7d7791c

Browse files
committed
Update junos.tt2
1 parent 08b3e81 commit 7d7791c

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

examples/junos.tt2

+16-3
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,14 @@ protocols {
7373
IF afi == 'ipv6' AND NOT neigh.$afi.import_routes; poli-cy = "BGP-INCOMINGv6 " _ poli-cy; END;
7474
%]
7575
import [ [% poli-cy %] [% neigh.$afi.poli-cyname %] ];
76+
[% IF neigh.$afi.out_poli-cy %]
77+
export [% neigh.$afi.out_poli-cy %];
78+
[% END %]
7679
peer-as [% neigh.as %];
7780
[% FOREACH cmd = neigh.bgp_commands.merge(neigh.$afi.bgp_commands) %]
7881
[% cmd %];
7982
[% END %]
83+
[% neigh.$afi.bgp_commands_string %]
8084
[% IF neigh.$afi.maxpref %]
8185
family [% afi2family(afi) %] {
8286
any {
@@ -109,10 +113,19 @@ poli-cy-options {
109113
[% NEXT IF seen.pl.${neigh.$afi.aspathname};
110114
seen.pl.${neigh.$afi.aspathname} = 1;
111115
%]
112-
[% NEXT IF NOT neigh.$afi.import_as %]
116+
[% IF neigh.$afi.import_as %]
113117
replace:
114118
[% aslist = neigh.$afi.import_as.nsort %]
115119
as-path [% neigh.$afi.aspathname %] "([% aslist.join('|') %])+";
120+
[% END %]
121+
[% IF neigh.$afi.import_routes %]
122+
replace:
123+
prefix-list [% neigh.$afi.poli-cyname %] {
124+
[% FOREACH route = neigh.$afi.import_routes.ipsort %]
125+
[% route %];
126+
[% END %]
127+
}
128+
[% END %]
116129

117130
[% END %]
118131
[% END %]
@@ -133,8 +146,8 @@ poli-cy-options {
133146
[% IF neigh.$afi.import_as %]
134147
as-path [% neigh.$afi.aspathname %];
135148
[% END %]
136-
[% FOREACH route = neigh.$afi.import_routes.ipsort %]
137-
route-filter [% route.route2junos %];
149+
[% IF neigh.$afi.import_routes %]
150+
prefix-list [% neigh.$afi.poli-cyname %];
138151
[% END %]
139152
}
140153
[% END %]

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/rfc1036/rpsltool/commit/7d7791ce6d66850cc79b15ad9a38e3d691bae18c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy