From af110352f8f61f68c4758f2c8c0846f9691e6bf1 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Mon, 9 Jun 2014 16:38:34 -0400 Subject: Initial ifcfg implementation for interfaces/routes Ifcfg formatted persistence for interfaces and routes. --- os_net_config/__init__.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'os_net_config/__init__.py') diff --git a/os_net_config/__init__.py b/os_net_config/__init__.py index dbc60ab..bdbc69f 100644 --- a/os_net_config/__init__.py +++ b/os_net_config/__init__.py @@ -17,3 +17,17 @@ import pbr.version __version__ = pbr.version.VersionInfo( 'os_net_config').version_string() + + +class NotImplemented(Exception): + pass + + +class NetworkConfig(object): + """Configure network interfaces using the ifcfg format.""" + + def addInterface(self, interface): + raise NotImplemented("addInterface is not implemented.") + + def addRoutes(self, interface_name, routes=[]): + raise NotImplemented("addRoutes is not implemented.") -- cgit 1.2.3-korg