]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospf6d: Add missing vrf lookup
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 6 Oct 2017 12:41:36 +0000 (08:41 -0400)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 10 Oct 2017 12:05:02 +0000 (09:05 -0300)
The vrf lookup was missed in this conversion?

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ospf6d/ospf6_snmp.c

index fb3b146e38fcd247b44c8bf89ae809f886186878..dfe69aa0e78020fc96aa8e62a5946627f1f075d9 100644 (file)
@@ -1042,6 +1042,7 @@ static u_char *ospfv3IfEntry(struct variable *v, oid *name, size_t *length,
                             int exact, size_t *var_len,
                             WriteMethod **write_method)
 {
+       struct vrf *vrf = vrf_lookup_by_id(VRF_DEFAULT);
        ifindex_t ifindex = 0;
        unsigned int instid = 0;
        struct ospf6_interface *oi = NULL;
@@ -1194,6 +1195,7 @@ static u_char *ospfv3NbrEntry(struct variable *v, oid *name, size_t *length,
                              int exact, size_t *var_len,
                              WriteMethod **write_method)
 {
+       struct vrf *vrf = vrf_lookup_by_id(VRF_DEFAULT);
        ifindex_t ifindex = 0;
        unsigned int instid, rtrid;
        struct ospf6_interface *oi = NULL;