'Simple iperf UDP test between two (optionally specified) hosts.
Usage: iperfudp bw node1 node2'

def do_iperfudp(self, line):

    args = line.split()
    if (not args):
        self.mn.iperf(l4Type='UDP')
    elif (len(args) == 3):
        udpBw = args[0]
        hosts = []
        err = False
        for arg in args[1:3]:
            if (arg not in self.mn):
                err = True
                error(("node    '%s'    not    in    network\n" % arg))
            else:
                hosts.append(self.mn[arg])
        if (not err):
            self.mn.iperf(hosts, l4Type='UDP', udpBw=udpBw)
    else:
        error(('invalid    number    of    args:    iperfudp    bw    src    dst\n' + 'bw    examples:    10M\n'))
