Package com.tailf.maapi
Enum Class MaapiConfigFlag
- All Implemented Interfaces:
Serializable
,Comparable<MaapiConfigFlag>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSave/Load config flag indicating Cisco IOS style configuration format.Save/Load config flag indicating Cisco XR style configuration format.The flag can be used together withMAAPI_CONFIG_C
andMAAPI_CONFIG_C_IOS
to mean that a commit should be performed after each lineThe output of saveConfig will only include data stored in CDB.The flag can be used to indicate that the load should not be aborted when an error is encountered.Hide all hidden nodes.The output of saveConfig will begin at path instead of root.The output of saveConfig will only include operational data and ancestors to operational data nodes.To replace only the part of the configuration that is present in the file.The flag is used to suppress the long error messages but instead have a one line error with the line number.Unhide all hidden nodes (see below).The flag can be used to request that NCS service-meta-data attributes should be included when saving configuration.The flag can be used together withXML_FORMAT
.The configuration format is JSON.Save/Load config flag indicating curly brace Juniper CLI configuration format.Same asCONFIG_AUTOCOMMIT
Same asCISCO_XR_FORMAT
Same asCISCO_IOS_FORMAT
Same asCONFIG_CDB_ONLY
Same asCONFIG_CONTINUE_ON_ERROR
Same asCONFIG_HIDE_ALL
Same asJUNIPER_CLI_FORMAT
Same asJSON_FORMAT
Same asMERGE_CONFIGURATIONS
Same asCONFIG_AUTOCOMMIT
Same asCONFIG_NO_PARENTS
Same asCONFIG_OPER_ONLY
The output of saveConfig will only include nodes for which the user has read_write access.Same asCONFIG_REPLACE
Same asWITH_DEFAULTS
Same asCONFIG_SUPPRESS_ERRORS
Same asCONFIG_UNHIDE_ALL
Same asWITH_DEFAULTS
Same asWITH_OPER
Same asCONFIG_WITH_SERVICE_META
Same asXML_FORMAT
Same asCONFIG_XML_LOAD_LAX
Same asXPATH
Same asXPATH
Load config flag indicating that current configuration should be merged with the loaded data instead of deleted.Save/Load config flag indicating that default values are also included next to the real configuration value.Save/Load config flag indicating that default values are included as part of the configuration.Load config flag used in conjunction withMAAPI_CONFIG_XML
to indicated that operational data should be ignored instead of producing an error.Save/Load config flag indicating XML configuration format.The configuration format is pretty printed XML.The fmtpath and remaining arguments give an XPath filter instead of a keypath. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
static MaapiConfigFlag
Returns the enum constant of this class with the specified name.static MaapiConfigFlag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
XML_FORMAT
Save/Load config flag indicating XML configuration format. -
MAAPI_CONFIG_XML
Same asXML_FORMAT
-
JUNIPER_CLI_FORMAT
Save/Load config flag indicating curly brace Juniper CLI configuration format. -
MAAPI_CONFIG_J
Same asJUNIPER_CLI_FORMAT
-
CISCO_XR_FORMAT
Save/Load config flag indicating Cisco XR style configuration format. -
MAAPI_CONFIG_C
Same asCISCO_XR_FORMAT
-
WITH_DEFAULTS
Save/Load config flag indicating that default values are included as part of the configuration. -
MAAPI_CONFIG_WITH_DEFAULTS
Same asWITH_DEFAULTS
-
SHOW_DEFAULTS
Save/Load config flag indicating that default values are also included next to the real configuration value. -
MAAPI_CONFIG_SHOW_DEFAULTS
Same asWITH_DEFAULTS
-
CISCO_IOS_FORMAT
Save/Load config flag indicating Cisco IOS style configuration format. -
MAAPI_CONFIG_C_IOS
Same asCISCO_IOS_FORMAT
-
MERGE_CONFIGURATIONS
Load config flag indicating that current configuration should be merged with the loaded data instead of deleted. -
MAAPI_CONFIG_MERGE
Same asMERGE_CONFIGURATIONS
-
WITH_OPER
Load config flag used in conjunction withMAAPI_CONFIG_XML
to indicated that operational data should be ignored instead of producing an error. -
MAAPI_CONFIG_WITH_OPER
Same asWITH_OPER
-
XPATH
The fmtpath and remaining arguments give an XPath filter instead of a keypath. XPath filtering for path toMaapi.saveConfig(int,EnumSet,String,Object...)
can only be used withMAAPI_CONFIG_XML
andMAAPI_CONFIG_XML_PRETTY
. -
MAAPI_CONFIG_XPATH
Same asXPATH
-
XML_PRETTY
The configuration format is pretty printed XML. -
MAAPI_CONFIG_XML_PRETTY
Same asXPATH
-
CONFIG_REPLACE
To replace only the part of the configuration that is present in the file. -
MAAPI_CONFIG_REPLACE
Same asCONFIG_REPLACE
-
CONFIG_HIDE_ALL
Hide all hidden nodes. -
MAAPI_CONFIG_HIDE_ALL
Same asCONFIG_HIDE_ALL
-
CONFIG_UNHIDE_ALL
Unhide all hidden nodes (see below). -
MAAPI_CONFIG_UNHIDE_ALL
Same asCONFIG_UNHIDE_ALL
-
CONFIG_AUTOCOMMIT
The flag can be used together withMAAPI_CONFIG_C
andMAAPI_CONFIG_C_IOS
to mean that a commit should be performed after each line -
MAAPI_CONFIG_AUTOCOMMIT
Same asCONFIG_AUTOCOMMIT
-
CONFIG_CONTINUE_ON_ERROR
The flag can be used to indicate that the load should not be aborted when an error is encountered. -
MAAPI_CONFIG_CONTINUE_ON_ERROR
Same asCONFIG_CONTINUE_ON_ERROR
-
CONFIG_SUPPRESS_ERRORS
The flag is used to suppress the long error messages but instead have a one line error with the line number. -
MAAPI_CONFIG_SUPPRESS_ERRORS
Same asCONFIG_SUPPRESS_ERRORS
-
CONFIG_XML_LOAD_LAX
The flag can be used together withXML_FORMAT
. Indicates that relaxed parsing shall be done. Unknown XML elements are silently ignored. -
MAAPI_CONFIG_XML_LOAD_LAX
Same asCONFIG_XML_LOAD_LAX
-
JSON_FORMAT
The configuration format is JSON. -
MAAPI_CONFIG_JSON
Same asJSON_FORMAT
-
CONFIG_WITH_SERVICE_META
The flag can be used to request that NCS service-meta-data attributes should be included when saving configuration. -
MAAPI_CONFIG_WITH_SERVICE_META
Same asCONFIG_WITH_SERVICE_META
-
CONFIG_NO_PARENTS
The output of saveConfig will begin at path instead of root. -
MAAPI_CONFIG_NO_PARENTS
Same asCONFIG_NO_PARENTS
-
CONFIG_OPER_ONLY
The output of saveConfig will only include operational data and ancestors to operational data nodes. -
MAAPI_CONFIG_OPER_ONLY
Same asCONFIG_OPER_ONLY
-
MAAPI_CONFIG_NO_BACKQUOTE
Same asCONFIG_AUTOCOMMIT
-
CONFIG_CDB_ONLY
The output of saveConfig will only include data stored in CDB. -
MAAPI_CONFIG_CDB_ONLY
Same asCONFIG_CDB_ONLY
-
MAAPI_CONFIG_READ_WRITE_ACCESS_ONLY
The output of saveConfig will only include nodes for which the user has read_write access.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
-