mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	bug 12821: no VPN support on Juniper
status 12821: resolved fixed
This commit is contained in:
		
							parent
							
								
									d1b0b0954a
								
							
						
					
					
						commit
						0196eb5679
					
				| @ -5781,6 +5781,15 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag | ||||
|                 	Set<Network.Service> requiredServices = element.getCapabilities().keySet(); | ||||
|                 	if (requiredServices.contains(Network.Service.Gateway)) { | ||||
|                 		requiredServices.remove(Network.Service.Gateway); | ||||
|                 	}  | ||||
|                 	 | ||||
|                 	//Remove firewall from the list of services-to-compare | ||||
|                 	if (requiredServices.contains(Network.Service.Firewall)) { | ||||
|                 		requiredServices.remove(Network.Service.Firewall); | ||||
|                 	} | ||||
|                 	 | ||||
|                 	if (enabledServices.contains(Network.Service.Firewall)) { | ||||
|                 		enabledServices.remove(Network.Service.Firewall); | ||||
|                 	} | ||||
|                 	 | ||||
|                 	//exclude gateway service | ||||
|  | ||||
| @ -72,8 +72,9 @@ public class ExternalDhcpElement extends AdapterBase implements NetworkElement, | ||||
| 	} | ||||
| 
 | ||||
|     private static Map<Service, Map<Capability, String>> setCapabilities() { | ||||
|     	//No external dhcp support for Acton release | ||||
|         Map<Service, Map<Capability, String>> capabilities = new HashMap<Service, Map<Capability, String>>(); | ||||
|         capabilities.put(Service.Dhcp, null); | ||||
| //        capabilities.put(Service.Dhcp, null); | ||||
|         return capabilities; | ||||
|     } | ||||
|      | ||||
|  | ||||
| @ -253,10 +253,11 @@ public class JuniperSRXExternalFirewallElement extends ExternalFirewallDeviceMan | ||||
|         firewallCapabilities.put(Capability.TrafficStatistics, "per public ip"); | ||||
|         capabilities.put(Service.Firewall, firewallCapabilities); | ||||
|          | ||||
|         // Set VPN capabilities | ||||
|         Map<Capability, String> vpnCapabilities = new HashMap<Capability, String>(); | ||||
|         vpnCapabilities.put(Capability.SupportedVpnTypes, "ipsec"); | ||||
|         capabilities.put(Service.Vpn, vpnCapabilities); | ||||
|         //Disabling VPN for Juniper in Acton as it 1) Was never tested 2) probably just doesn't work | ||||
| //        // Set VPN capabilities | ||||
| //        Map<Capability, String> vpnCapabilities = new HashMap<Capability, String>(); | ||||
| //        vpnCapabilities.put(Capability.SupportedVpnTypes, "ipsec"); | ||||
| //        capabilities.put(Service.Vpn, vpnCapabilities); | ||||
|          | ||||
|         capabilities.put(Service.Gateway, null); | ||||
|          | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user