Cisco Systems, Inc.

com.pcube.apps.engage.policy
Class IgnoreFilterRule

java.lang.Object
  extended by com.pcube.apps.engage.common.ArrayElement
      extended by com.pcube.apps.engage.policy.IgnoreFilterRule
All Implemented Interfaces:
Formattable, java.io.Serializable, java.lang.Cloneable

public class IgnoreFilterRule
extends ArrayElement
implements java.lang.Cloneable, java.io.Serializable, Formattable

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.

See Also:
Serialized Form

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

INTERFACE_1

public static final int INTERFACE_1
The IgnoreFilterRule applys for interface 1.

See Also:
Constant Field Values

INTERFACE_2

public static final int INTERFACE_2
The IgnoreFilterRule applys for interface 2.

See Also:
Constant Field Values

INTERFACE_BOTH

public static final int INTERFACE_BOTH
The IgnoreFilterRule applys for both interface 1 and interface 2.

See Also:
Constant Field Values

TRANSPORT_TYPE_VRRP

public static final int TRANSPORT_TYPE_VRRP
Deprecated. 
See Also:
Constant Field Values

TOS_MARKER_DO_NOT_REMARK

public static final byte TOS_MARKER_DO_NOT_REMARK
See Also:
Constant Field Values
Constructor Detail

IgnoreFilterRule

public IgnoreFilterRule(IgnoreFilterRule other)
IgnoreFilterRule Copy Constructor.

Parameters:
other - the other IgnoreFilterRule to copy the parameter values from

IgnoreFilterRule

public IgnoreFilterRule(java.lang.String name,
                        java.lang.String description)
IgnoreFilterRule Constructor.

Parameters:
name - this IgnoreFilterRule's name
description - this IgnoreFilterRule's description

IgnoreFilterRule

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)
IgnoreFilterRule Constructor.

Parameters:
name - this IgnoreFilterRule's name
description - this IgnoreFilterRule's description
isActive - this IgnoreFilterRule's flag stating if the rule is active
transportType - this IgnoreFilterRule's transport type
netInterface - this IgnoreFilterRule's network interface
sourceipFrom - this IgnoreFilterRule's source ip range lower bound ip
sourceipFromMask - this IgnoreFilterRule's source ip range lower bound ip's mask
sourceipTo - this IgnoreFilterRule's source ip range upper bound ip
sourceipToMask - this IgnoreFilterRule's source ip range upper bound ip's mask
sourceportFrom - this IgnoreFilterRule's source port range lower bound port number
sourceportFromTransport - this IgnoreFilterRule's source port range lower bound port's transport type
sourceportTo - this IgnoreFilterRule's source port range upper bound port number
sourceportToTransport - this IgnoreFilterRule's source port range upper bound port's transport type
sourceinverseIps - this IgnoreFilterRule's source inverse ips flag
sourceinversePorts - this IgnoreFilterRule's source inverse ports flag
destipFrom - this IgnoreFilterRule's destination ip range lower bound ip
destipFromMask - this IgnoreFilterRule's destination ip range lower bound ip's mask
destipTo - this IgnoreFilterRule's destination ip range upper bound ip
destipToMask - this IgnoreFilterRule's destination ip range upper bound ip's mask
destportFrom - this IgnoreFilterRule's destination port range lower bound port number
destportFromTransport - this IgnoreFilterRule's destination port range lower bound port's transport type
destportTo - this IgnoreFilterRule's destination port range upper bound port number
destportToTransport - this IgnoreFilterRule's destination port range upper bound port's transport type
destinverseIps - this IgnoreFilterRule's destination inverse ips flag
destinversePorts - this IgnoreFilterRule's destination inverse ports flag
tosFrom - this IgnoreFilterRule's tos mutation range lower bound
cos - this IgnoreFilterRule's action default CoS
tosTo - this IgnoreFilterRule's tos mutation range upper bound
tosInverse - this IgnoreFilterRule's inverse tos flag
inverseAll - this IgnoreFilterRule's inverse all flag
See Also:
INTERFACE_1, INTERFACE_2, INTERFACE_BOTH

IgnoreFilterRule

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)

IgnoreFilterRule

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)
IgnoreFilterRule Constructor.

Parameters:
name - this IgnoreFilterRule's name
description - this IgnoreFilterRule's description
isActive - this IgnoreFilterRule's flag stating if the rule is active
transportType - this IgnoreFilterRule's transport type
netInterface - this IgnoreFilterRule's network interface
sourceRange - this IgnoreFilterRule's source RangeIdentifier
destRange - this IgnoreFilterRule's destination RangeIdentifier
cos - this IgnoreFilterRule's action default CoS
tosFrom - this IgnoreFilterRule's tos mutation range lower bound
tosTo - this IgnoreFilterRule's tos mutation range lower bound
tosInverse - this IgnoreFilterRule's tos mutation inverse flag
inverseAll - this IgnoreFilterRule's inverse all flag
See Also:
INTERFACE_1, INTERFACE_2, INTERFACE_BOTH
Method Detail

