diff options
author | Frederic Lepied <frederic.lepied@enovance.com> | 2015-02-05 22:17:42 +0100 |
---|---|---|
committer | Frederic Lepied <frederic.lepied@redhat.com> | 2015-08-02 18:19:37 +0200 |
commit | 103b87aa82cfd298b664fe1314e987bd953ec20d (patch) | |
tree | e5691490fff33868291a6e8de946b8b8ac427ffe /os_net_config/__init__.py | |
parent | cb578ed9b94ff9a34b41d91ada94e3375436b60c (diff) |
Allow to specify the root directory of the filesystem
Change-Id: Ice1b8d17804cf7a0aafd308945a5e960fe927bbc
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. |