Skip to content

Commit

Permalink
fix add static route to wrong table of ovn (#3195)
Browse files Browse the repository at this point in the history
Signed-off-by: 夜微澜 <qiutingjun_yewu@cmss.chinamobile.com>
  • Loading branch information
qiutingjun authored and oilbeater committed Sep 12, 2023
1 parent 012e003 commit 3603584
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/ovs/ovn-nb-logical_router_route.go
Expand Up @@ -309,10 +309,11 @@ func (c *ovnNbClient) newLogicalRouterStaticRoute(lrName, routeTable, policy, ip
}

route := &ovnnb.LogicalRouterStaticRoute{
UUID: ovsclient.NamedUUID(),
Policy: &policy,
IPPrefix: ipPrefix,
Nexthop: nexthop,
UUID: ovsclient.NamedUUID(),
Policy: &policy,
IPPrefix: ipPrefix,
Nexthop: nexthop,
RouteTable: routeTable,
}
for _, option := range options {
option(route)
Expand Down

0 comments on commit 3603584

Please sign in to comment.