Skip to content

Commit caea02b

Browse files
committed
OVNK: use vrf name instead of table number when fetching routes
Signed-off-by: Jaime Caamaño Ruiz <[email protected]>
1 parent 560414a commit caea02b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/extended/networking/route_advertisements.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,12 +1069,8 @@ func getLearnedBgpRoutesByNode(oc *exutil.CLI, nodeName, network string) (map[st
10691069
cmdv4 := "ip route show proto bgp"
10701070
cmdv6 := "ip -6 route show proto bgp"
10711071
if !isDefault {
1072-
table, err := adminExecInPod(oc, frrNamespace, podName, "frr", "ip -d link show dev "+network+" | grep -oP 'table \\d+' | grep -oP '\\d+'")
1073-
if err != nil {
1074-
return nil, nil, err
1075-
}
1076-
cmdv4 += " table " + table
1077-
cmdv6 += " table " + table
1072+
cmdv4 += " vrf " + network
1073+
cmdv6 += " vrf " + network
10781074
}
10791075

10801076
out, err = adminExecInPod(oc, frrNamespace, podName, "frr", cmdv4)

0 commit comments

Comments
 (0)