public final class AclRule extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AclRule.Action
Enum type for ACL rule's action.
|
static class |
AclRule.Builder
Builder of an ACL rule.
|
| Modifier and Type | Method and Description |
|---|---|
AclRule.Action |
action() |
static void |
bindIdGenerator(org.onosproject.core.IdGenerator newIdGenerator)
Binds an id generator for unique ACL rule id generation.
|
static AclRule.Builder |
builder()
Returns a new ACL rule builder.
|
boolean |
checkMatch(AclRule r)
Check if this ACL rule match the given ACL rule.
|
org.onlab.packet.Ip4Prefix |
dstIp() |
short |
dstTpPort() |
boolean |
equals(Object obj) |
int |
hashCode() |
RuleId |
id() |
byte |
ipProto() |
org.onlab.packet.Ip4Prefix |
srcIp() |
String |
toString() |
public boolean checkMatch(AclRule r)
r - ACL rule to check againstpublic static AclRule.Builder builder()
public static void bindIdGenerator(org.onosproject.core.IdGenerator newIdGenerator)
Note: A generator cannot be bound if there is already a generator bound.
newIdGenerator - id generatorpublic RuleId id()
public org.onlab.packet.Ip4Prefix srcIp()
public org.onlab.packet.Ip4Prefix dstIp()
public byte ipProto()
public short dstTpPort()
public AclRule.Action action()