|
||||||||||
| 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.AaaNewModelComponent
public class AaaNewModelComponent
The AAA New Model command enables new access control commands and functions while disabling old commands. The existence of this component enables this feature.
| Field Summary | |
|---|---|
static java.lang.String |
AAA
|
static java.lang.String |
NEW_MODEL
|
| 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 | |
|---|---|
AaaNewModelComponent()
Constructs a notify object. |
|
| 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()
Returns the IOS configuration commands for this component. |
static boolean |
getAaaNewModelEnabled(CiscoRouterConfig ciscoRouterConfig)
Determines if the AAA new model is enabled on the router or not. |
boolean |
getNoAaaNewModel()
Gets whether the AAA new model should be turned off. |
void |
setNoAaaNewModel(boolean noAaaNewModel)
Sets whether the AAA new model should be turned on or not. |
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 AAA
public static final java.lang.String NEW_MODEL
| Constructor Detail |
|---|
public AaaNewModelComponent()
| Method Detail |
|---|
public boolean getNoAaaNewModel()
public void setNoAaaNewModel(boolean noAaaNewModel)
noAaaNewModel - True if the AAA new model should be turned off or false if not.
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
CiscoRouterConfigComponent
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.CiscoRouterConfigComponentpublic static boolean getAaaNewModelEnabled(CiscoRouterConfig ciscoRouterConfig)
ciscoRouterConfig - the router configuration to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||