Skip to content

Commit

Permalink
commit with tag nightly-25.01.08
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jan 5, 2025
1 parent 8f18199 commit deebdeb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Binary file modified dist/topoviewer
Binary file not shown.
14 changes: 13 additions & 1 deletion go_cloudshellwrapper/clabHandlers/clabHostRoutine.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import (
"path"
"time"

"regexp"

tools "github.com/asadarafat/topoViewer/go_tools"
topoengine "github.com/asadarafat/topoViewer/go_topoengine"
"github.com/docker/docker/api/types"
Expand Down Expand Up @@ -101,7 +103,17 @@ func GetDockerNetworkNamespaceIDViaUnixSocket(w http.ResponseWriter, r *http.Req

log.Infof("cliOutput: %s", cliOutput)

netNamespaceID = string(cliOutput)
// Define the regular expression to match "net:[number]"
re := regexp.MustCompile(`net:\[\d+\]`)

// Find the first match in the cliOutput
cliOutputParsedNamespace := re.FindString(string(cliOutput))
if cliOutputParsedNamespace == "" {
log.Error("No cliOutputParsedNamespace found")
}

log.Infof("cliOutputParsedNamespace: %s", cliOutputParsedNamespace)
netNamespaceID = cliOutputParsedNamespace

} else { // colocated
netNamespaceID, err = os.Readlink(nsPath)
Expand Down
2 changes: 1 addition & 1 deletion go_cloudshellwrapper/constants.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package cloudshellwrapper

var VersionInfo string = "nightly-25.01.07"
var VersionInfo string = "nightly-25.01.08"

// create html-public files
var HtmlPublicPrefixPath string = "./html-public/"
Expand Down
2 changes: 1 addition & 1 deletion go_cloudshellwrapper/constants.go.bak
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package cloudshellwrapper

var VersionInfo string = "nightly-25.01.06"
var VersionInfo string = "nightly-25.01.07"

// create html-public files
var HtmlPublicPrefixPath string = "./html-public/"
Expand Down

0 comments on commit deebdeb

Please sign in to comment.