committing updated script

This commit is contained in:
afeiszli 2021-04-12 15:38:33 -04:00
parent 14e9573a39
commit ed947cad88
3 changed files with 6 additions and 2 deletions

View file

@ -26,6 +26,7 @@ type Node struct {
Endpoint string `json:"endpoint" bson:"endpoint" validate:"endpoint_check"`
PostUp string `json:"postup" bson:"postup"`
PreUp string `json:"preup" bson:"preup"`
AllowedIPs string `json:"preup" bson:"preup"`
PersistentKeepalive int32 `json:"persistentkeepalive" bson:"persistentkeepalive" validate: "omitempty,numeric,max=1000"`
SaveConfig *bool `json:"saveconfig" bson:"saveconfig"`
AccessKey string `json:"accesskey" bson:"accesskey"`
@ -40,6 +41,8 @@ type Node struct {
Password string `json:"password" bson:"password" validate:"password_check"`
Group string `json:"group" bson:"group" validate:"group_exists"`
IsPending bool `json:"ispending" bson:"ispending"`
IsGateway bool `json:"isgateway" bson:"isgateway"`
GatewayRange string `json:"gatewayrange" bson:"gatewayrange"`
PostChanges string `json:"postchanges" bson:"postchanges"`
}

View file

@ -18,7 +18,8 @@ type ReturnNode struct {
Interface string `json:"interface" bson:"interface"`
Group string `json:"group" bson:"group"`
IsPending *bool `json:"ispending" bson:"ispending"`
IsGateway *bool `json:"isgateway" bson:"ispending"`
GatewayRange string `json:"gatewayrange" bson:"gatewayrange"`
LocalAddress string `json:"localaddress" bson:"localaddress" validate:"localaddress_check"`
ExpirationDateTime int64 `json:"expdatetime" bson:"expdatetime"`
CheckInInterval int32 `json:"checkininterval" bson:"checkininterval"`
}

View file

@ -7,7 +7,7 @@ set -e
wget -O netclient https://github.com/gravitl/netmaker/releases/download/v0.1/netclient netclient
wget -O netclient https://github.com/gravitl/netmaker/releases/download/latest/netclient netclient
chmod +x netclient
sudo ./netclient -c install -s $SERVER_URL -g $NET_NAME -k $KEY
rm -f netclient