mirror of https://github.com/apache/cloudstack.git
Added new network Capability "TrafficStatistics" for LoadBalancer and Firewall services
This commit is contained in:
parent
edc001b118
commit
928ab98dc6
|
|
@ -27,8 +27,8 @@ public interface Network extends ControlledEntity {
|
|||
public static final Service Dhcp = new Service("Dhcp");
|
||||
public static final Service Dns = new Service("Dns");
|
||||
public static final Service Gateway = new Service("Gateway");
|
||||
public static final Service Firewall = new Service("Firewall", Capability.PortForwarding, Capability.StaticNat, Capability.SupportedProtocols, Capability.MultipleIps, Capability.SupportedSourceNatTypes);
|
||||
public static final Service Lb = new Service("Lb", Capability.SupportedLBAlgorithms, Capability.SupportedProtocols);
|
||||
public static final Service Firewall = new Service("Firewall", Capability.PortForwarding, Capability.StaticNat, Capability.SupportedProtocols, Capability.MultipleIps, Capability.SupportedSourceNatTypes, Capability.TrafficStatistics);
|
||||
public static final Service Lb = new Service("Lb", Capability.SupportedLBAlgorithms, Capability.SupportedProtocols, Capability.TrafficStatistics);
|
||||
public static final Service UserData = new Service("UserData");
|
||||
|
||||
private String name;
|
||||
|
|
@ -90,6 +90,7 @@ public interface Network extends ControlledEntity {
|
|||
public static final Capability MultipleIps = new Capability("MultipleIps");
|
||||
public static final Capability SupportedSourceNatTypes = new Capability("SupportedSourceNatTypes");
|
||||
public static final Capability SupportedVpnTypes = new Capability("SupportedVpnTypes");
|
||||
public static final Capability TrafficStatistics = new Capability("TrafficStatistics");
|
||||
|
||||
private String name;
|
||||
|
||||
|
|
|
|||
|
|
@ -143,7 +143,6 @@ public class DhcpElement extends AdapterBase implements NetworkElement{
|
|||
capabilities.put(Service.Dns, null);
|
||||
capabilities.put(Service.UserData, null);
|
||||
capabilities.put(Service.Dhcp, null);
|
||||
capabilities.put(Service.Gateway, null);
|
||||
|
||||
return capabilities;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -204,6 +204,7 @@ public class VirtualRouterElement extends AdapterBase implements NetworkElement
|
|||
//Set capabilities for Firewall service
|
||||
Map<Capability, String> firewallCapabilities = new HashMap<Capability, String>();
|
||||
firewallCapabilities.put(Capability.PortForwarding, "true");
|
||||
firewallCapabilities.put(Capability.TrafficStatistics, "per public ip");
|
||||
firewallCapabilities.put(Capability.StaticNat, "true");
|
||||
firewallCapabilities.put(Capability.SupportedProtocols, "tcp,udp");
|
||||
firewallCapabilities.put(Capability.MultipleIps, "true");
|
||||
|
|
|
|||
Loading…
Reference in New Issue