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

@ -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

View File

@ -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;
}

View File

@ -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);