Skip to content

Commit a429eca

Browse files
committed
dv: use execMgmtRetry for adding fib nexthop for registering neighbor faces
1 parent 4439d76 commit a429eca

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

dv/dv/router.go

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -358,15 +358,10 @@ func (dv *Router) createFaces() {
358358
dv.mutex.Unlock()
359359

360360
// Add neighbor to localhop neighbors
361-
dv.nfdc.Exec(nfdc.NfdMgmtCmd{
362-
Module: "fib",
363-
Cmd: "add-nexthop",
364-
Args: &mgmt.ControlArgs{
365-
Name: neighborsPrefix.Clone(),
366-
Cost: optional.Some(uint64(1)),
367-
FaceId: optional.Some(faceId),
368-
},
369-
Retries: 3,
361+
dv.execMgmtRetry("fib", "add-nexthop", &mgmt.ControlArgs{
362+
Name: neighborsPrefix.Clone(),
363+
Cost: optional.Some(uint64(1)),
364+
FaceId: optional.Some(faceId),
370365
})
371366
}
372367
}

0 commit comments

Comments
 (0)