Skip to content

Commit 3603584

Browse files
qiutingjunoilbeater
authored andcommitted
fix add static route to wrong table of ovn (#3195)
Signed-off-by: 夜微澜 <qiutingjun_yewu@cmss.chinamobile.com>
1 parent 012e003 commit 3603584

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pkg/ovs/ovn-nb-logical_router_route.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,11 @@ func (c *ovnNbClient) newLogicalRouterStaticRoute(lrName, routeTable, policy, ip
309309
}
310310

311311
route := &ovnnb.LogicalRouterStaticRoute{
312-
UUID: ovsclient.NamedUUID(),
313-
Policy: &policy,
314-
IPPrefix: ipPrefix,
315-
Nexthop: nexthop,
312+
UUID: ovsclient.NamedUUID(),
313+
Policy: &policy,
314+
IPPrefix: ipPrefix,
315+
Nexthop: nexthop,
316+
RouteTable: routeTable,
316317
}
317318
for _, option := range options {
318319
option(route)

0 commit comments

Comments
 (0)