From 2da33853506c694684ced99675d6914053246b2a Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Mon, 11 Aug 2014 15:59:51 -0400 Subject: Use --noop instead of --mock. Updates the apply() function for each NetConfig object so that it now accepts noop instead. Also, the updated files are not returned (always instead of conditionally if mock was used). --- os_net_config/__init__.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'os_net_config/__init__.py') diff --git a/os_net_config/__init__.py b/os_net_config/__init__.py index 6c6de9b..a3ea278 100644 --- a/os_net_config/__init__.py +++ b/os_net_config/__init__.py @@ -56,5 +56,12 @@ class NetConfig(object): def addBond(self, bond): raise NotImplemented("addBond is not implemented.") - def apply(self): + def apply(self, noop=False): + """Apply the network configuration. + + :param noop: A boolean which indicates whether this is a no-op. + :returns: a dict of the format: filename/data which contains info + for each file that was changed (or would be changed if in --noop + mode). + """ raise NotImplemented("apply is not implemented.") -- cgit 1.2.3-korg