Hello,

I have two OSPF protocols, one for IPv4 and one for IPv6. I’ve set the
lo interface for both, but it only shows up for IPv4:

protocol ospf ospf_ipv4 {
        merge external;

        ipv4 {
                import all;
                import keep filtered;
                import limit 200 action block;
                import filter {
                        if (net ~ [ 0.0.0.0/0 ]) then {
                                reject;
                        }
                        else {
                                igp_metric = ospf_metric1;
                                accept;
                        }
                };

                export all;
                export filter {
                        if (proto = "kernel_grt_ipv4" || proto = "direct1") 
then {
                                ospf_metric2 = 64;
                                ospf_tag = 1336561914;
                                accept;
                        }
                        else reject;
                };
        };

        area 0.0.0.0 {
                interface "lo" {
                        stub;
                };
                include "/etc/bird.lag-*.conf";
                interface "wg0" {
                        cost 200;
                };
        };
};

protocol ospf v3 ospf_ipv6 {
        merge external;

        ipv6 {
                import all;
                import keep filtered;
                import limit 200 action block;
                import filter {
                        if (net ~ [ ::/0 ]) then {
                                reject;
                        }
                        else {
                                igp_metric = ospf_metric1;
                                accept;
                        }
                };

                export filter {
                        if (proto = "kernel_grt_ipv6" || proto = "direct1") 
then {
                                ospf_tag = 1336561914;
                                accept;
                        }
                        else reject;
                };
        };

        area 0.0.0.0 {
                interface "lo" {
                        stub;
                };
                include "/etc/bird.lag-*.conf";
                interface "wg0" {
                        cost 200;
                };
        };
};

edge03-stolon ~ # birdc
BIRD 2.15.1 ready.
bird> show ospf interface ospf_ipv6 "lo"
ospf_ipv6:
bird> show ospf interface ospf_ipv4 "lo"
ospf_ipv4:
Interface lo (45.91.126.241/32)
        Type: nbma
        Area: 0.0.0.0 (0)
        State: Waiting (stub)
        Priority: 1
        Cost: 10
        ECMP weight: 1
        Hello timer: 10
        Poll timer: 20
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designated router (ID): 0.0.0.0
        Designated router (IP): 0.0.0.0
        Backup designated router (ID): 0.0.0.0
        Backup designated router (IP): 0.0.0.0

It looks like a bug to me, but perhaps I missed something.

-- 
Alarig

Reply via email to