Skip to content

Commit 18c4331

Browse files
committed
rotue: Add RouteNextHopBuilder::flags()
Support setting arbitrary next hop flags. Signed-off-by: Gris Ge <[email protected]>
1 parent e1784a3 commit 18c4331

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/route/builder.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,12 @@ impl RouteNextHopBuilder {
582582
self
583583
}
584584

585+
/// Set flags for next hop
586+
pub fn flags(mut self, flags: RouteNextHopFlags) -> Self {
587+
self.nexthop.flags = flags;
588+
self
589+
}
590+
585591
pub fn build(self) -> RouteNextHop {
586592
self.nexthop
587593
}

0 commit comments

Comments
 (0)