mirror of
https://github.com/gravitl/netmaker.git
synced 2026-01-07 03:14:03 +08:00
fix: add metadata field to create RAG
This commit is contained in:
parent
09d7001fa5
commit
78180c86be
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