diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-25 01:52:59 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-25 01:52:59 +0200 |
commit | 64682f5e69efa99708839ca25397c37c2ed8b674 (patch) | |
tree | 3fc6de755329358b199741b0900329d32def1991 /babeld | |
parent | babeld: Fix VRF for zebra route messages. (diff) | |
download | frr-64682f5e69efa99708839ca25397c37c2ed8b674.tar.xz frr-64682f5e69efa99708839ca25397c37c2ed8b674.zip |
babeld: Send in the ifindex to zebra for route install
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'babeld')
-rw-r--r-- | babeld/kernel.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/babeld/kernel.c b/babeld/kernel.c index fc292d6f9..448613a73 100644 --- a/babeld/kernel.c +++ b/babeld/kernel.c @@ -164,6 +164,7 @@ kernel_route_v4(int add, api.type = ZEBRA_ROUTE_BABEL; api.flags = 0; api.message = 0; + api.instance = 0; api.safi = SAFI_UNICAST; api.vrf_id = VRF_DEFAULT; @@ -173,13 +174,16 @@ kernel_route_v4(int add, correctly. */ SET_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP); - api.ifindex_num = 0; + SET_FLAG(api.message, ZAPI_MESSAGE_IFINDEX); if(metric >= KERNEL_INFINITY) { api.flags = ZEBRA_FLAG_REJECT; api.nexthop_num = 0; + api.ifindex_num = 0; } else { api.nexthop_num = 1; + api.ifindex_num = 1; api.nexthop = &nexthop_pointer; + api.ifindex = &ifindex; SET_FLAG(api.message, ZAPI_MESSAGE_METRIC); api.metric = metric; } |