Exemple #1
0
def main (argv):
    global config, bgprouters, hosts, tests, cmdfuncs
    
    if len(argv) < 2:
        log.error('usage: tmgr config.spec [ commands ]')
        exit()
    
    try:
        config = tlib.parser(argv[1])
    except Exception, e:
        log.error('Bad configuration: ' + repr(e))
        exit()
Exemple #2
0
def main(argv):
    global config, bgprouters, hosts, tests, cmdfuncs

    if len(argv) < 2:
        log.error('usage: tmgr config.spec [ commands ]')
        exit()

    try:
        config = tlib.parser(argv[1])
    except Exception, e:
        log.error('Bad configuration: ' + repr(e))
        exit()
Exemple #3
0
def main (argv):
    global outdir
    
    if len(argv) < 2:
        print 'usage: gen_test specification_file'
        exit()
    
    cfile = argv[1]

    try:
        config = tlib.parser(cfile)
    except Exception, e:
        print 'Configuration error: ' + cfile + ': ' + repr(e)
        exit()
Exemple #4
0
def main(argv):
    global outdir

    if len(argv) < 2:
        print 'usage: gen_test specification_file'
        exit()

    cfile = argv[1]

    try:
        config = tlib.parser(cfile)
    except Exception, e:
        print 'Configuration error: ' + cfile + ': ' + repr(e)
        exit()
Exemple #5
0
def main (argv):
    global host, hosts, tests
    
    if len(argv) == 3:      # tnode.py torch.cfg hostname
        cfile = argv[1]
        host = argv[2]
    else:
        print 'usage: tnode torch.cfg hostname'
        exit()
    
    try:
        config = tlib.parser(cfile)
        hosts = config.hosts
        bgprouters = config.bgprouters
    except Exception, e:
        print 'Bad configuration: ' + repr(e)
        exit()
Exemple #6
0
def main(argv):
    global host, hosts, tests

    if len(argv) == 3:  # tnode.py torch.cfg hostname
        cfile = argv[1]
        host = argv[2]
    else:
        print 'usage: tnode torch.cfg hostname'
        exit()

    try:
        config = tlib.parser(cfile)
        hosts = config.hosts
        bgprouters = config.bgprouters
    except Exception, e:
        print 'Bad configuration: ' + repr(e)
        exit()