This commit is contained in:
TenderIronh
2026-05-15 17:53:49 +08:00
parent 12393f00c5
commit 07836fc162
7 changed files with 51 additions and 12 deletions
+10 -1
View File
@@ -10,7 +10,7 @@ import (
"time"
)
const OpenP2PVersion = "3.25.8"
const OpenP2PVersion = "3.25.11"
const ProductName string = "openp2p"
const LeastSupportVersion = "3.0.0"
const SyncServerTimeVersion = "3.9.0"
@@ -547,6 +547,15 @@ type SDWANInfo struct {
Nodes []*SDWANNode
}
func (s *SDWANInfo) GetResourceByNodeName(nodeName string) string {
for _, node := range s.Nodes {
if node.Name == nodeName {
return node.Resource
}
}
return ""
}
const (
SDWANModeFullmesh = "fullmesh"
SDWANModeCentral = "central"