Examples of authorizeIngressICMPToCIDRs()


Examples of org.jclouds.cloudstack.features.SecurityGroupClient.authorizeIngressICMPToCIDRs()

    public static void applyNetworkRules(CloudStackClient cloudStackClient, SecurityGroup securityGroup, Network network) {
        SecurityGroupClient securityGroupClient = cloudStackClient.getSecurityGroupClient();
        for (Rule rule : network.getIngress()) {
            if (rule.getProtocol() == Protocol.ICMP) {
                securityGroupClient.authorizeIngressICMPToCIDRs(securityGroup.getId(), DEFAULT_ICMP_CODE,
                    DEFAULT_ICMP_TYPE, ImmutableList.of(rule.getCidr()));
            } else {
                securityGroupClient.authorizeIngressPortsToCIDRs(securityGroup.getId(),
                    rule.getProtocol().name(),
                    rule.getPorts().lowerEndpoint(),
View Full Code Here

Examples of org.jclouds.cloudstack.features.SecurityGroupClient.authorizeIngressICMPToCIDRs()

    public static void applyNetworkRules(CloudStackClient cloudStackClient, SecurityGroup securityGroup, Network network) {
        SecurityGroupClient securityGroupClient = cloudStackClient.getSecurityGroupClient();
        for (Rule rule : network.getIngress()) {
            if (rule.getProtocol() == Protocol.ICMP) {
                securityGroupClient.authorizeIngressICMPToCIDRs(securityGroup.getId(), DEFAULT_ICMP_CODE,
                    DEFAULT_ICMP_TYPE, ImmutableList.of(rule.getCidr()));
            } else {
                securityGroupClient.authorizeIngressPortsToCIDRs(securityGroup.getId(),
                    rule.getProtocol().name(),
                    rule.getPorts().lowerEndpoint(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.