filter export_OSPF {
ospf_metric1 = 20;
ospf_metric2 = 20;
print "net accepted:", net;
accept;
}
ospf_metric1 = 10;
ospf_metric2 = 10;
print "net accepted:", net;
accept;
}
reject;
}
protocol ospf server1 {
export filter export_OSPF;
#debug all;
rfc1583compat yes;
tick 2;
area 0.0.0.0 {
stub no;
interface "bond0" {
dead 10;
neighbors {
10.0.16.1;
};
type pointopoint;
authentication none;
};
interface "lo*" {
stub yes;
cost 10;
priority 200;
};
interface "dummy0" {
stub yes;
cost 15;
priority 100;
};
};
}
But in birdc I didn't see any metrics. I have two server with same config and same addresses on interfaces lo and dummy0 with different priorities.
Could you help me with export filter?
--
Best regards,
Anton Kiryushkin