From 013e724cfee085ae561339a0e657e7c742f32383 Mon Sep 17 00:00:00 2001 From: Xiangfeng Zhu Date: Sat, 4 May 2024 17:46:54 -0400 Subject: [PATCH] Fix bug in spec parser --- internal/controller/spec_parser.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/controller/spec_parser.go b/internal/controller/spec_parser.go index 9e492c8..4721bce 100644 --- a/internal/controller/spec_parser.go +++ b/internal/controller/spec_parser.go @@ -50,6 +50,8 @@ func ConvertToAppNetSpec(appName, backend, appManifestFile, clientService, serve // All ambinet elements are considered to be on the server-side if backend == "ambient" { position = "S" + } else { + position = "C" } for _, element := range clientChain { appManifest.Edge[clientServerTag] = append(appManifest.Edge[clientServerTag], EdgeElementItem{ @@ -78,6 +80,8 @@ func ConvertToAppNetSpec(appName, backend, appManifestFile, clientService, serve // All ambinet elements are considered to be on the server-side if backend == "ambient" { position = "S" + } else { + position = "C/S" } for _, element := range anyChain { appManifest.Edge[clientServerTag] = append(appManifest.Edge[clientServerTag], EdgeElementItem{