Browse Source

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

fixed setting default node postdown
dcarns 3 years ago
parent
commit
504aecd3f7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      logic/nodes.go

+ 4 - 0
logic/nodes.go

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