sdwan: add hub node selection and auto fallback to mesh
This commit is contained in:
@@ -343,6 +343,10 @@ func main() {
|
||||
http.Error(w, err.Error(), http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
if req.Mode == "hub" && req.HubNode == "" {
|
||||
http.Error(w, "hub mode requires hubNode", http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
// tenant filter by session/apikey
|
||||
tenantID := getTenantID(r)
|
||||
if tenantID > 0 {
|
||||
|
||||
Reference in New Issue
Block a user