Example #1
0
def port_add_vlan(args):
    print "Cumulus: add vlan %d to port %s on host %s" % (args.vlan, args.port,
                                                          args.host)
    run_ansible({
        'port': args.port,
        'vlan': args.vlan
    }, 'cumulus/port_add_vlan.yml', args)
Example #2
0
def port_rm_vlan(args):
    print "Cumulus: remove vlan %d from port %s on host %s" % (
        args.vlan, args.port, args.host)
    run_ansible({
        'port': args.port,
        'vlan': args.vlan
    }, 'cumulus/port_rm_vlan.yml', args)
Example #3
0
def port_add_vlan(args):
    print(": add vlan %d to port %s on host %s" % (args.vlan,
                                                          args.port,
                                                          args.host))
    run_ansible({'port' : args.port, 'vlan' : args.vlan, 'eos_connection' :
                 get_eos_connection(args)},
                 'arista/port_add_vlan.yml', args, True)
Example #4
0
def status_version(args):
    run_ansible({'eos_connection': get_eos_connection(args)},
                'arista/status_version.yml', args, True)
Example #5
0
def bridge_destroy(args):
    print "Cumulus: destroy bridge %s on host %s" % (args.bridge, args.port,
                                                     args.host)
    run_ansible({'bridge': args.bridge}, 'cumulus/bridge_destroy.yml', args)
Example #6
0
def bridge_create(args):
    print "Cumulus: create bridge %s on host %s" % (args.bridge, args.port,
                                                    args.host)
    run_ansible({'bridge': args.bridge}, 'cumulus/bridge_create.yml', args)