Hi,

I have the following configuration:

```
define ospf_v4_routes = [
  198.19.0.0/16
];

filter ospf_export {
        if (net.type = NET_IP4 && ! (net ~ [ 0.0.0.0/0 ])) then reject;
        accept;
}

filter ospf_import {
        if (net.type = NET_IP4 && net ~ ospf_v4_routes) then accept;
        reject;
}

protocol ospf v2 ospfv4 {
   debug all;
   ipv4 {
        import filter ospf_import;
        export filter ospf_export;
  };
 area 0.0.0.0 {
  interface "lo1" { stub yes; };
  interface "vlan600" {
   type ptp;
   cost 15;
   bfd on;
  };
 };
}
```

I would expect the metric around 300 + cost of the interface but I get this route metric 

"E2 0.0.0.0/0 [15/10000] via 198.19.4.65, vlan600"

in the switch.

When I set the metric manually in the export function:

```
filter ospf_export {
        if (net.type = NET_IP4 && ! (net ~ [ 0.0.0.0/0  ])) then reject;
        ospf_metric1 = 300; unset(ospf_metric2);
        accept;
}
```

I get the correct metric:
```
E1 0.0.0.0/0 [315] via 198.19.4.65, vlan600
```

Any idea what could be the issue ?

Did I misunderstood the usage of the `default cost` setting?


BenoƮt