Expose VPN route recovery telemetry
This commit is contained in:
@@ -1530,6 +1530,14 @@ func TestFabricClientPacketIngressIsolatesRouteFailoverPerLogicalChannel(t *test
|
||||
if statA.LastRouteID != "route-alternate" || statA.LastFailedRouteID != "" || statA.ConsecutiveFailures != 0 {
|
||||
t.Fatalf("channel A stat = %+v, want recovered on alternate route", statA)
|
||||
}
|
||||
if statA.LastRecoveredFromRouteID != "route-primary" ||
|
||||
statA.LastRecoveredNextHop != "relay-primary" ||
|
||||
statA.RouteSwitchCount != 1 ||
|
||||
statA.LastRouteSwitchAt == "" ||
|
||||
snapshot.FlowScheduler.RouteRecoveredChannelCount != 1 ||
|
||||
snapshot.FlowScheduler.RouteSwitchCount != 1 {
|
||||
t.Fatalf("route recovery telemetry = stat:%+v scheduler:%+v", statA, snapshot.FlowScheduler)
|
||||
}
|
||||
if statB.LastRouteID != "route-primary" || statB.LastFailedRouteID != "" || statB.ConsecutiveFailures != 0 {
|
||||
t.Fatalf("channel B stat = %+v, want primary route memory preserved", statB)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user