|
||||||||||
| 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.CiscoRouterConfigComponent
com.foxsmart.csu.config.global.interfacepkg.IpMtuComponent
public class IpMtuComponent
The IpMtuComponent class sets the IP maximum transmit unit for an interface.
| Field Summary | |
|---|---|
static java.lang.String |
IP
|
static java.lang.Integer |
MAX_MTU_BYTES
The maximum "maximum" transmition unit in bytes. |
static java.lang.Integer |
MIN_MTU_BYTES
The minimum maximum transmition unit in bytes. |
static java.lang.String |
MTU
|
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigComponent |
|---|
commentComponent, componentMap, log, parentComponent |
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser |
|---|
NO, tokenIndex |
| Constructor Summary | |
|---|---|
IpMtuComponent()
Constructs an IP maximum transmition unit. |
|
| Method Summary | |
|---|---|
java.util.List |
buildFromIos(java.util.List configLines)
Parse and populate the specific CiscoRouterComponent object based on the passed in individual lines of the IOS configuration. |
Commands |
generateIos()
Only output the encapsulation statement if the encapsulation options are no HDLC. |
java.lang.Integer |
getMtu()
Gets the IP maximum transmition unit. |
void |
setMtu(java.lang.Integer mtu)
Sets the IP maximum transmition unit. |
void |
validate()
Validates this object to ensure it contains a valid IOS configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String IP
public static final java.lang.String MTU
public static final java.lang.Integer MIN_MTU_BYTES
public static final java.lang.Integer MAX_MTU_BYTES
| Constructor Detail |
|---|
public IpMtuComponent()
| Method Detail |
|---|
public java.lang.Integer getMtu()
public void setMtu(java.lang.Integer mtu)
mtu - the IP maximum transmition unit.
public java.util.List buildFromIos(java.util.List configLines)
throws InvalidConfigurationException
CiscoRouterConfigComponent
buildFromIos in class CiscoRouterConfigComponentconfigLines - The list of IOS configuration lines.
InvalidConfigurationException - if the IOS configuration can not be parsed for any reason.CiscoRouterConfigComponent
public void validate()
throws InvalidConfigurationException
CiscoRouterConfigComponent
validate in class CiscoRouterConfigComponentInvalidConfigurationException - if the configuration is invalid.CiscoRouterConfigComponent
public Commands generateIos()
throws InvalidConfigurationException
generateIos in class CiscoRouterConfigComponentInvalidConfigurationException - if the IOS configuration is invalid and the IOS string can not be generated.
The validate() method is used to determine if the configuration is valid.CiscoRouterConfigComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||