2020-05-03 00:33:40 +02:00
|
|
|
function ibgp_export_v4()
|
|
|
|
bool ok;
|
|
|
|
{
|
|
|
|
ok = true;
|
|
|
|
|
2020-04-20 04:42:25 +02:00
|
|
|
if net.len = 32 then
|
2020-05-03 00:33:40 +02:00
|
|
|
ok = false;
|
2020-04-20 04:42:25 +02:00
|
|
|
|
2020-05-03 00:33:40 +02:00
|
|
|
return ok;
|
2020-04-20 04:42:25 +02:00
|
|
|
}
|
|
|
|
|
2020-05-03 00:33:40 +02:00
|
|
|
function ibgp_export_v6()
|
|
|
|
bool ok;
|
|
|
|
{
|
|
|
|
ok = true;
|
|
|
|
|
2020-04-20 04:42:25 +02:00
|
|
|
if net.len = 128 then
|
2020-05-03 00:33:40 +02:00
|
|
|
ok = false;
|
2020-04-20 04:42:25 +02:00
|
|
|
|
2020-05-03 00:33:40 +02:00
|
|
|
return ok;
|
2020-04-20 04:42:25 +02:00
|
|
|
}
|
|
|
|
|
2020-05-03 00:33:40 +02:00
|
|
|
function ibgp_import_v4()
|
|
|
|
bool ok;
|
|
|
|
{
|
|
|
|
ok = true;
|
|
|
|
|
|
|
|
if net = 0.0.0.0/0 then
|
|
|
|
ok = false;
|
2020-04-20 04:42:25 +02:00
|
|
|
|
2020-05-03 00:33:40 +02:00
|
|
|
return ok;
|
2020-04-20 04:42:25 +02:00
|
|
|
}
|
|
|
|
|
2020-05-03 00:33:40 +02:00
|
|
|
function ibgp_import_v6()
|
|
|
|
bool ok;
|
|
|
|
{
|
|
|
|
ok = true;
|
|
|
|
|
2020-08-22 02:36:36 +02:00
|
|
|
if net = ::/0 then
|
2020-05-03 00:33:40 +02:00
|
|
|
ok = false;
|
|
|
|
|
|
|
|
return ok;
|
2020-04-20 04:42:25 +02:00
|
|
|
}
|