#!/usr/bin/env python
# Copyright (c) 2010-2011 Arista Networks, Inc.  All rights reserved.
# Arista Networks, Inc. Confidential and Proprietary.

from __future__ import absolute_import

import Tac, Agent, ZeroTouch, resource
import BothTrace
import os

AGENT_BINARY_NAME = "ZeroTouch"

def main():
   qtfile = "%s%s.qt" % ( AGENT_BINARY_NAME, "-%d" if "QUICKTRACEDIR"
                          not in os.environ else "" )
   BothTrace.initialize( qtfile, "0,8,0,0,0,0,0,0,16,32" )
   resource.setrlimit( resource.RLIMIT_NOFILE, ( 5120, 5120 ) )
   container = Agent.AgentContainer( [ ZeroTouch.ZeroTouch ],
                                     passiveMount=True )
   container.runAgents()

if __name__ == "__main__":
   main()
