/** * * @param parentSecurityGroupId * @param ipProtocol * @param fromPort * @param toPort * @param cidr * @return * @deprecated Use {@link #createSecurityGroupRule(String, String, String, Integer, Integer)} */ public CreateRule createSecurityGroupRule( Integer parentSecurityGroupId, String ipProtocol, Integer fromPort, Integer toPort, Integer sourceGroupId) { SecurityGroupRuleForCreate securityGroupRuleForCreate = new SecurityGroupRuleForCreate( parentSecurityGroupId, ipProtocol, fromPort, toPort, sourceGroupId); return new CreateRule(securityGroupRuleForCreate); }
rule.getProtocol().toString(), rule.getFromPort(), rule.getToPort(), rule.getSourceIpRange()).execute(); return new OpenStackRule(context, createdRule);
/** * @see com.att.cdp.zones.ComputeService#addACLRule(java.lang.String, com.att.cdp.zones.model.Rule) */ @SuppressWarnings("nls") @Override public Rule addACLRule(String aclId, Rule rule) throws ZoneException { checkArg(aclId, "aclId"); checkArg(rule, "rule"); connect(); Context context = getContext(); trackRequest(); RequestState.put(RequestState.SERVICE, "Compute"); RequestState.put(RequestState.SERVICE_URL, nova.getEndpoint()); try { SecurityGroup group = nova.getClient().securityGroups().showSecurityGroup(aclId).execute(); if (group != null) { com.woorea.openstack.nova.model.SecurityGroup.Rule createdRule = nova.getClient() .securityGroups() .createSecurityGroupRule(aclId, rule.getProtocol().toString(), rule.getFromPort(), rule.getToPort(), rule.getSourceIpRange()).execute(); return new OpenStackRule(context, createdRule); } } catch (OpenStackBaseException ex) { ExceptionMapper.mapException(ex); } return null; }
/** * * @param parentSecurityGroupId * @param ipProtocol * @param fromPort * @param toPort * @param cidr * @return * @deprecated Use {@link #createSecurityGroupRule(String, String, Integer, Integer, String)} */ public CreateRule createSecurityGroupRule( Integer parentSecurityGroupId, String ipProtocol, Integer fromPort, Integer toPort, String cidr) { SecurityGroupRuleForCreate securityGroupRuleForCreate = new SecurityGroupRuleForCreate( parentSecurityGroupId, ipProtocol, fromPort, toPort, cidr); return new CreateRule(securityGroupRuleForCreate); } /**
/** * * @param parentSecurityGroupId * @param ipProtocol * @param fromPort * @param toPort * @param cidr * @return * @deprecated Use {@link #createSecurityGroupRule(String, String, Integer, Integer, String)} */ public CreateRule createSecurityGroupRule( Integer parentSecurityGroupId, String ipProtocol, Integer fromPort, Integer toPort, String cidr) { SecurityGroupRuleForCreate securityGroupRuleForCreate = new SecurityGroupRuleForCreate( parentSecurityGroupId, ipProtocol, fromPort, toPort, cidr); return new CreateRule(securityGroupRuleForCreate); } /**
/** * * @param parentSecurityGroupId * @param ipProtocol * @param fromPort * @param toPort * @param sourceGroupId * @return * @deprecated Use {@link #createSecurityGroupRule(String, String, String, Integer, Integer)} */ public CreateRule createSecurityGroupRule( Integer parentSecurityGroupId, String ipProtocol, Integer fromPort, Integer toPort, Integer sourceGroupId) { SecurityGroupRuleForCreate securityGroupRuleForCreate = new SecurityGroupRuleForCreate( parentSecurityGroupId, ipProtocol, fromPort, toPort, sourceGroupId); return new CreateRule(securityGroupRuleForCreate); }
public CreateRule createSecurityGroupRule( String parentSecurityGroupId,String sourceGroupId,String ipProtocol, Integer fromPort, Integer toPort) { SecurityGroupRuleForCreate securityGroupRuleForCreate = new SecurityGroupRuleForCreate( parentSecurityGroupId, sourceGroupId,ipProtocol, fromPort, toPort ); return new CreateRule(securityGroupRuleForCreate); } public DeleteRule deleteSecurityGroupRule(String id) {
public CreateRule createSecurityGroupRule( String parentSecurityGroupId, String ipProtocol, Integer fromPort, Integer toPort, String cidr) { SecurityGroupRuleForCreate securityGroupRuleForCreate = new SecurityGroupRuleForCreate( parentSecurityGroupId, ipProtocol, fromPort, toPort, cidr); return new CreateRule(securityGroupRuleForCreate); }
public CreateRule createSecurityGroupRule( String parentSecurityGroupId,String sourceGroupId,String ipProtocol, Integer fromPort, Integer toPort) { SecurityGroupRuleForCreate securityGroupRuleForCreate = new SecurityGroupRuleForCreate( parentSecurityGroupId, sourceGroupId,ipProtocol, fromPort, toPort ); return new CreateRule(securityGroupRuleForCreate); } public DeleteRule deleteSecurityGroupRule(String id) {
public CreateRule createSecurityGroupRule( String parentSecurityGroupId, String ipProtocol, Integer fromPort, Integer toPort, String cidr) { SecurityGroupRuleForCreate securityGroupRuleForCreate = new SecurityGroupRuleForCreate( parentSecurityGroupId, ipProtocol, fromPort, toPort, cidr); return new CreateRule(securityGroupRuleForCreate); }