diff options
author | Dan Prince <dprince@redhat.com> | 2014-08-11 15:59:51 -0400 |
---|---|---|
committer | Dan Prince <dprince@redhat.com> | 2014-08-11 15:59:51 -0400 |
commit | 2da33853506c694684ced99675d6914053246b2a (patch) | |
tree | 6091799daa57cfca066285e40addfd4310296bab /os_net_config/__init__.py | |
parent | 97f5eee7d135f462e82aa2c1ac9716971ad16ddc (diff) |
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).
Diffstat (limited to 'os_net_config/__init__.py')
-rw-r--r-- | os_net_config/__init__.py | 9 |
1 files changed, 8 insertions, 1 deletions
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.") |