# import _lxc import glob import os import subprocess import stat import time import warnings warnings.warn( "The python-lxc API isn't yet stable " "and may change at any point in the future.", Warning, 2) default_config_path = _lxc.get_default_config_path() version = _lxc.get_version() class ContainerNetwork(): props = {} def __init__(self, container, index): self.container = container self.index = index for key in self.container.get_keys("lxc.network.%s" % self.index): if "." in key: self.props[key.replace(".", "_")] = key else: self.props[key] = key
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 # USA # import _lxc import os import subprocess import stat import time import warnings warnings.warn("The python-lxc API isn't yet stable " "and may change at any point in the future.", Warning, 2) default_config_path = _lxc.get_default_config_path() version = _lxc.get_version() class ContainerNetwork(): props = {} def __init__(self, container, index): self.container = container self.index = index for key in self.container.get_keys("lxc.network.%s" % self.index): if "." in key: self.props[key.replace(".", "_")] = key else: self.props[key] = key