diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-12-08 19:02:46 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-12-08 19:02:46 -0600 |
commit | d3d2efbf50a84a83c20a0bedc2b731b4c455c565 (patch) | |
tree | b52b792903ff283e5d7c0318b066670fb37d4617 /doc | |
parent | 2be0c8d53e4ef74e37441189f7aaa8374f8d0dfd (diff) | |
download | netconfapk-d3d2efbf50a84a83c20a0bedc2b731b4c455c565.tar.gz netconfapk-d3d2efbf50a84a83c20a0bedc2b731b4c455c565.tar.bz2 netconfapk-d3d2efbf50a84a83c20a0bedc2b731b4c455c565.tar.xz netconfapk-d3d2efbf50a84a83c20a0bedc2b731b4c455c565.zip |
NMSA: Add rollback() and transaction() methods
Diffstat (limited to 'doc')
-rw-r--r-- | doc/network.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/network.rst b/doc/network.rst index 7291249..eef0e68 100644 --- a/doc/network.rst +++ b/doc/network.rst @@ -174,6 +174,19 @@ Saves all queued operations to configuration storage and configures network interfaces. +``rollback()`` +~~~~~~~~~~~~~~ + +Erases all queued operations and restores the configuration from when +the transaction began. + + +``transaction()`` +~~~~~~~~~~~~~~~~~ + +A Python context manager designed to be used with the ``with`` keyword. + + Parameters ---------- |