public class NuageVspAclClientImpl extends Object implements NuageVspAclClient
NuageVspAclClient.AclProgress| Constructor and Description |
|---|
NuageVspAclClientImpl(NuageVspRestApi api) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyFIPAccessControl(NuageVspEntity domainType,
String domainId,
String networkUuid,
String staticNatIpUuid,
boolean accessControl) |
void |
applyStaticRoutes(NetworkDetails networkDetails,
Collection<VspStaticRoute> staticRoutes) |
void |
createDefaultRules(VspNetwork vspNetwork,
NuageVspEntity nuageVspEntity,
String nuageVspEntityId) |
void |
createOrDeleteDefaultIngressSubnetBlockAcl(VspNetwork vspNetwork,
AclRulesDetails aclRulesDetails)
Adds or removes the final egress rule of the network, to perform the default action
By Default, all outgoing traffic is allowed
When an ACL list contains an egress rule, which allows traffic, the default action becomes deny.
|
NuageVspObject |
findACLTemplate(NuageVspEntity parentType,
String parentId,
NuageVspEntity aclTemplateType,
Acl.AclTemplatePriorityType priorityType,
Integer priority) |
NuageVspObject |
findOrCreateACLTemplate(String vpcOrSubnetUuid,
NuageVspEntity parentType,
String parentId,
NuageVspEntity aclTemplateType,
Acl.AclTemplatePriorityType priorityType,
Integer priority) |
org.apache.commons.lang3.tuple.Pair<NuageVspObject,NuageVspObject> |
findOrCreateAclTemplates(NetworkDetails networkDetails,
Integer priority) |
String |
findOrCreateNetworkMacro(String vsdEnterpriseId,
String sourceCidr) |
String |
findOrCreateNetworkMacroGroup(String vsdEnterpriseId,
String sourceCidrList) |
List<NuageVspObject> |
getACLEntriesAssociatedToLocation(String aclNetworkLocationId,
NuageVspEntity aclTemplateType,
String aclTemplateId)
Fetches the ACL Entries inside the given ACL Template, that match the given
|
Map<String,NuageVspObject> |
getACLEntriesAssociatedToLocationByExternalId(String aclNetworkLocationId,
NuageVspEntity aclTemplateType,
String aclTemplateId)
Fetches the ACL Entries inside the given ACL Template, that match the given
|
List<NuageVspObject> |
getACLTemplatesAssociatedToDomain(String networkUuid,
NuageVspEntity domainType,
String domainId,
NuageVspEntity aclTemplateType,
Acl.AclTemplatePriorityType priorityType,
boolean throwExceptionIfNotPresent) |
Map<Integer,NuageVspObject> |
getDefaultAclEntries(NuageVspObject aclTemplate)
Fetches the current Default ACL Entries
|
NuageVspObject |
getOnlyACLTemplateAssociatedToDomain(String networkUuid,
NuageVspEntity domainType,
String domainId,
NuageVspEntity aclTemplateType) |
Map<String,NuageVspObject> |
groupByExternalId(List<NuageVspObject> aclEntries) |
void |
removeAclRule(VspNetwork vspNetwork,
AclRulesDetails aclRulesDetails,
VspAclRule vspAclRule) |
void |
resetAllAclRulesInTheNetwork(VspNetwork vspNetwork,
NetworkDetails networkDetails,
AclRulesDetails aclRulesDetails) |
void |
saveAclRule(String enterpriseId,
VspNetwork network,
AclRulesDetails aclRulesDetails,
NuageVspAclClient.AclProgress state,
VspAclRule vspAclRule)
Applies ACL rules
|
public static final Random RANDOM
public NuageVspAclClientImpl(NuageVspRestApi api)
public NuageVspObject getOnlyACLTemplateAssociatedToDomain(String networkUuid, NuageVspEntity domainType, String domainId, NuageVspEntity aclTemplateType) throws NuageVspException
NuageVspExceptionpublic NuageVspObject findACLTemplate(NuageVspEntity parentType, String parentId, NuageVspEntity aclTemplateType, Acl.AclTemplatePriorityType priorityType, Integer priority) throws NuageVspApiException
findACLTemplate in interface NuageVspAclClientNuageVspApiExceptionpublic NuageVspObject findOrCreateACLTemplate(String vpcOrSubnetUuid, NuageVspEntity parentType, String parentId, NuageVspEntity aclTemplateType, Acl.AclTemplatePriorityType priorityType, Integer priority) throws NuageVspApiException
findOrCreateACLTemplate in interface NuageVspAclClientNuageVspApiExceptionpublic List<NuageVspObject> getACLTemplatesAssociatedToDomain(String networkUuid, NuageVspEntity domainType, String domainId, NuageVspEntity aclTemplateType, Acl.AclTemplatePriorityType priorityType, boolean throwExceptionIfNotPresent) throws NuageVspException
getACLTemplatesAssociatedToDomain in interface NuageVspAclClientNuageVspExceptionpublic List<NuageVspObject> getACLEntriesAssociatedToLocation(String aclNetworkLocationId, NuageVspEntity aclTemplateType, String aclTemplateId) throws NuageVspApiException
getACLEntriesAssociatedToLocation in interface NuageVspAclClientaclNetworkLocationId - aclTemplateType - aclTemplateId - ExceptionNuageVspApiExceptionpublic Map<String,NuageVspObject> getACLEntriesAssociatedToLocationByExternalId(String aclNetworkLocationId, NuageVspEntity aclTemplateType, String aclTemplateId) throws NuageVspApiException
getACLEntriesAssociatedToLocationByExternalId in interface NuageVspAclClientaclNetworkLocationId - aclTemplateType - aclTemplateId - NuageVspApiExceptionpublic void createDefaultRules(VspNetwork vspNetwork, NuageVspEntity nuageVspEntity, String nuageVspEntityId) throws NuageVspApiException
createDefaultRules in interface NuageVspAclClientNuageVspApiExceptionpublic org.apache.commons.lang3.tuple.Pair<NuageVspObject,NuageVspObject> findOrCreateAclTemplates(NetworkDetails networkDetails, Integer priority) throws NuageVspApiException
findOrCreateAclTemplates in interface NuageVspAclClientNuageVspApiExceptionpublic void saveAclRule(String enterpriseId, VspNetwork network, AclRulesDetails aclRulesDetails, NuageVspAclClient.AclProgress state, VspAclRule vspAclRule) throws NuageVspApiException
saveAclRule in interface NuageVspAclCliententerpriseId - network - aclRulesDetails - vspAclRule - NuageVspApiExceptionpublic void createOrDeleteDefaultIngressSubnetBlockAcl(VspNetwork vspNetwork, AclRulesDetails aclRulesDetails) throws NuageVspException
createOrDeleteDefaultIngressSubnetBlockAcl in interface NuageVspAclClientvspNetwork - aclRulesDetails - NuageVspExceptionpublic void removeAclRule(VspNetwork vspNetwork, AclRulesDetails aclRulesDetails, VspAclRule vspAclRule) throws NuageVspException
removeAclRule in interface NuageVspAclClientNuageVspExceptionpublic void resetAllAclRulesInTheNetwork(VspNetwork vspNetwork, NetworkDetails networkDetails, AclRulesDetails aclRulesDetails) throws NuageVspException
resetAllAclRulesInTheNetwork in interface NuageVspAclClientNuageVspExceptionpublic void applyFIPAccessControl(NuageVspEntity domainType, String domainId, String networkUuid, String staticNatIpUuid, boolean accessControl) throws NuageVspApiException
applyFIPAccessControl in interface NuageVspAclClientNuageVspApiExceptionpublic void applyStaticRoutes(NetworkDetails networkDetails, Collection<VspStaticRoute> staticRoutes) throws NuageVspApiException
applyStaticRoutes in interface NuageVspAclClientNuageVspApiExceptionpublic String findOrCreateNetworkMacroGroup(String vsdEnterpriseId, String sourceCidrList) throws NuageVspApiException
NuageVspApiExceptionpublic String findOrCreateNetworkMacro(String vsdEnterpriseId, String sourceCidr) throws NuageVspApiException
NuageVspApiExceptionpublic Map<String,NuageVspObject> groupByExternalId(List<NuageVspObject> aclEntries)
public Map<Integer,NuageVspObject> getDefaultAclEntries(NuageVspObject aclTemplate) throws NuageVspException
aclTemplate - ExceptionNuageVspExceptionCopyright © 2016–2017 Nuage Networks. All rights reserved.