]> git.puffer.fish Git - mirror/frr.git/commitdiff
Zebra: Enable VRF as an interface creation
authorDon Slice <dslice@cumulusnetworks.com>
Mon, 22 Feb 2016 21:36:23 +0000 (21:36 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Mon, 22 Feb 2016 21:39:06 +0000 (21:39 +0000)
Modified response to netlink message for VRF creation, allowing it to be
created as an interface and setting the right vrf_id and bringing in the ip address.

Ticket: CM-9277
Signed-off-by: Don Slice
Reviewed-by: Vivek Venkatraman
zebra/rt_netlink.c

index e2809fd59563b956bc2a30fd67c9cde172330a97..77f274a943f424be5b72fa0dfa1bdd7206f37e99 100644 (file)
@@ -649,7 +649,7 @@ netlink_interface (struct sockaddr_nl *snl, struct nlmsghdr *h,
       if (kind && strcmp(kind, "vrf") == 0)
         {
           netlink_vrf_change(h, tb[IFLA_LINKINFO], name);
-          return 0;
+          vrf_id = (vrf_id_t)ifi->ifi_index;
         }
     }
 
@@ -1277,7 +1277,7 @@ netlink_link_change (struct sockaddr_nl *snl, struct nlmsghdr *h,
       if (kind && strcmp(kind, "vrf") == 0)
         {
           netlink_vrf_change(h, tb[IFLA_LINKINFO], name);
-          return 0;
+          vrf_id = (vrf_id_t)ifi->ifi_index;
         }
     }