egress model update,remove interface check

This commit is contained in:
Abhishek Kondur
2023-02-04 09:54:56 +04:00
parent cba2a69c36
commit 0505629fd1
4 changed files with 8 additions and 6 deletions

View File

@@ -123,10 +123,6 @@ func ValidateEgressGateway(gateway models.EgressGatewayRequest) error {
if empty {
err = errors.New("IP Ranges Cannot Be Empty")
}
empty = gateway.Interface == ""
if empty {
err = errors.New("interface cannot be empty")
}
return err
}