Browse Source

rm ext cidr

Abhishek Kondur 2 years ago
parent
commit
759b9bc6cd
2 changed files with 0 additions and 6 deletions
  1. 0 5
      logic/gateway.go
  2. 0 1
      models/node.go

+ 0 - 5
logic/gateway.go

@@ -176,10 +176,6 @@ func DeleteEgressGateway(network, nodeid string) (models.Node, error) {
 	return node, nil
 	return node, nil
 }
 }
 
 
-func getCidrforExtClients() string {
-	return "10.10.10.0/24"
-}
-
 // CreateIngressGateway - creates an ingress gateway
 // CreateIngressGateway - creates an ingress gateway
 func CreateIngressGateway(netid string, nodeid string, failover bool) (models.Node, error) {
 func CreateIngressGateway(netid string, nodeid string, failover bool) (models.Node, error) {
 
 
@@ -201,7 +197,6 @@ func CreateIngressGateway(netid string, nodeid string, failover bool) (models.No
 		return models.Node{}, err
 		return models.Node{}, err
 	}
 	}
 	node.IsIngressGateway = "yes"
 	node.IsIngressGateway = "yes"
-	node.ExtClientsCidr = getCidrforExtClients()
 	cidrs := []string{}
 	cidrs := []string{}
 	cidrs = append(cidrs, network.AddressRange)
 	cidrs = append(cidrs, network.AddressRange)
 	cidrs = append(cidrs, network.AddressRange6)
 	cidrs = append(cidrs, network.AddressRange6)

+ 0 - 1
models/node.go

@@ -95,7 +95,6 @@ type Node struct {
 	FailoverNode            string               `json:"failovernode" bson:"failovernode" yaml:"failovernode"`
 	FailoverNode            string               `json:"failovernode" bson:"failovernode" yaml:"failovernode"`
 	IngressGatewayRange     string               `json:"ingressgatewayrange" bson:"ingressgatewayrange" yaml:"ingressgatewayrange"`
 	IngressGatewayRange     string               `json:"ingressgatewayrange" bson:"ingressgatewayrange" yaml:"ingressgatewayrange"`
 	IngressGatewayRange6    string               `json:"ingressgatewayrange6" bson:"ingressgatewayrange6" yaml:"ingressgatewayrange6"`
 	IngressGatewayRange6    string               `json:"ingressgatewayrange6" bson:"ingressgatewayrange6" yaml:"ingressgatewayrange6"`
-	ExtClientsCidr          string               `json:"extclients_cidr" bson:"extclients_cidr" yaml:"extclients_cidr"`
 	// IsStatic - refers to if the Endpoint is set manually or dynamically
 	// IsStatic - refers to if the Endpoint is set manually or dynamically
 	IsStatic        string      `json:"isstatic" bson:"isstatic" yaml:"isstatic" validate:"checkyesorno"`
 	IsStatic        string      `json:"isstatic" bson:"isstatic" yaml:"isstatic" validate:"checkyesorno"`
 	UDPHolePunch    string      `json:"udpholepunch" bson:"udpholepunch" yaml:"udpholepunch" validate:"checkyesorno"`
 	UDPHolePunch    string      `json:"udpholepunch" bson:"udpholepunch" yaml:"udpholepunch" validate:"checkyesorno"`