mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-04 16:33:49 +08:00
resolve merge conflicts
This commit is contained in:
@@ -49,6 +49,9 @@ type ApiNode struct {
|
||||
InternetGwID string `json:"internetgw_node_id" yaml:"internetgw_node_id"`
|
||||
AdditionalRagIps []string `json:"additional_rag_ips" yaml:"additional_rag_ips"`
|
||||
Tags map[TagID]struct{} `json:"tags" yaml:"tags"`
|
||||
IsStatic bool `json:"is_static"`
|
||||
IsUserNode bool `json:"is_user_node"`
|
||||
StaticNode ExtClient `json:"static_node"`
|
||||
}
|
||||
|
||||
// ApiNode.ConvertToServerNode - converts an api node to a server node
|
||||
@@ -186,6 +189,9 @@ func (nm *Node) ConvertToAPINode() *ApiNode {
|
||||
for _, ip := range nm.AdditionalRagIps {
|
||||
apiNode.AdditionalRagIps = append(apiNode.AdditionalRagIps, ip.String())
|
||||
}
|
||||
apiNode.IsStatic = nm.IsStatic
|
||||
apiNode.IsUserNode = nm.IsUserNode
|
||||
apiNode.StaticNode = nm.StaticNode
|
||||
return &apiNode
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user