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

import Tac, Agent, ZeroTouch, resource # pylint: disable=import-self
import BothTrace
import os

AGENT_BINARY_NAME = "ZeroTouch"

def main():
   # pylint: disable-next=consider-using-f-string
   qtfile = "{}{}.qt".format( AGENT_BINARY_NAME, "-%d" if "QUICKTRACEDIR"
                              not in os.environ else "" )

   BothTrace.initialize( qtfile, "0,128,0,0,0,0,128,256,512,256", maxStringLen=80 )
   resource.setrlimit( resource.RLIMIT_NOFILE, ( 5120, 5120 ) )
   container = Agent.AgentContainer( [ ZeroTouch.ZeroTouch ] )
   container.runAgents()

if __name__ == "__main__":
   main()
