mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-07 13:44:17 +08:00
Merge pull request #2945 from gravitl/release-v0.24.1-patch-metadata
fix: add metadata field to create RAG
This commit is contained in:
commit
2c694cb1a6
2 changed files with 2 additions and 0 deletions
|
@ -170,6 +170,7 @@ func CreateIngressGateway(netid string, nodeid string, ingress models.IngressReq
|
|||
}
|
||||
}
|
||||
node.SetLastModified()
|
||||
node.Metadata = ingress.Metadata
|
||||
if node.Metadata == "" {
|
||||
node.Metadata = "This host can be used for remote access"
|
||||
}
|
||||
|
|
|
@ -197,6 +197,7 @@ type HostRelayRequest struct {
|
|||
type IngressRequest struct {
|
||||
ExtclientDNS string `json:"extclientdns"`
|
||||
IsInternetGateway bool `json:"is_internet_gw"`
|
||||
Metadata string `json:"metadata"`
|
||||
}
|
||||
|
||||
// InetNodeReq - exit node request struct
|
||||
|
|
Loading…
Add table
Reference in a new issue