Exemplo n.º 1
0
def main():

    try:
        LogManager.getInstance().logInfo("YencaP is starting...")

        if len(sys.argv) != 1:
            usage = "Usage: netconfd"
            print usage
            sys.exit(1)
        else:
            # Parse the configuration file the get the active application protocol and the options.
            cp = ConfigParser()
            monserver = cp.parseConfigurationFile()
            # Start the Netconf server, listening on port specified.
            monserver.listener()

    except Exception, exp:
        print exp
        sys.exit(1)
Exemplo n.º 2
0
def main():
	
	
	try:
		LogManager.getInstance().logInfo("YencaP is starting...")
		
		if len(sys.argv)!=1:
			usage = "Usage: netconfd"
			print usage
			sys.exit(1)
		else:
			# Parse the configuration file the get the active application protocol and the options.
			cp = ConfigParser()
			monserver = cp.parseConfigurationFile()
			# Start the Netconf server, listening on port specified.
			monserver.listener()
		
	except Exception,exp:
		print exp
		sys.exit(1)