getTransportTypeFromString

public static int getTransportTypeFromString(java.lang.String strValue)
Gets the transport type integer value from its name.

Parameters:
strValue - the transport type name
Returns:
the transport type integer value

getTransportTypeName

public static java.lang.String getTransportTypeName(int transport)
Gets the String representation of the transport type.

Parameters:
transport - the transport type int value
Returns:
the transport type name

isProtocolAny

public static boolean isProtocolAny(int transportType)

isProtocolAnyTcpUdp

public static boolean isProtocolAnyTcpUdp(int transportType)

isProtocolTcpUdp

public static boolean isProtocolTcpUdp(int transportType)

isProtocolTcp

public static boolean isProtocolTcp(int transportType)

isProtocolUdp

public static boolean isProtocolUdp(int transportType)

clone

public java.lang.Object clone()
Producing an identical object to this object.

Specified by:
clone in class ArrayElement
Returns:
a newly alocated object similar to this object.
See Also:
Object.clone()

fromStream

public void fromStream(java.io.BufferedReader in,
                       Formatter f)
                throws ImportExportException
Description copied from interface: Formattable
Method fromStream

Specified by:
fromStream in interface Formattable
Throws:
ImportExportException
See Also:
Formattable.fromStream(java.io.BufferedReader, com.pcube.apps.engage.common.Formatter)

getActionDefaultCoS

public CoS getActionDefaultCoS()
Returns:

getDescription

public java.lang.String getDescription()
Gets this IgnoreFilterRule's description.

Returns:
this IgnoreFilterRule's description

getDestinationIpFrom

public IPListItem getDestinationIpFrom()
Gets this IgnoreFilterRule's destination ip range's lower bound ip.

Returns:
this IgnoreFilterRule's destination ip range's lower bound ip

getDestinationIpTo

public IPListItem getDestinationIpTo()
Gets this IgnoreFilterRule's destination ip range's upper bound ip.

Returns:
this IgnoreFilterRule's destination ip range's upper bound ip

getDestinationIsApplyToIpsOutOfRange

public boolean getDestinationIsApplyToIpsOutOfRange()
Checks if this IgnoreFilterRule's destination ip is for out of range ips.

Returns:
true if the destination ip is for out of range ips, false otherwise

getDestinationIsApplyToPortsOutOfRange

public 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.

Returns:
false if the considered ports are the ones in the range, true if the considered ports are the out of range ports

getDestinationIsIpRange

public boolean getDestinationIsIpRange()
Checks if this IgnoreFilterRule's destination defines an ip range or an ip address

Returns:
true if this IgnoreFilterRule's destination defines an ip range, false if it defines an ip address

getDestinationIsPortRange

public boolean getDestinationIsPortRange()
Checks if this IgnoreFilterRule's destination port is a range or a single port.

Returns:
true if the destination port is a range, false if it is a single port

getDestinationPortFrom

public PortListItem getDestinationPortFrom()
Gets this IgnoreFilterRule's destination's port range's lower bound port.

Returns:
the destination's port range's lower bound port

getDestinationPortTo

public PortListItem getDestinationPortTo()
Gets this IgnoreFilterRule's destination's port range's upper bound port.

Returns:
the destination's port range's upper bound port

getName

public java.lang.String getName()
Gets this IgnoreFilterRule's name.

Returns:
this IgnoreFilterRule's name

getNetworkInterface

public int getNetworkInterface()
Gets this IgnoreFilterRule's network interface.

Returns:
this IgnoreFilterRule's network interface

getSourceIpFrom

public IPListItem getSourceIpFrom()
Gets this IgnoreFilterRule's source ip range's lower bound ip.

Returns:
this IgnoreFilterRule's source ip range's lower bound ip

getSourceIpTo

public IPListItem getSourceIpTo()
Gets this IgnoreFilterRule's source ip range's upper bound ip.

Returns:
this IgnoreFilterRule's source ip range's upper bound ip

getSourceIsApplyToIpsOutOfRange

public boolean getSourceIsApplyToIpsOutOfRange()
Checks if this IgnoreFilterRule's source ip is for out of range ips.

Returns:
true if the source ip is for out of range ips, false otherwise

getSourceIsApplyToPortsOutOfRange

public 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.

Returns:
false if the considered ports are the ones in the range, true if the considered ports are the out of range ports

getSourceIsIpRange

