|
@@ -56,27 +56,26 @@ type Iface struct {
|
|
|
|
|
|
// CommonNode - represents a commonn node data elements shared by netmaker and netclient
|
|
|
type CommonNode struct {
|
|
|
- ID uuid.UUID `json:"id" yaml:"id"`
|
|
|
- HostID uuid.UUID `json:"hostid" yaml:"hostid"`
|
|
|
- Name string `json:"name" yaml:"name"`
|
|
|
- Network string `json:"network" yaml:"network"`
|
|
|
- NetworkRange net.IPNet `json:"networkrange" yaml:"networkrange"`
|
|
|
- NetworkRange6 net.IPNet `json:"networkrange6" yaml:"networkrange6"`
|
|
|
- InternetGateway *net.UDPAddr `json:"internetgateway" yaml:"internetgateway"`
|
|
|
- Server string `json:"server" yaml:"server"`
|
|
|
- Connected bool `json:"connected" yaml:"connected"`
|
|
|
- Address net.IPNet `json:"address" yaml:"address"`
|
|
|
- Address6 net.IPNet `json:"address6" yaml:"address6"`
|
|
|
- PostUp string `json:"postup" yaml:"postup"`
|
|
|
- PostDown string `json:"postdown" yaml:"postdown"`
|
|
|
- Action string `json:"action" yaml:"action"`
|
|
|
- LocalAddress net.IPNet `json:"localaddress" yaml:"localaddress"`
|
|
|
- IsLocal bool `json:"islocal" yaml:"islocal"`
|
|
|
- IsEgressGateway bool `json:"isegressgateway" yaml:"isegressgateway"`
|
|
|
- IsIngressGateway bool `json:"isingressgateway" yaml:"isingressgateway"`
|
|
|
- DNSOn bool `json:"dnson" yaml:"dnson"`
|
|
|
- PersistentKeepalive time.Duration `json:"persistentkeepalive" yaml:"persistentkeepalive"`
|
|
|
- Peers []wgtypes.PeerConfig `json:"peers" yaml:"peers"`
|
|
|
+ ID uuid.UUID `json:"id" yaml:"id"`
|
|
|
+ HostID uuid.UUID `json:"hostid" yaml:"hostid"`
|
|
|
+ Name string `json:"name" yaml:"name"`
|
|
|
+ Network string `json:"network" yaml:"network"`
|
|
|
+ NetworkRange net.IPNet `json:"networkrange" yaml:"networkrange"`
|
|
|
+ NetworkRange6 net.IPNet `json:"networkrange6" yaml:"networkrange6"`
|
|
|
+ InternetGateway *net.UDPAddr `json:"internetgateway" yaml:"internetgateway"`
|
|
|
+ Server string `json:"server" yaml:"server"`
|
|
|
+ Connected bool `json:"connected" yaml:"connected"`
|
|
|
+ Address net.IPNet `json:"address" yaml:"address"`
|
|
|
+ Address6 net.IPNet `json:"address6" yaml:"address6"`
|
|
|
+ PostUp string `json:"postup" yaml:"postup"`
|
|
|
+ PostDown string `json:"postdown" yaml:"postdown"`
|
|
|
+ Action string `json:"action" yaml:"action"`
|
|
|
+ LocalAddress net.IPNet `json:"localaddress" yaml:"localaddress"`
|
|
|
+ IsLocal bool `json:"islocal" yaml:"islocal"`
|
|
|
+ IsEgressGateway bool `json:"isegressgateway" yaml:"isegressgateway"`
|
|
|
+ IsIngressGateway bool `json:"isingressgateway" yaml:"isingressgateway"`
|
|
|
+ DNSOn bool `json:"dnson" yaml:"dnson"`
|
|
|
+ PersistentKeepalive time.Duration `json:"persistentkeepalive" yaml:"persistentkeepalive"`
|
|
|
}
|
|
|
|
|
|
// Node - a model of a network node
|