bug 12821: no VPN support on Juniper

status 12821: resolved fixed
This commit is contained in:
Alena Prokharchyk 2012-01-30 15:06:35 -08:00
parent d1b0b0954a
commit 0196eb5679
3 changed files with 16 additions and 5 deletions

View File

@ -5783,6 +5783,15 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
requiredServices.remove(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 //exclude gateway service
if(enabledServices.size() != requiredServices.size()){ if(enabledServices.size() != requiredServices.size()){
StringBuilder servicesSet = new StringBuilder(); StringBuilder servicesSet = new StringBuilder();

View File

@ -72,8 +72,9 @@ public class ExternalDhcpElement extends AdapterBase implements NetworkElement,
} }
private static Map<Service, Map<Capability, String>> setCapabilities() { 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>>(); Map<Service, Map<Capability, String>> capabilities = new HashMap<Service, Map<Capability, String>>();
capabilities.put(Service.Dhcp, null); // capabilities.put(Service.Dhcp, null);
return capabilities; return capabilities;
} }

View File

@ -253,10 +253,11 @@ public class JuniperSRXExternalFirewallElement extends ExternalFirewallDeviceMan
firewallCapabilities.put(Capability.TrafficStatistics, "per public ip"); firewallCapabilities.put(Capability.TrafficStatistics, "per public ip");
capabilities.put(Service.Firewall, firewallCapabilities); capabilities.put(Service.Firewall, firewallCapabilities);
// Set VPN capabilities //Disabling VPN for Juniper in Acton as it 1) Was never tested 2) probably just doesn't work
Map<Capability, String> vpnCapabilities = new HashMap<Capability, String>(); // // Set VPN capabilities
vpnCapabilities.put(Capability.SupportedVpnTypes, "ipsec"); // Map<Capability, String> vpnCapabilities = new HashMap<Capability, String>();
capabilities.put(Service.Vpn, vpnCapabilities); // vpnCapabilities.put(Capability.SupportedVpnTypes, "ipsec");
// capabilities.put(Service.Vpn, vpnCapabilities);
capabilities.put(Service.Gateway, null); capabilities.put(Service.Gateway, null);