Browse Source

remove commented code

Abhishek Kondur 2 years ago
parent
commit
96598e0f1d
1 changed files with 4 additions and 6 deletions
  1. 4 6
      logic/gateway.go

+ 4 - 6
logic/gateway.go

@@ -181,12 +181,10 @@ func CreateIngressGateway(netid string, nodeid string, failover bool) (models.No
 
 
 	var postUpCmd, postDownCmd string
 	var postUpCmd, postDownCmd string
 	node, err := GetNodeByID(nodeid)
 	node, err := GetNodeByID(nodeid)
-	// if node.OS != "linux" { // add in darwin later
-	// 	return models.Node{}, errors.New(node.OS + " is unsupported for ingress gateways")
-	// }
-	// if node.OS == "linux" && node.FirewallInUse == models.FIREWALL_NONE {
-	// 	return models.Node{}, errors.New("firewall is not supported for ingress gateways")
-	// }
+
+	if node.FirewallInUse == models.FIREWALL_NONE {
+		return models.Node{}, errors.New("firewall is not supported for ingress gateways")
+	}
 
 
 	if err != nil {
 	if err != nil {
 		return models.Node{}, err
 		return models.Node{}, err