|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.engage.common.ArrayElement
com.pcube.apps.engage.policy.IgnoreFilterRule
public class IgnoreFilterRule
Defines parameters for flows that need not have rules apply on them - these flows are by-passed. The parameters define the ips, ports and tos mutation values both for the flows source and for its destination.
| Nested Class Summary | |
|---|---|
static class |
IgnoreFilterRule.IgnoreFilterAction
Enumeration of Ignore rule actions |
| Field Summary | |
|---|---|
static int |
INTERFACE_1
The IgnoreFilterRule applys for interface 1. |
static int |
INTERFACE_2
The IgnoreFilterRule applys for interface 2. |
static int |
INTERFACE_BOTH
The IgnoreFilterRule applys for both interface 1 and interface 2. |
static byte |
TOS_MARKER_DO_NOT_REMARK
|
static int |
TRANSPORT_TYPE_VRRP
Deprecated. |
| Constructor Summary | |
|---|---|
IgnoreFilterRule(IgnoreFilterRule other)
IgnoreFilterRule Copy Constructor. |
|
IgnoreFilterRule(java.lang.String name,
java.lang.String description)
IgnoreFilterRule Constructor. |
|
IgnoreFilterRule(java.lang.String name,
java.lang.String description,
boolean isActive,
int transportType,
int netInterface,
long sourceipFrom,
byte sourceipFromMask,
long sourceipTo,
byte sourceipToMask,
long sourceportFrom,
int sourceportFromTransport,
long sourceportTo,
int sourceportToTransport,
boolean sourceinverseIps,
boolean sourceinversePorts,
long destipFrom,
byte destipFromMask,
long destipTo,
byte destipToMask,
long destportFrom,
int destportFromTransport,
long destportTo,
int destportToTransport,
boolean destinverseIps,
boolean destinversePorts,
CoS cos,
short tosFrom,
short tosTo,
boolean tosInverse,
boolean inverseAll)
IgnoreFilterRule Constructor. |
|
IgnoreFilterRule(java.lang.String name,
java.lang.String description,
boolean isActive,
int transportType,
int netInterface,
long sourceipFrom,
byte sourceipFromMask,
long sourceipTo,
byte sourceipToMask,
long sourceportFrom,
int sourceportFromTransport,
long sourceportTo,
int sourceportToTransport,
boolean sourceinverseIps,
boolean sourceinversePorts,
long destipFrom,
byte destipFromMask,
long destipTo,
byte destipToMask,
long destportFrom,
int destportFromTransport,
long destportTo,
int destportToTransport,
boolean destinverseIps,
boolean destinversePorts,
CoS cos,
short tosFrom,
short tosTo,
boolean tosInverse,
boolean inverseAll,
byte tosUpstreamMarkerIndex,
byte tosDownstreamMarkerIndex)
|
|
IgnoreFilterRule(java.lang.String name,
java.lang.String description,
boolean isActive,
int transportType,
int netInterface,
RangeIdentifier sourceRange,
RangeIdentifier destRange,
CoS cos,
short tosFrom,
short tosTo,
boolean tosInverse,
boolean inverseAll)
IgnoreFilterRule Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Producing an identical object to this object. |
static long[] |
convertIPv6ToLong(java.lang.String s)
|
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Method fromStream |
CoS |
getActionDefaultCoS()
|
IgnoreFilterRule.IgnoreFilterAction |
getBypassAction()
|
java.lang.String |
getDescription()
Gets this IgnoreFilterRule's description. |
IPListItem |
getDestinationIpFrom()
Gets this IgnoreFilterRule's destination ip range's lower bound ip. |
IPListItem |
getDestinationIpTo()
Gets this IgnoreFilterRule's destination ip range's upper bound ip. |
boolean |
getDestinationIsApplyToIpsOutOfRange()
Checks if this IgnoreFilterRule's destination ip is for out of range ips. |
boolean |
getDestinationIsApplyToPortsOutOfRange()
Checks if this IgnoreFilterRule's destination ports to take into consideration are the ones defined in the range or the out of range ports. |
boolean |
getDestinationIsIpRange()
Checks if this IgnoreFilterRule's destination defines an ip range or an ip address |
boolean |
getDestinationIsPortRange()
Checks if this IgnoreFilterRule's destination port is a range or a single port. |
PortListItem |
getDestinationPortFrom()
Gets this IgnoreFilterRule's destination's port range's lower bound port. |
PortListItem |
getDestinationPortTo()
Gets this IgnoreFilterRule's destination's port range's upper bound port. |
java.lang.String |
getDestIPv6From()
|
byte |
getDownstreamToSMarkerIndex()
|
byte |
getIpType()
|
long |
getIpv61High_high()
|
long |
getIpv61High_low()
|
long |
getIpv61Low_high()
|
long |
getIpv61Low_low()
|
byte |
getIpv61Prefix()
|
long |
getIpv62High_high()
|
long |
getIpv62High_low()
|
long |
getIpv62Low_high()
|
long |
getIpv62Low_low()
|
byte |
getIpv62Prefix()
|
java.lang.String |
getName()
Gets this IgnoreFilterRule's name. |
int |
getNetworkInterface()
Gets this IgnoreFilterRule's network interface. |
IgnoreFilterRule.IgnoreFilterAction |
getQuickForwardingAction()
|
IPListItem |
getSourceIpFrom()
Gets this IgnoreFilterRule's source ip range's lower bound ip. |
IPListItem |
getSourceIpTo()
Gets this IgnoreFilterRule's source ip range's upper bound ip. |
java.lang.String |
getSourceIPv6From()
|
boolean |
getSourceIsApplyToIpsOutOfRange()
Checks if this IgnoreFilterRule's source ip is for out of range ips. |
boolean |
getSourceIsApplyToPortsOutOfRange()
Checks if this IgnoreFilterRule's source ports to take into consideration are the ones defined in the range or the out of range ports. |
boolean |
getSourceIsIpRange()
Checks if this IgnoreFilterRule's source defines an ip range or an ip address |
boolean |
getSourceIsPortRange()
Checks if this IgnoreFilterRule's source port is a range or a single port. |
PortListItem |
getSourcePortFrom()
Gets this IgnoreFilterRule's source's port range's lower bound port. |
PortListItem |
getSourcePortTo()
Gets this IgnoreFilterRule's source's port range's upper bound port. |
short |
getTosFrom()
Gets this IgnoreFilterRule's tos mutation range lower bound. |
boolean |
getTosInverse()
Checks if the tos values to take into consideration are the ones defined in the tos range, or the ones out of range. |
short |
getTosTo()
Gets this IgnoreFilterRule's tos mutation range upper bound. |
int |
getTransportType()
Gets this IgnoreFilterRule's transport type. |
static int |
getTransportTypeFromString(java.lang.String strValue)
Gets the transport type integer value from its name. |
static java.lang.String |
getTransportTypeName(int transport)
Gets the String representation of the transport type. |
byte |
getUpstreamToSMarkerIndex()
|
void |
Ipv61High_high(long ipv61High_high)
|
void |
Ipv61High_low(long ipv61High_low)
|
void |
Ipv61Low_high(long ipv61Low_high)
|
void |
Ipv61Low_low(long ipv61Low_low)
|
void |
Ipv62High_high(long ipv62High_high)
|
void |
Ipv62High_low(long ipv62High_low)
|
void |
Ipv62Low_high(long ipv62Low_high)
|
void |
Ipv62Low_low(long ipv62Low_low)
|
boolean |
isInverseAll()
Checks if the values to consider are the ranges defined, or the out of range values. |
boolean |
isIpv6()
|
boolean |
isIsActive()
Checks if this IgnoreFilterRule is activated or not. |
boolean |
isProtocolAny()
|
static boolean |
isProtocolAny(int transportType)
|
boolean |
isProtocolAnyTcpUdp()
|
static boolean |
isProtocolAnyTcpUdp(int transportType)
|
boolean |
isProtocolTcp()
|
static boolean |
isProtocolTcp(int transportType)
|
boolean |
isProtocolTcpUdp()
|
static boolean |
isProtocolTcpUdp(int transportType)
|
boolean |
isProtocolUdp()
|
static boolean |
isProtocolUdp(int transportType)
|
void |
setActionDefaultCoS(CoS cos)
|
void |
setDescription(java.lang.String newDescription)
Sets this IgnoreFilterRule's description. |
void |
setDestinationIpFrom(IPListItem ip)
Sets this IgnoreFilterRule's destination ip range's lower bound ip. |
void |
setDestinationIpTo(IPListItem ip)
Sets this IgnoreFilterRule's destination ip range's upper bound ip. |
void |
setDestinationIPv6(java.lang.String destIPv6From)
|
void |
setDestinationIsApplyToIpsOutOfRange(boolean value)
Sets this IgnoreFilterRule's destination ips to be taken into acount - the ips in the range,as defined by the destination's from and to ips, or the out of range ips. |
void |
setDestinationIsApplyToPortsOutOfRange(boolean value)
Sets this IgnoreFilterRule's destination ports to be taken into acount - the ports in the range,as defined by the destination'S from and to ports, or the out of range ports. |
void |
setDestinationPortFrom(PortListItem port)
Sets this IgnoreFilterRule's destination's port range's lower bound port. |
void |
setDestinationPortTo(PortListItem port)
Sets this IgnoreFilterRule's destination's port range's upper bound port. |
void |
setDownstreamToSMarkerIndex(byte index)
|
void |
setInverseAll(boolean value)
A flag which states whether the ranges defined are the ones to be taken into consideration, or whether the out of range values are taken into consideration. |
void |
setIpBasedTransportType(int value)
Sets the transport type for this IgnoreFilterRule based on the IP Type. |
void |
setIpType(byte ipType)
|
void |
setIpv6(boolean ipv6)
|
void |
setIpv61Prefix(byte ipv61Prefix)
|
void |
setIpv62Prefix(byte ipv62Prefix)
|
void |
setIsActive(boolean newIsActive)
Determines whether this IgnoreFilterRule's is active or not. |
void |
setName(java.lang.String newName)
Sets this IgnoreFilterRule's name. |
void |
setNetworkInterface(int newNetworkInterface)
Sets the network interface from which flows arrive and this IgnoreFilterRule applys to. |
void |
setSourceIpFrom(IPListItem ip)
Sets this IgnoreFilterRule's source ip range's lower bound ip. |
void |
setSourceIpTo(IPListItem ip)
Sets this IgnoreFilterRule's source ip range's upper bound ip. |
void |
setSourceIPv6(java.lang.String sourceIPv6From)
|
void |
setSourceIsApplyToIpsOutOfRange(boolean value)
Sets this IgnoreFilterRule's source ips to be taken into acount - the ips in the range,as defined by the sources from and to ips, or the out of range ips. |
void |
setSourceIsApplyToPortsOutOfRange(boolean value)
Sets this IgnoreFilterRule's source ports to be taken into acount - the ports in the range,as defined by the sources from and to ports, or the out of range ports. |
void |
setSourcePortFrom(PortListItem port)
Sets this IgnoreFilterRule's source's port range's lower bound port. |
void |
setSourcePortTo(PortListItem port)
Sets this IgnoreFilterRule's source's port range's upper bound port. |
void |
setTosFrom(short value)
Sets this IgnoreFilterRule's tos mutation range lower bound. |
void |
setTosInverse(boolean value)
Sets the tos values to be taken into consideration. |
void |
setTosTo(short value)
Sets this IgnoreFilterRule's tos mutation range upper bound. |
void |
setTransportType(java.lang.String strValue)
|
void |
setUpstreamToSMarkerIndex(byte index)
|
void |
toStream(java.io.PrintStream out,
Formatter f)
Method toStream |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int INTERFACE_1
public static final int INTERFACE_2
public static final int INTERFACE_BOTH
public static final int TRANSPORT_TYPE_VRRP
public static final byte TOS_MARKER_DO_NOT_REMARK
| Constructor Detail |
|---|
public IgnoreFilterRule(IgnoreFilterRule other)
other - the other IgnoreFilterRule to copy the parameter values from
public IgnoreFilterRule(java.lang.String name,
java.lang.String description)
name - this IgnoreFilterRule's namedescription - this IgnoreFilterRule's description
public IgnoreFilterRule(java.lang.String name,
java.lang.String description,
boolean isActive,
int transportType,
int netInterface,
long sourceipFrom,
byte sourceipFromMask,
long sourceipTo,
byte sourceipToMask,
long sourceportFrom,
int sourceportFromTransport,
long sourceportTo,
int sourceportToTransport,
boolean sourceinverseIps,
boolean sourceinversePorts,
long destipFrom,
byte destipFromMask,
long destipTo,
byte destipToMask,
long destportFrom,
int destportFromTransport,
long destportTo,
int destportToTransport,
boolean destinverseIps,
boolean destinversePorts,
CoS cos,
short tosFrom,
short tosTo,
boolean tosInverse,
boolean inverseAll)
name - this IgnoreFilterRule's namedescription - this IgnoreFilterRule's descriptionisActive - this IgnoreFilterRule's flag stating if the rule is activetransportType - this IgnoreFilterRule's transport typenetInterface - this IgnoreFilterRule's network interfacesourceipFrom - this IgnoreFilterRule's source ip range lower bound ipsourceipFromMask - this IgnoreFilterRule's source ip range lower bound ip's masksourceipTo - this IgnoreFilterRule's source ip range upper bound ipsourceipToMask - this IgnoreFilterRule's source ip range upper bound ip's masksourceportFrom - this IgnoreFilterRule's source port range lower bound port
numbersourceportFromTransport - this IgnoreFilterRule's source port range lower bound port's
transport typesourceportTo - this IgnoreFilterRule's source port range upper bound port
numbersourceportToTransport - this IgnoreFilterRule's source port range upper bound port's
transport typesourceinverseIps - this IgnoreFilterRule's source inverse ips flagsourceinversePorts - this IgnoreFilterRule's source inverse ports flagdestipFrom - this IgnoreFilterRule's destination ip range lower bound ipdestipFromMask - this IgnoreFilterRule's destination ip range lower bound ip's
maskdestipTo - this IgnoreFilterRule's destination ip range upper bound ipdestipToMask - this IgnoreFilterRule's destination ip range upper bound ip's
maskdestportFrom - this IgnoreFilterRule's destination port range lower bound
port numberdestportFromTransport - this IgnoreFilterRule's destination port range lower bound
port's transport typedestportTo - this IgnoreFilterRule's destination port range upper bound
port numberdestportToTransport - this IgnoreFilterRule's destination port range upper bound
port's transport typedestinverseIps - this IgnoreFilterRule's destination inverse ips flagdestinversePorts - this IgnoreFilterRule's destination inverse ports flagtosFrom - this IgnoreFilterRule's tos mutation range lower boundcos - this IgnoreFilterRule's action default CoStosTo - this IgnoreFilterRule's tos mutation range upper boundtosInverse - this IgnoreFilterRule's inverse tos flaginverseAll - this IgnoreFilterRule's inverse all flagINTERFACE_1,
INTERFACE_2,
INTERFACE_BOTH
public IgnoreFilterRule(java.lang.String name,
java.lang.String description,
boolean isActive,
int transportType,
int netInterface,
long sourceipFrom,
byte sourceipFromMask,
long sourceipTo,
byte sourceipToMask,
long sourceportFrom,
int sourceportFromTransport,
long sourceportTo,
int sourceportToTransport,
boolean sourceinverseIps,
boolean sourceinversePorts,
long destipFrom,
byte destipFromMask,
long destipTo,
byte destipToMask,
long destportFrom,
int destportFromTransport,
long destportTo,
int destportToTransport,
boolean destinverseIps,
boolean destinversePorts,
CoS cos,
short tosFrom,
short tosTo,
boolean tosInverse,
boolean inverseAll,
byte tosUpstreamMarkerIndex,
byte tosDownstreamMarkerIndex)
public IgnoreFilterRule(java.lang.String name,
java.lang.String description,
boolean isActive,
int transportType,
int netInterface,
RangeIdentifier sourceRange,
RangeIdentifier destRange,
CoS cos,
short tosFrom,
short tosTo,
boolean tosInverse,
boolean inverseAll)
name - this IgnoreFilterRule's namedescription - this IgnoreFilterRule's descriptionisActive - this IgnoreFilterRule's flag stating if the rule is activetransportType - this IgnoreFilterRule's transport typenetInterface - this IgnoreFilterRule's network interfacesourceRange - this IgnoreFilterRule's source RangeIdentifierdestRange - this IgnoreFilterRule's destination RangeIdentifiercos - this IgnoreFilterRule's action default CoStosFrom - this IgnoreFilterRule's tos mutation range lower boundtosTo - this IgnoreFilterRule's tos mutation range lower boundtosInverse - this IgnoreFilterRule's tos mutation inverse flaginverseAll - this IgnoreFilterRule's inverse all flagINTERFACE_1,
INTERFACE_2,
INTERFACE_BOTH| Method Detail |
|---|
public static int getTransportTypeFromString(java.lang.String strValue)
strValue - the transport type name
public static java.lang.String getTransportTypeName(int transport)
transport - the transport type int value
public static boolean isProtocolAny(int transportType)
public static boolean isProtocolAnyTcpUdp(int transportType)
public static boolean isProtocolTcpUdp(int transportType)
public static boolean isProtocolTcp(int transportType)
public static boolean isProtocolUdp(int transportType)
public java.lang.Object clone()
clone in class ArrayElementObject.clone()
public void fromStream(java.io.BufferedReader in,
Formatter f)
throws ImportExportException
Formattable
fromStream in interface FormattableImportExportExceptionFormattable.fromStream(java.io.BufferedReader,
com.pcube.apps.engage.common.Formatter)public CoS getActionDefaultCoS()
public java.lang.String getDescription()
public IPListItem getDestinationIpFrom()
public IPListItem getDestinationIpTo()
public boolean getDestinationIsApplyToIpsOutOfRange()
public boolean getDestinationIsApplyToPortsOutOfRange()
public boolean getDestinationIsIpRange()
public boolean getDestinationIsPortRange()
public PortListItem getDestinationPortFrom()
public PortListItem getDestinationPortTo()
public java.lang.String getName()
public int getNetworkInterface()
public IPListItem getSourceIpFrom()
public IPListItem getSourceIpTo()
public boolean getSourceIsApplyToIpsOutOfRange()
public boolean getSourceIsApplyToPortsOutOfRange()
public boolean getSourceIsIpRange()
public boolean getSourceIsPortRange()
public PortListItem getSourcePortFrom()
public PortListItem getSourcePortTo()
public short getTosFrom()
public boolean getTosInverse()
public short getTosTo()
public byte getUpstreamToSMarkerIndex()
public byte getDownstreamToSMarkerIndex()
public int getTransportType()
public boolean isInverseAll()
public boolean isIsActive()
public boolean isProtocolAny()
public boolean isProtocolTcp()
public boolean isProtocolUdp()
public boolean isProtocolAnyTcpUdp()
public boolean isProtocolTcpUdp()
public void setActionDefaultCoS(CoS cos)
cos - public void setDescription(java.lang.String newDescription)
newDescription - this IgnoreFilterRule's new descriptionpublic void setDestinationIpFrom(IPListItem ip)
ip - IgnoreFilterRule's new destination ip range's lower bound ippublic void setDestinationIpTo(IPListItem ip)
ip - IgnoreFilterRule's new destination ip range's upper bound ippublic void setDestinationIsApplyToIpsOutOfRange(boolean value)
value - false to set the ips in the range, true to set the out of
range ipspublic void setDestinationIsApplyToPortsOutOfRange(boolean value)
value - false to set the ports in the range, true to set the out of
range portspublic void setDestinationPortFrom(PortListItem port)
port - the new destination's port range's lower bound portpublic void setDestinationPortTo(PortListItem port)
port - the new destination's port range's upper bound portpublic void setInverseAll(boolean value)
value - false to consider the range values, true to consider the out
of range valuespublic void setIsActive(boolean newIsActive)
newIsActive - true - activate this IgnoreFilterRule , false - disable this
IgnoreFilterRulepublic void setName(java.lang.String newName)
newName - this IgnoreFilterRule's new namepublic void setNetworkInterface(int newNetworkInterface)
newNetworkInterface - this IgnoreFilterRule's network interfaceINTERFACE_1,
INTERFACE_2,
INTERFACE_BOTHpublic void setSourceIpFrom(IPListItem ip)
ip - IgnoreFilterRule's new source ip range's lower bound ippublic void setSourceIpTo(IPListItem ip)
ip - IgnoreFilterRule's new source ip range's upper bound ippublic void setSourceIsApplyToIpsOutOfRange(boolean value)
value - false to set the ips in the range, true to set the out of
range ipspublic void setSourceIsApplyToPortsOutOfRange(boolean value)
value - false to set the ports in the range, true to set the out of
range portspublic void setSourcePortFrom(PortListItem port)
port - the new source's port range's lower bound portpublic void setSourcePortTo(PortListItem port)
port - the new source's port range's upper bound portpublic void setTosFrom(short value)
value - the new tos muitation range lower boundpublic void setUpstreamToSMarkerIndex(byte index)
public void setDownstreamToSMarkerIndex(byte index)
public void setTosInverse(boolean value)
value - the inverse tos valuepublic void setTosTo(short value)
value - the new tos muitation range upper boundpublic void setIpBasedTransportType(int value)
value - this IgnoreFilterRule's new transport type
java.lang.IllegalArgumentException - if there is not such transport typepublic void setTransportType(java.lang.String strValue)
strValue -
public void toStream(java.io.PrintStream out,
Formatter f)
Formattable
toStream in interface FormattableFormattable.toStream(java.io.PrintStream,
com.pcube.apps.engage.common.Formatter)public IgnoreFilterRule.IgnoreFilterAction getBypassAction()
public IgnoreFilterRule.IgnoreFilterAction getQuickForwardingAction()
public long getIpv61High_high()
public void Ipv61High_high(long ipv61High_high)
public long getIpv61High_low()
public void Ipv61High_low(long ipv61High_low)
public long getIpv61Low_high()
public void Ipv61Low_high(long ipv61Low_high)
public long getIpv61Low_low()
public void Ipv61Low_low(long ipv61Low_low)
public long getIpv62High_high()
public void Ipv62High_high(long ipv62High_high)
public long getIpv62High_low()
public void Ipv62High_low(long ipv62High_low)
public long getIpv62Low_high()
public void Ipv62Low_high(long ipv62Low_high)
public long getIpv62Low_low()
public void Ipv62Low_low(long ipv62Low_low)
public byte getIpv61Prefix()
public void setIpv61Prefix(byte ipv61Prefix)
public byte getIpv62Prefix()
public void setIpv62Prefix(byte ipv62Prefix)
public byte getIpType()
public void setIpType(byte ipType)
public void setSourceIPv6(java.lang.String sourceIPv6From)
public void setDestinationIPv6(java.lang.String destIPv6From)
public void setIpv6(boolean ipv6)
public boolean isIpv6()
public java.lang.String getSourceIPv6From()
public java.lang.String getDestIPv6From()
public static long[] convertIPv6ToLong(java.lang.String s)
throws java.lang.NumberFormatException,
java.util.NoSuchElementException
java.lang.NumberFormatException
java.util.NoSuchElementException
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||