__author__ = 'bwagner' import os from ConfigParser import SafeConfigParser from ScriptLog import log, log2, closeLog, error, warning, info, debug, entry, exit, lopen, handleException try: config = SafeConfigParser() config.read('./Configuration/base.cfg') logFileDir = str(config.get("base", "logDir")) logFile = str(config.get("base", 'dhcpTodnsmasqLogFile')) lopen(logFile, logFileDir) entry("Entering dhcpTodnsmasq.init") exit("Exiting dhcpTodnsmasq.init") except: handleException("dhcpTodnsmasq.init") raise class convertDhcpdTodnsmasqconf: def __init__(self): pass def processDhcpdConfFile(): entry("Opening DHCPD Config file") try: # Read the source dhcpd.conf configuration file dhcpConFileLocation = str(config.get("base", "dhcpdConfigFile")) # Open the file dhcpConFile = open(dhcpConFileLocation, mode='r') # Read in the output directory
__author__ = "bwagner" import os from ConfigParser import SafeConfigParser from ScriptLog import log, log2, closeLog, error, warning, info, debug, entry, exit, lopen, handleException try: config = SafeConfigParser() config.read("./Configuration/base.cfg") logFileDir = str(config.get("base", "logDir")) logFile = str(config.get("base", "dhcpTodnsmasqLogFile")) lopen(logFile, logFileDir) entry("Entering dhcpTodnsmasq.init") exit("Exiting dhcpTodnsmasq.init") except: handleException("dhcpTodnsmasq.init") raise class convertDhcpdTodnsmasqconf: def __init__(self): pass def processDhcpdConfFile(): entry("Opening DHCPD Config file") try: # Read the source dhcpd.conf configuration file dhcpConFileLocation = str(config.get("base", "dhcpdConfigFile")) # Open the file dhcpConFile = open(dhcpConFileLocation, mode="r") # Read in the output directory
__author__ = 'bwagner' import os from ConfigParser import SafeConfigParser from ScriptLog import log, log2, closeLog, error, warning, info, debug, entry, exit, lopen, handleException import re try: config = SafeConfigParser() config.read('./Configuration/base.cfg') logFileDir = str(config.get("base", "logDir")) logFile = str(config.get("base", 'bindTodnsmasqLogFile')) lopen(logFile, logFileDir) entry("Entering bindTodnsmasq.init") exit("Exiting bindTodnsmasq.init") except: handleException("bindTodnsmasq.init") raise class convertBindTodnsmasqconf: def __init__(self): pass def processBindNamedconfFile(): entry("Opening named.conf Config file") try: # Read the source dhcpd.conf configuration file bindNamedConFileLocation = str(config.get("base", "bindNamedConf")) # Open the file namedConFile = open(bindNamedConFileLocation, mode='r')
__author__ = 'bwagner' import os from ConfigParser import SafeConfigParser from ScriptLog import log, log2, closeLog, error, warning, info, debug, entry, exit, lopen, handleException import re try: config = SafeConfigParser() config.read( './Configuration/base.cfg' ) logFileDir = str( config.get( "base", "logDir" ) ) logFile = str( config.get( "base", 'bindTodnsmasqLogFile') ) lopen( logFile, logFileDir ) entry( "Entering bindTodnsmasq.init" ) exit( "Exiting bindTodnsmasq.init" ) except: handleException( "bindTodnsmasq.init" ) raise class convertBindTodnsmasqconf: def __init__ ( self ): pass def processBindNamedconfFile( ): entry("Opening named.conf Config file") try: # Read the source dhcpd.conf configuration file bindNamedConFileLocation = str( config.get("base","bindNamedConf")) # Open the file namedConFile = open(bindNamedConFileLocation,mode='r')