Arista Networks said its revenue rose more than expected in the first quarter and authorized $1.2 billion in share buybacks.