diff options
Diffstat (limited to 'os_net_config/__init__.py')
-rw-r--r-- | os_net_config/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/os_net_config/__init__.py b/os_net_config/__init__.py index c33e5d1..641ee3b 100644 --- a/os_net_config/__init__.py +++ b/os_net_config/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2014 Red Hat, Inc. +# Copyright 2014-2015 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -33,9 +33,10 @@ class NotImplemented(Exception): class NetConfig(object): """Configure network interfaces using the ifcfg format.""" - def __init__(self, noop=False): + def __init__(self, noop=False, root_dir=''): self.noop = noop self.log_prefix = "NOOP: " if noop else "" + self.root_dir = root_dir def add_object(self, obj): """Convenience method to add any type of object to the network config. |