public boolean getSourceIsIpRange()
Checks if this IgnoreFilterRule's source defines an ip range or an ip address

Returns:
true if this IgnoreFilterRule's source defines an ip range, false if it defines an ip address

getSourceIsPortRange

public boolean getSourceIsPortRange()
Checks if this IgnoreFilterRule's source port is a range or a single port.

Returns:
true if the source port is a range, false if it is a single port

getSourcePortFrom

public PortListItem getSourcePortFrom()
Gets this IgnoreFilterRule's source's port range's lower bound port.

Returns:
the source's port range's lower bound port

getSourcePortTo

public PortListItem getSourcePortTo()
Gets this IgnoreFilterRule's source's port range's upper bound port.

Returns:
the source's port range's upper bound port

getTosFrom

public short getTosFrom()
Gets this IgnoreFilterRule's tos mutation range lower bound.

Returns:
this IgnoreFilterRule's tos mutation range lower bound

getTosInverse

public 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.

Returns:
false - the tos range values are considered, true - the out of range tos values are considered

getTosTo

public short getTosTo()
Gets this IgnoreFilterRule's tos mutation range upper bound.

Returns:
this IgnoreFilterRule's tos mutation range upper bound

getUpstreamToSMarkerIndex

public byte getUpstreamToSMarkerIndex()

getDownstreamToSMarkerIndex

public byte getDownstreamToSMarkerIndex()

getTransportType

public int getTransportType()
Gets this IgnoreFilterRule's transport type.

Returns:
this IgnoreFilterRule's transport type

isInverseAll

public boolean isInverseAll()
Checks if the values to consider are the ranges defined, or the out of range values.

Returns:
false - consider the ranges, true - consider the out of range values

isIsActive

public boolean isIsActive()
Checks if this IgnoreFilterRule is activated or not.

Returns:
true if this IgnoreFilterRule is activated, false otherwise

isProtocolAny

public boolean isProtocolAny()

isProtocolTcp

public boolean isProtocolTcp()

isProtocolUdp

public boolean isProtocolUdp()

isProtocolAnyTcpUdp

public boolean isProtocolAnyTcpUdp()

isProtocolTcpUdp

public boolean isProtocolTcpUdp()

setActionDefaultCoS

public void setActionDefaultCoS(CoS cos)
Parameters:
cos -

setDescription

public void setDescription(java.lang.String newDescription)
Sets this IgnoreFilterRule's description.

Parameters:
newDescription - this IgnoreFilterRule's new description

setDestinationIpFrom

public void setDestinationIpFrom(IPListItem ip)
Sets this IgnoreFilterRule's destination ip range's lower bound ip.

Parameters:
ip - IgnoreFilterRule's new destination ip range's lower bound ip

setDestinationIpTo

public void setDestinationIpTo(IPListItem ip)
Sets this IgnoreFilterRule's destination ip range's upper bound ip.

Parameters:
ip - IgnoreFilterRule's new destination ip range's upper bound ip

setDestinationIsApplyToIpsOutOfRange

public 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.

Parameters:
value - false to set the ips in the range, true to set the out of range ips

setDestinationIsApplyToPortsOutOfRange

public 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.

Parameters:
value - false to set the ports in the range, true to set the out of range ports

setDestinationPortFrom

public void setDestinationPortFrom(PortListItem port)
Sets this IgnoreFilterRule's destination's port range's lower bound port.

Parameters:
port - the new destination's port range's lower bound port

setDestinationPortTo

public void setDestinationPortTo(PortListItem port)
Sets this IgnoreFilterRule's destination's port range's upper bound port.

Parameters:
port - the new destination's port range's upper bound port

setInverseAll

public 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.

Parameters:
value - false to consider the range values, true to consider the out of range values

setIsActive

public void setIsActive(boolean newIsActive)
Determines whether this IgnoreFilterRule's is active or not.

Parameters:
newIsActive - true - activate this IgnoreFilterRule , false - disable this IgnoreFilterRule

setName

public void setName(java.lang.String newName)
Sets this IgnoreFilterRule's name.

Parameters:
newName - this IgnoreFilterRule's new name

setNetworkInterface

public void setNetworkInterface(int newNetworkInterface)
Sets the network interface from which flows arrive and this IgnoreFilterRule applys to.

Parameters:
newNetworkInterface - this IgnoreFilterRule's network interface
See Also:
INTERFACE_1, INTERFACE_2, INTERFACE_BOTH

setSourceIpFrom

public void setSourceIpFrom(IPListItem ip)
Sets this IgnoreFilterRule's source ip range's lower bound ip.

Parameters:
ip - IgnoreFilterRule's new source ip range's lower bound ip

setSourceIpTo

public void setSourceIpTo(IPListItem ip)
Sets this IgnoreFilterRule's source ip range's upper bound ip.

Parameters:
ip - IgnoreFilterRule's new source ip range's upper bound ip

setSourceIsApplyToIpsOutOfRange

public 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.

Parameters:
value - false to set the ips in the range, true to set the out of range ips

setSourceIsApplyToPortsOutOfRange

public 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.

Parameters:
value - false to set the ports in the range, true to set the out of range ports

setSourcePortFrom

public void setSourcePortFrom(PortListItem port)
Sets this IgnoreFilterRule's source's port range's lower bound port.

Parameters:
port - the new source's port range's lower bound port

setSourcePortTo

public void setSourcePortTo(PortListItem port)
Sets this IgnoreFilterRule's source's port range's upper bound port.

Parameters:
port - the new source's port range's upper bound port

setTosFrom

public void setTosFrom(short value)
Sets this IgnoreFilterRule's tos mutation range lower bound.

Parameters:
value - the new tos muitation range lower bound

setUpstreamToSMarkerIndex

public void setUpstreamToSMarkerIndex(byte index)

setDownstreamToSMarkerIndex

public void setDownstreamToSMarkerIndex(byte index)

setTosInverse

public void setTosInverse(boolean value)
Sets the tos values to be taken into consideration. If the value is false, the tos range ,as defined by the tos from and tos to values, is taken into consideration. If the value is true, the out of range tos values are taken into consideration.

Parameters:
value - the inverse tos value

setTosTo

public void setTosTo(short value)
Sets this IgnoreFilterRule's tos mutation range upper bound.

Parameters:
value - the new tos muitation range upper bound

setIpBasedTransportType

public void setIpBasedTransportType(int value)
Sets the transport type for this IgnoreFilterRule based on the IP Type.

Parameters:
value - this IgnoreFilterRule's new transport type
Throws:
java.lang.IllegalArgumentException - if there is not such transport type

setTransportType

public void setTransportType(java.lang.String strValue)
Parameters:
strValue -

toStream

public void toStream(java.io.PrintStream out,
                     Formatter f)
Description copied from interface: Formattable
Method toStream

Specified by:
toStream in interface Formattable
See Also:
Formattable.toStream(java.io.PrintStream, com.pcube.apps.engage.common.Formatter)

getBypassAction

public IgnoreFilterRule.IgnoreFilterAction getBypassAction()
Returns:
bypass action

getQuickForwardingAction

public IgnoreFilterRule.IgnoreFilterAction getQuickForwardingAction()
Returns:
bypass action

getIpv61High_high

public long getIpv61High_high()

Ipv61High_high

public void Ipv61High_high(long ipv61High_high)

getIpv61High_low

public long getIpv61High_low()

Ipv61High_low

public void Ipv61High_low(long ipv61High_low)

getIpv61Low_high

public long getIpv61Low_high()

Ipv61Low_high

public void Ipv61Low_high(long ipv61Low_high)

getIpv61Low_low

public long getIpv61Low_low()

Ipv61Low_low

public void Ipv61Low_low(long ipv61Low_low)

getIpv62High_high

public long getIpv62High_high()

Ipv62High_high

public void Ipv62High_high(long ipv62High_high)

getIpv62High_low

public long getIpv62High_low()

Ipv62High_low

public void Ipv62High_low(long ipv62High_low)

getIpv62Low_high

public long getIpv62Low_high()

Ipv62Low_high

public void Ipv62Low_high(long ipv62Low_high)

getIpv62Low_low

public long getIpv62Low_low()

Ipv62Low_low

public void Ipv62Low_low(long ipv62Low_low)

getIpv61Prefix

public byte getIpv61Prefix()

setIpv61Prefix

public void setIpv61Prefix(byte ipv61Prefix)

getIpv62Prefix

public byte getIpv62Prefix()

setIpv62Prefix

public void setIpv62Prefix(byte ipv62Prefix)

getIpType

public byte getIpType()

setIpType

public void setIpType(byte ipType)

setSourceIPv6

public void setSourceIPv6(java.lang.String sourceIPv6From)

setDestinationIPv6

public void setDestinationIPv6(java.lang.String destIPv6From)

setIpv6

public void setIpv6(boolean ipv6)

isIpv6

public boolean isIpv6()

getSourceIPv6From

public java.lang.String getSourceIPv6From()

getDestIPv6From

public java.lang.String getDestIPv6From()

convertIPv6ToLong

public static long[] convertIPv6ToLong(java.lang.String s)
                                throws java.lang.NumberFormatException,
                                       java.util.NoSuchElementException
Throws:
java.lang.NumberFormatException
java.util.NoSuchElementException

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.