public interface AclStore
extends org.onosproject.store.Store
| Modifier and Type | Method and Description |
|---|---|
void |
addAclRule(AclRule rule)
Adds a new ACL rule.
|
void |
addDenyToAllowMapping(RuleId denyingRuleId,
RuleId allowingRuleId)
Adds a new mapping from denying ACL rule to allowing ACL rule.
|
void |
addRuleToDeviceMapping(RuleId ruleId,
org.onosproject.net.DeviceId deviceId)
Adds a new mapping from ACL rule to device.
|
void |
addRuleToFlowMapping(RuleId ruleId,
org.onosproject.net.flow.FlowRule flowRule)
Adds a new mapping from ACL rule to ACL flow rule.
|
boolean |
checkIfRuleWorksInDevice(RuleId ruleId,
org.onosproject.net.DeviceId deviceId)
Checks if an existing ACL rule already works in a given device.
|
void |
clearAcl()
Clears ACL and reset all.
|
AclRule |
getAclRule(RuleId ruleId)
Gets an existing ACL rule.
|
List<AclRule> |
getAclRules()
Gets a list containing all ACL rules.
|
List<RuleId> |
getAllowingRuleByDenyingRule(RuleId denyingRuleId)
Gets a list containing all allowing ACL rules matching a given denying ACL rule.
|
Set<org.onosproject.net.flow.FlowRule> |
getFlowByRule(RuleId ruleId)
Gets a set containing all ACL flow rules belonging to a given ACL rule.
|
int |
getPriorityByDevice(org.onosproject.net.DeviceId deviceId)
Gets the current priority for new ACL flow rule by device id.
|
void |
removeAclRule(RuleId ruleId)
Removes an existing ACL rule by rule id.
|
void |
removeDenyToAllowMapping(RuleId denyingRuleId)
Removes an exsiting mapping from denying ACL rule to allowing ACL rule.
|
void |
removeRuleToDeviceMapping(RuleId ruleId)
Removes an existing mapping from ACL rule to device.
|
void |
removeRuleToFlowMapping(RuleId ruleId)
Removes an existing mapping from ACL rule to ACL flow rule.
|
List<AclRule> getAclRules()
void addAclRule(AclRule rule)
rule - new ACL ruleAclRule getAclRule(RuleId ruleId)
ruleId - ACL rule idvoid removeAclRule(RuleId ruleId)
ruleId - ACL rule idvoid clearAcl()
int getPriorityByDevice(org.onosproject.net.DeviceId deviceId)
deviceId - device idSet<org.onosproject.net.flow.FlowRule> getFlowByRule(RuleId ruleId)
ruleId - ACL rule idvoid addRuleToFlowMapping(RuleId ruleId, org.onosproject.net.flow.FlowRule flowRule)
ruleId - ACL rule idflowRule - ACL flow rulevoid removeRuleToFlowMapping(RuleId ruleId)
ruleId - ACL rule idList<RuleId> getAllowingRuleByDenyingRule(RuleId denyingRuleId)
denyingRuleId - denying ACL rule idvoid addDenyToAllowMapping(RuleId denyingRuleId, RuleId allowingRuleId)
denyingRuleId - denying ACL rule idallowingRuleId - allowing ACL rule idvoid removeDenyToAllowMapping(RuleId denyingRuleId)
denyingRuleId - denying ACL rule idboolean checkIfRuleWorksInDevice(RuleId ruleId, org.onosproject.net.DeviceId deviceId)
ruleId - ACL rule iddeviceId - devide idvoid addRuleToDeviceMapping(RuleId ruleId, org.onosproject.net.DeviceId deviceId)
ruleId - ACL rule iddeviceId - device idvoid removeRuleToDeviceMapping(RuleId ruleId)
ruleId - ACL rule id