<div dir="ltr">Hi,<div><br></div><div>We're about to migrate our exchange to a /23 and we're likely going to do it over time. I have a simple filter in place to check and make sure that the NEXT_HOP is within our exchange's subnet. Originally it looked like this:</div>
<div><br></div><div><div>function check_ixp_next_hop(ip nexthop)</div><div>prefix ixpnet;</div><div>{</div><div>  ixpnet = x.x.x.x/24;</div><div>  if ! (nexthop ~ ixpnet) then return false;</div><div>  return true;</div><div>
}</div></div><div><br></div><div><br></div><div>And then within the inbound filter for each peer's ASN:</div><div><br></div><div>if ! (check_ixp_next_hop(bgp_next_hop)) then reject;<br></div><div><br></div><div><br></div>
<div>Since we're going to be caring about two distinct prefixes while we perform the migration, I changed the filter to look like this:</div><div><br></div><div><div>function check_ixp_next_hop(ip nexthop)</div><div>prefix set ixpnet;</div>
<div>{</div><div>  ixpnet = [ x.x.x.x/24, y.y.y.y/23 ];</div><div>  if ! (nexthop ~ ixpnet) then return false;</div><div>  return true;</div><div>}</div></div><div><br></div><div>However I'm getting the following errors in the log:</div>
<div><br></div><div><div>07-11-2013 12:33:00 <ERR> filters, line 61: ~ applied on unknown type pair</div><div>07-11-2013 12:33:00 <ERR> filters, line 61: ~ applied on unknown type pair</div><div>07-11-2013 12:33:04 <ERR> filters, line 61: ~ applied on unknown type pair</div>
</div><div><br></div><div><br></div><div>Am I missing something?</div><div><br></div><div>Thanks,</div><div><br></div><div>-JJ</div></div>