Beispiel #1
0
def run_network(opts):
    argument = opts.argument
    name = opts.data.pop('name', 'netty')
    conn = connection.make_connection(opts)
    if argument == "delete":
        return (delete(conn, name))
    return (create(conn, name, opts))
Beispiel #2
0
def run_jenkins(opts):
    argument = opts.argument
    conn = connection.make_connection(opts)
    name = opts.data.pop('name', 'jenkins')
    if argument == "delete":
        return (delete_jenkins(conn, name, opts))
    return (create_jenkins(conn, name, opts))
def make_session(opts):
    return connection.make_connection(opts).session
def run_jenkins(opts):
    conn = connection.make_connection(opts)
    name = opts.data.pop('name', 'jenkins')
    return(delete_jenkins(conn, name, opts))
Beispiel #5
0
def run_network(opts):
    name = opts.data.pop('name', 'netty')
    conn = connection.make_connection(opts)
    return (delete(conn, name))
Beispiel #6
0
def run_jenkins(opts):
    conn = connection.make_connection(opts)
    name = opts.data.pop('name', 'jenkins')
    return (delete_jenkins(conn, name, opts))
def run_network(opts):
    name = opts.data.pop('name', 'netty')
    conn = connection.make_connection(opts)
    return(create(conn, name, opts))
Beispiel #8
0
def make_session(opts):
    return connection.make_connection(opts).session
Beispiel #9
0
def run_thin(opts):
    session = connection.make_connection(opts).session
    request = thin.Thin()
    for objay in request.list_networks(session):
        print(objay['id'])
    return
def run_keypair(opts):
    name = opts.data.pop('name', 'pare')
    conn = connection.make_connection(opts)
    return(create(conn, name))
Beispiel #11
0
def make_authenticate(opts):
    return connection.make_connection(opts).session.authenticator
Beispiel #12
0
def run_keypair(opts):
    name = opts.data.pop('name', 'pare')
    conn = connection.make_connection(opts)
    return (create(conn, name))