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 classstatic 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, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DryRunResult
- Throws:
MaapiExceptionConfException
-
-
Method Details
-
getFormat
Return the format of the dry-run result.The format could be any of the following:
DryRunResult.Format.XMLmeans 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.CLImeans that all changes in the whole data model is displayed in NCS CLI curly bracket format.DryRunResult.Format.CLI_Cmeans that all changes in the whole data model is displayed in Cisco style CLI format.DryRunResult.Format.NATIVEmeans 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:
iteratorin interfaceIterable<DryRunResult.DryRunEntry>
-