public enum MaapiConfigFlag extends Enum<MaapiConfigFlag>
Enum Constant and Description |
---|
CISCO_IOS_FORMAT
Save/Load config flag indicating Cisco IOS style configuration format.
|
CISCO_XR_FORMAT
Save/Load config flag indicating Cisco XR style configuration format.
|
CONFIG_AUTOCOMMIT
The flag can be used together with
MaapiConfigFlag.MAAPI_CONFIG_C and
MaapiConfigFlag.MAAPI_CONFIG_C_IOS to mean that a commit should be performed
after each line |
CONFIG_CDB_ONLY
The output of saveConfig will only include data stored in CDB.
|
CONFIG_CONTINUE_ON_ERROR
The flag can be used to indicate that the load should not be aborted
when an error is encountered.
|
CONFIG_HIDE_ALL
Hide all hidden nodes.
|
CONFIG_NO_PARENTS
The output of saveConfig will begin at path instead of root.
|
CONFIG_OPER_ONLY
The output of saveConfig will only include operational data
and ancestors to operational data nodes.
|
CONFIG_REPLACE
To replace only the part of the configuration that is present in
the file.
|
CONFIG_SUPPRESS_ERRORS
The flag is used to suppress the long error messages but instead have a
one line error with the line number.
|
CONFIG_UNHIDE_ALL
Unhide all hidden nodes (see below).
|
CONFIG_WITH_SERVICE_META
The flag can be used to request that NCS service-meta-data attributes
should be included when saving configuration.
|
CONFIG_XML_LOAD_LAX
The flag can be used together with
MaapiConfigFlag.XML_FORMAT . |
JSON_FORMAT
The configuration format is JSON.
|
JUNIPER_CLI_FORMAT
Save/Load config flag indicating curly brace Juniper CLI configuration
format.
|
MAAPI_CONFIG_AUTOCOMMIT
|
MAAPI_CONFIG_C
Same as
MaapiConfigFlag.CISCO_XR_FORMAT |
MAAPI_CONFIG_C_IOS
Same as
MaapiConfigFlag.CISCO_IOS_FORMAT |
MAAPI_CONFIG_CDB_ONLY
Same as
MaapiConfigFlag.CONFIG_CDB_ONLY |
MAAPI_CONFIG_CONTINUE_ON_ERROR
|
MAAPI_CONFIG_HIDE_ALL
Same as
MaapiConfigFlag.CONFIG_HIDE_ALL |
MAAPI_CONFIG_J
|
MAAPI_CONFIG_JSON
Same as
MaapiConfigFlag.JSON_FORMAT |
MAAPI_CONFIG_MERGE
|
MAAPI_CONFIG_NO_BACKQUOTE
|
MAAPI_CONFIG_NO_PARENTS
|
MAAPI_CONFIG_OPER_ONLY
Same as
MaapiConfigFlag.CONFIG_OPER_ONLY |
MAAPI_CONFIG_READ_WRITE_ACCESS_ONLY
The output of saveConfig will only include nodes for which the user has
read_write access.
|
MAAPI_CONFIG_REPLACE
Same as
MaapiConfigFlag.CONFIG_REPLACE |
MAAPI_CONFIG_SHOW_DEFAULTS
Same as
MaapiConfigFlag.WITH_DEFAULTS |
MAAPI_CONFIG_SUPPRESS_ERRORS
|
MAAPI_CONFIG_UNHIDE_ALL
|
MAAPI_CONFIG_WITH_DEFAULTS
Same as
MaapiConfigFlag.WITH_DEFAULTS |
MAAPI_CONFIG_WITH_OPER
Same as
MaapiConfigFlag.WITH_OPER |
MAAPI_CONFIG_WITH_SERVICE_META
|
MAAPI_CONFIG_XML
Same as
MaapiConfigFlag.XML_FORMAT |
MAAPI_CONFIG_XML_LOAD_LAX
|
MAAPI_CONFIG_XML_PRETTY
Same as
MaapiConfigFlag.XPATH |
MAAPI_CONFIG_XPATH
Same as
MaapiConfigFlag.XPATH |
MERGE_CONFIGURATIONS
Load config flag indicating that current configuration should be merged
with the loaded data instead of deleted.
|
SHOW_DEFAULTS
Save/Load config flag indicating that default values are also included
next to the real configuration value.
|
WITH_DEFAULTS
Save/Load config flag indicating that default values are included as
part of the configuration.
|
WITH_OPER
Load config flag used in conjunction with
MaapiConfigFlag.MAAPI_CONFIG_XML to
indicated that operational data should be ignored instead of
producing an error. |
XML_FORMAT
Save/Load config flag indicating XML configuration format.
|
XML_PRETTY
The configuration format is pretty printed XML.
|
XPATH
The fmtpath and remaining arguments give an XPath filter instead of a
keypath.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static MaapiConfigFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MaapiConfigFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MaapiConfigFlag XML_FORMAT
public static final MaapiConfigFlag MAAPI_CONFIG_XML
MaapiConfigFlag.XML_FORMAT
public static final MaapiConfigFlag JUNIPER_CLI_FORMAT
public static final MaapiConfigFlag MAAPI_CONFIG_J
public static final MaapiConfigFlag CISCO_XR_FORMAT
public static final MaapiConfigFlag MAAPI_CONFIG_C
MaapiConfigFlag.CISCO_XR_FORMAT
public static final MaapiConfigFlag WITH_DEFAULTS
public static final MaapiConfigFlag MAAPI_CONFIG_WITH_DEFAULTS
MaapiConfigFlag.WITH_DEFAULTS
public static final MaapiConfigFlag SHOW_DEFAULTS
public static final MaapiConfigFlag MAAPI_CONFIG_SHOW_DEFAULTS
MaapiConfigFlag.WITH_DEFAULTS
public static final MaapiConfigFlag CISCO_IOS_FORMAT
public static final MaapiConfigFlag MAAPI_CONFIG_C_IOS
MaapiConfigFlag.CISCO_IOS_FORMAT
public static final MaapiConfigFlag MERGE_CONFIGURATIONS
public static final MaapiConfigFlag MAAPI_CONFIG_MERGE
public static final MaapiConfigFlag WITH_OPER
MaapiConfigFlag.MAAPI_CONFIG_XML
to
indicated that operational data should be ignored instead of
producing an error.public static final MaapiConfigFlag MAAPI_CONFIG_WITH_OPER
MaapiConfigFlag.WITH_OPER
public static final MaapiConfigFlag XPATH
Maapi.saveConfig(int,EnumSet,String,Object... )
can only be
used with MaapiConfigFlag.MAAPI_CONFIG_XML
and
MaapiConfigFlag.MAAPI_CONFIG_XML_PRETTY
.public static final MaapiConfigFlag MAAPI_CONFIG_XPATH
MaapiConfigFlag.XPATH
public static final MaapiConfigFlag XML_PRETTY
public static final MaapiConfigFlag MAAPI_CONFIG_XML_PRETTY
MaapiConfigFlag.XPATH
public static final MaapiConfigFlag CONFIG_REPLACE
public static final MaapiConfigFlag MAAPI_CONFIG_REPLACE
MaapiConfigFlag.CONFIG_REPLACE
public static final MaapiConfigFlag CONFIG_HIDE_ALL
public static final MaapiConfigFlag MAAPI_CONFIG_HIDE_ALL
MaapiConfigFlag.CONFIG_HIDE_ALL
public static final MaapiConfigFlag CONFIG_UNHIDE_ALL
public static final MaapiConfigFlag MAAPI_CONFIG_UNHIDE_ALL
public static final MaapiConfigFlag CONFIG_AUTOCOMMIT
MaapiConfigFlag.MAAPI_CONFIG_C
and
MaapiConfigFlag.MAAPI_CONFIG_C_IOS
to mean that a commit should be performed
after each linepublic static final MaapiConfigFlag MAAPI_CONFIG_AUTOCOMMIT
public static final MaapiConfigFlag CONFIG_CONTINUE_ON_ERROR
public static final MaapiConfigFlag MAAPI_CONFIG_CONTINUE_ON_ERROR
public static final MaapiConfigFlag CONFIG_SUPPRESS_ERRORS
public static final MaapiConfigFlag MAAPI_CONFIG_SUPPRESS_ERRORS
public static final MaapiConfigFlag CONFIG_XML_LOAD_LAX
MaapiConfigFlag.XML_FORMAT
. Indicates
that relaxed parsing shall be done. Unknown XML elements are silently
ignored.public static final MaapiConfigFlag MAAPI_CONFIG_XML_LOAD_LAX
public static final MaapiConfigFlag JSON_FORMAT
public static final MaapiConfigFlag MAAPI_CONFIG_JSON
MaapiConfigFlag.JSON_FORMAT
public static final MaapiConfigFlag CONFIG_WITH_SERVICE_META
public static final MaapiConfigFlag MAAPI_CONFIG_WITH_SERVICE_META
public static final MaapiConfigFlag CONFIG_NO_PARENTS
public static final MaapiConfigFlag MAAPI_CONFIG_NO_PARENTS
public static final MaapiConfigFlag CONFIG_OPER_ONLY
public static final MaapiConfigFlag MAAPI_CONFIG_OPER_ONLY
MaapiConfigFlag.CONFIG_OPER_ONLY
public static final MaapiConfigFlag MAAPI_CONFIG_NO_BACKQUOTE
public static final MaapiConfigFlag CONFIG_CDB_ONLY
public static final MaapiConfigFlag MAAPI_CONFIG_CDB_ONLY
MaapiConfigFlag.CONFIG_CDB_ONLY
public static final MaapiConfigFlag MAAPI_CONFIG_READ_WRITE_ACCESS_ONLY
public static MaapiConfigFlag[] values()
for (MaapiConfigFlag c : MaapiConfigFlag.values()) System.out.println(c);
public static MaapiConfigFlag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()