def _InitialiseTimeouts(self):
    for var in ('connect', 'response', 'idle', 'disconnect', 'act_user'):
      flag_name = '%s_timeout_%s' % (self.vendor_name, var)
      default_flag_name = 'base_timeout_%s' % var

      if getattr(FLAGS, flag_name) is not None:
        value = getattr(FLAGS, flag_name)
        setattr(self, 'timeout_%s' % var, value)
      else:
        default_value = getattr(FLAGS, default_flag_name)
        setattr(self, 'timeout_%s' % var, default_value)
    # Allow devices to optionally override timeouts.
    self._SetupTimeouts()
Sets up timeouts by scanning module flags.
dataset/ETHPy150Open google/capirca/tools/ldpush/base_device.py/BaseDevice._InitialiseTimeouts