Merge pull request #578 from gravitl/bugfix_v0.9.3_default_postdown

fixed setting default node postdown
This commit is contained in:
dcarns 2022-01-05 14:16:33 -05:00 committed by GitHub
commit 504aecd3f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,6 +253,10 @@ func SetNodeDefaults(node *models.Node) {
postup := parentNetwork.DefaultPostUp
node.PostUp = postup
}
if node.PostDown == "" {
postdown := parentNetwork.DefaultPostDown
node.PostDown = postdown
}
if node.IsStatic == "" {
node.IsStatic = "no"
}