Advertisement
Guest User

Untitled

a guest
Feb 5th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. Function: run_script
  2. 396 Begin script execution
  3. 397 """
  4. 398 pv, pos, sn = script_name.split(".", 2)
  5. 399 profile = profile_registry["%s.%s" % (pv, pos)]()
  6. 400 script_class = script_registry[script_name]
  7. 401 if not timeout:
  8. 402 timeout = script_class.TIMEOUT
  9. 403 ==> script = script_class(profile, self, object_name, access_profile, timeout, **kwargs)
  10. 404 logging.info("Script %s(%s). Timeout set to %s" % (script_name,
  11. 405 access_profile.address, timeout))
  12. 406 with self.script_lock:
  13. 407 self.script_threads[script] = callback
  14. 408 logging.info("%d script threads (%d max)" % (
  15. 409 len(self.script_threads), self.max_script_threads))
  16. Variables:
  17. profile = <noc.sa.profiles.EdgeCore.ES.Profile object at 0x2c74d10>
  18. pv = u'EdgeCore'
  19. access_profile = <noc.sa.protocols.sae_pb2.AccessProfile object at 0x2c80390>
  20. script_class = <class 'noc.sa.profiles.EdgeCore.ES.get_mac_address_table.Script'>
  21. self = <noc.sa.activator.activator.Activator object at 0x216bfd0>
  22. pos = u'ES'
  23. script_name = u'EdgeCore.ES.get_mac_address_table'
  24. callback = <function script_callback at 0x2623500>
  25. object_name = u'\u0424\u0440\u0443\u043d\u0437\u0435 51 3\u043f'
  26. sn = u'get_mac_address_table'
  27. timeout = 120
  28. kwargs = {}
  29. ------------------------------------------------------------------------
  30. File: /opt/noc/sa/activator/service.py (Line: 91)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement