|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxsmart.csu.config.CiscoRouterConfigParser
com.foxsmart.csu.config.global.IpRouteEntry
public class IpRouteEntry
The IpRouteEntry class represents a unique IP route.
| Field Summary | |
|---|---|
static java.lang.String |
GLOBAL
|
static java.lang.Integer |
MAX_DISTANCE_METRIC
The maximum distance metric. |
static java.lang.Long |
MAX_TAG_VALUE
The maximum tag value. |
static java.lang.Integer |
MIN_DISTANCE_METRIC
The minimum distance metric. |
static java.lang.Long |
MIN_TAG_VALUE
The minimum tag value. |
static java.lang.String |
NAME
|
static java.lang.String |
PERMANENT
|
static java.lang.String |
TAG
|
static java.lang.String |
VRF
|
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser |
|---|
log, NO, tokenIndex |
| Constructor Summary | |
|---|---|
IpRouteEntry()
Constructs an IP route entry. |
|
| Method Summary | |
|---|---|
void |
buildFromIos(java.lang.String line)
Builds the IP route entry from the passed in IOS line. |
int |
compareTo(java.lang.Object object)
Compares this object to the passed in IpRouteEntry object. |
boolean |
equals(java.lang.Object object)
Checks the passed in IpRouteEntry object for equality. |
java.lang.String |
generateDeleteIosStringForDestination()
Generates the IOS configuration to delete this route entry and all others that share the same destination (i.e. |
java.lang.String |
generateIosString()
Generates the IOS configuration for this route entry. |
IpAddress |
getDestinationPrefix()
Gets the destination prefix. |
IpAddress |
getDestinationPrefixMask()
Gets the destination prefix mask. |
java.lang.Integer |
getDistanceMetric()
Gets the distance metric for this route. |
boolean |
getGlobalFlag()
Gets whether the next hop is global. |
IpAddress |
getNextHopAddress()
Gets the next hop address. |
InterfaceComponent |
getNextHopInterface()
Gets the next hop interface. |
java.lang.String |
getNextHopName()
Gets the name of the next hop. |
boolean |
getPermanentRouteFlag()
Gets whether this route is permanent. |
java.lang.Long |
getTagValue()
Gets the tag value for this route. |
java.lang.String |
getVrfName()
Gets the VRF name. |
void |
setDestinationPrefix(IpAddress destinationPrefix)
Sets the destination prefix. |
void |
setDestinationPrefixMask(IpAddress destinationPrefixMask)
Sets the destination prefix mask. |
void |
setDistanceMetric(java.lang.Integer distanceMetric)
Sets the distance metric for this route. |
void |
setGlobalFlag(boolean globalFlag)
Sets whether the next hop is global. |
void |
setNextHopAddress(IpAddress nextHopAddress)
Sets the next hop address. |
void |
setNextHopInterface(InterfaceComponent nextHopInterface)
Sets the next hop interface. |
void |
setNextHopName(java.lang.String nextHopName)
Sets the name of the next hop. |
void |
setPermanentRouteFlag(boolean permanentRouteFlag)
Sets whether this route is permanent. |
void |
setTagValue(java.lang.Long tagValue)
Sets the tag value for this route. |
void |
setVrfName(java.lang.String vrfName)
Sets the VPN Routing/Forwarding instance name for a VPN Routing/Forwarding instance static route. |
void |
validate()
|
void |
validateDestination()
Validates that a destination has been set. |
void |
validateNextHopSet()
Validates that a next hop has been set. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VRF
public static final java.lang.String GLOBAL
public static final java.lang.String NAME
public static final java.lang.String PERMANENT
public static final java.lang.String TAG
public static final java.lang.Long MIN_TAG_VALUE
public static final java.lang.Long MAX_TAG_VALUE
public static final java.lang.Integer MIN_DISTANCE_METRIC
public static final java.lang.Integer MAX_DISTANCE_METRIC
| Constructor Detail |
|---|
public IpRouteEntry()
| Method Detail |
|---|
public IpAddress getDestinationPrefix()
public void setDestinationPrefix(IpAddress destinationPrefix)
destinationPrefix - the destination prefix.public IpAddress getDestinationPrefixMask()
public void setDestinationPrefixMask(IpAddress destinationPrefixMask)
destinationPrefixMask - the destination prefix mask.public java.lang.String getVrfName()
public void setVrfName(java.lang.String vrfName)
vrfName - the VRF name.public boolean getGlobalFlag()
public void setGlobalFlag(boolean globalFlag)
globalFlag - True if the next hop is global or false if not.public java.lang.String getNextHopName()
public void setNextHopName(java.lang.String nextHopName)
nextHopName - the name of the next hop.public boolean getPermanentRouteFlag()
public void setPermanentRouteFlag(boolean permanentRouteFlag)
permanentRouteFlag - True if the route is permanent or false if not.public java.lang.Long getTagValue()
public void setTagValue(java.lang.Long tagValue)
tagValue - The tag value.public java.lang.Integer getDistanceMetric()
public void setDistanceMetric(java.lang.Integer distanceMetric)
distanceMetric - the distance metric.public InterfaceComponent getNextHopInterface()
public void setNextHopInterface(InterfaceComponent nextHopInterface)
nextHopInterface - the next hop interface.public IpAddress getNextHopAddress()
public void setNextHopAddress(IpAddress nextHopAddress)
nextHopAddress - the next hop address
public void buildFromIos(java.lang.String line)
throws InvalidConfigurationException
line - the IOS line.
InvalidConfigurationException - if the configuration is invalid.CiscoRouterConfigComponent.buildFromIos(java.util.List).
public void validate()
throws InvalidConfigurationException
InvalidConfigurationException - if the route entry is not valid.CiscoRouterConfigComponent
public void validateDestination()
throws InvalidConfigurationException
InvalidConfigurationException - if the destination prefix or destination prefix mask
are not set.
public void validateNextHopSet()
throws InvalidConfigurationException
InvalidConfigurationException - if at least a next hop interface or next hop address
has not been set.
public java.lang.String generateIosString()
throws InvalidConfigurationException
InvalidConfigurationException - if the configuration is invalid.CiscoRouterConfigComponent
public java.lang.String generateDeleteIosStringForDestination()
throws InvalidConfigurationException
InvalidConfigurationException - if the configuration is invalid.CiscoRouterConfigComponentpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the IpRouteEntry object to compare.
Object.equals(Object)public int compareTo(java.lang.Object object)
compareTo in interface java.lang.Comparableobject - the IpRouteEntry object to compare.
Comparable.compareTo(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||