ziti_edge_sdk; erp (#112)

This commit is contained in:
Michael Quigley
2022-12-14 14:13:40 -05:00
parent a77f39e97d
commit f1388ab271
6 changed files with 72 additions and 61 deletions

View File

@ -5,6 +5,7 @@ import (
"encoding/json"
"github.com/go-openapi/runtime/middleware"
"github.com/openziti-test-kitchen/zrok/controller/store"
"github.com/openziti-test-kitchen/zrok/controller/zrok_edge_sdk"
"github.com/openziti-test-kitchen/zrok/rest_model_zrok"
"github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/environment"
"github.com/sirupsen/logrus"
@ -41,7 +42,7 @@ func (h *enableHandler) Handle(params environment.EnableParams, principal *rest_
logrus.Error(err)
return environment.NewEnableInternalServerError()
}
if err := createEdgeRouterPolicy(envZId, envZId, client); err != nil {
if err := zrok_edge_sdk.CreateEdgeRouterPolicy(envZId, envZId, client); err != nil {
logrus.Error(err)
return environment.NewEnableInternalServerError()
}