Class DryRunResult
- All Implemented Interfaces:
Iterable<DryRunResult.DryRunEntry>
Maapi.applyTransParams(int, boolean, CommitParams)
method.
The purpose of this class is to represent the result of a transaction without actually having committed the changes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the format of the dry-run result.Return the format as a string.iterator()
Retrieves an iterator from which one could iterate over the result.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DryRunResult
- Throws:
MaapiException
ConfException
-
-
Method Details
-
getFormat
Return the format of the dry-run result.The format could be any of the following:
DryRunResult.Format.XML
means that all changes in the whole data model is displayed in NETCONF XML edit-config format, i.e., the edit-config that would be applied locally (at NCS) to get a config that is equal to that of the managed device.DryRunResult.Format.CLI
means that all changes in the whole data model is displayed in NCS CLI curly bracket format.DryRunResult.Format.CLI_C
means that all changes in the whole data model is displayed in Cisco style CLI format.DryRunResult.Format.NATIVE
means that only changes under /devices/device/config is displayed in native device format. -
getFormatAsString
Return the format as a string. -
iterator
Retrieves an iterator from which one could iterate over the result.- Specified by:
iterator
in interfaceIterable<DryRunResult.DryRunEntry>
-