From d3d2efbf50a84a83c20a0bedc2b731b4c455c565 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 8 Dec 2020 19:02:46 -0600 Subject: NMSA: Add rollback() and transaction() methods --- doc/network.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'doc') 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 ---------- -- cgit v1.2.3-70-g09d2