#all policies (#13)

This commit is contained in:
Michael Quigley 2022-08-01 13:46:18 -04:00
parent d82b75f3b2
commit 9e0caf192b
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -157,7 +157,7 @@ func createServicePolicyDial(svcName, svcId string, edge *rest_management_api_cl
}
func createServiceEdgeRouterPolicy(svcName, svcId string, edge *rest_management_api_client.ZitiEdgeManagement) error {
edgeRouterRoles := []string{"@tDnhG8jkG9"} // @linux-edge-router
edgeRouterRoles := []string{"#all"}
semantic := rest_model.SemanticAllOf
serviceRoles := []string{fmt.Sprintf("@%v", svcId)}
serp := &rest_model.ServiceEdgeRouterPolicyCreate{
@ -180,7 +180,7 @@ func createServiceEdgeRouterPolicy(svcName, svcId string, edge *rest_management_
}
func createEdgeRouterPolicy(svcName, envId string, edge *rest_management_api_client.ZitiEdgeManagement) error {
edgeRouterRoles := []string{"@tDnhG8jkG9"} // @linux-edge-router
edgeRouterRoles := []string{"#all"}
identityRoles := []string{fmt.Sprintf("@%v", envId)}
semantic := rest_model.SemanticAllOf
erp := &rest_model.EdgeRouterPolicyCreate{