<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello all,</p>
<p>Can you please let me know where is the syntax error in my
snippet , or if it is wrong how else I should integrate it in a
way bird doesn't complain? Thanks in advance!<br>
</p>
<pre class="code highlight" lang="plaintext"><span id="LC1" class="line" lang="plaintext">#RPKI Check</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">filter bgp_in_AS1234</span>
<span id="LC4" class="line" lang="plaintext">prefix set allnet;</span>
<span id="LC5" class="line" lang="plaintext">{</span>
<span id="LC6" class="line" lang="plaintext"> include "/etc/bird/prefix-lists/AS2589-v4";</span>
<span id="LC7" class="line" lang="plaintext"> if (is_martian4()) then reject;</span>
<span id="LC8" class="line" lang="plaintext"> if ! (net ~ allnet) then reject;</span>
<span id="LC9" class="line" lang="plaintext"> rpki_result = roa check(r4, net, bgp_path.last_nonaggregated );</span>
<span id="LC10" class="line" lang="plaintext"> if ( rpki_result = ROA_INVALID ) then{</span>
<span id="LC11" class="line" lang="plaintext"> bgp_community.add((1234:1000:4));</span>
<span id="LC12" class="line" lang="plaintext"> reject;</span>
<span id="LC13" class="line" lang="plaintext"> print "Invalid ROA ", net, " for ASN ", bgp_path.last_nonaggregated, "from AS1234" ;</span>
<span id="LC14" class="line" lang="plaintext"> }</span>
<span id="LC15" class="line" lang="plaintext"> if ( rpki_result = ROA_VALID ) then{</span>
<span id="LC16" class="line" lang="plaintext"> bgp_community.add((1234:1000:1));</span>
<span id="LC17" class="line" lang="plaintext"> accept;</span>
<span id="LC18" class="line" lang="plaintext"> }</span>
<span id="LC19" class="line" lang="plaintext"> if ( rpki_result = ROA_ UNKNOWN ) then{</span>
<span id="LC20" class="line" lang="plaintext"> bgp_community.add((1234:1000:2));</span>
<span id="LC21" class="line" lang="plaintext"> accept;</span>
<span id="LC22" class="line" lang="plaintext"> print "Unknown RPKI ", net, "for ASN ", bgp_path.last_nonaggregated, "from AS1234 ";</span>
<span id="LC23" class="line" lang="plaintext"> }</span>
<span id="LC24" class="line" lang="plaintext">}</span>
</pre>
<pre class="moz-signature" cols="72">--
Irene Lalioti
Network Engineer
Fondation RESTENA
2, avenue de l'Université
L-4365 Esch/Alzette
Tel: +352 424409 1
Fax: +352 422473</pre>
</body>
</html>