aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/impl_eni.py
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2014-08-14 14:05:05 -0400
committerDan Prince <dprince@redhat.com>2014-08-14 14:05:05 -0400
commit462436fa4d339c80a888def1707f792c33cca715 (patch)
treec1e483e02de39f56062fa8531223b97de98c302f /os_net_config/impl_eni.py
parent9e515950c7eb4a73e02a4f4883c223dd24ba93ff (diff)
Add --cleanup, and impl for ifcfg
Adds a new cleanup option which can be used to ifdown and remove interfaces that exists but aren't specified in the object model (or JSON).
Diffstat (limited to 'os_net_config/impl_eni.py')
-rw-r--r--os_net_config/impl_eni.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/os_net_config/impl_eni.py b/os_net_config/impl_eni.py
index cf09ff3..2a2e4e1 100644
--- a/os_net_config/impl_eni.py
+++ b/os_net_config/impl_eni.py
@@ -164,7 +164,7 @@ class ENINetConfig(os_net_config.NetConfig):
self.routes[interface_name] = data
logger.debug('route data: %s' % self.routes[interface_name])
- def apply(self, noop=False):
+ def apply(self, noop=False, cleanup=False):
"""Apply the network configuration.
:param noop: A boolean which indicates whether this is a no-op.