Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function: run_script
- 396 Begin script execution
- 397 """
- 398 pv, pos, sn = script_name.split(".", 2)
- 399 profile = profile_registry["%s.%s" % (pv, pos)]()
- 400 script_class = script_registry[script_name]
- 401 if not timeout:
- 402 timeout = script_class.TIMEOUT
- 403 ==> script = script_class(profile, self, object_name, access_profile, timeout, **kwargs)
- 404 logging.info("Script %s(%s). Timeout set to %s" % (script_name,
- 405 access_profile.address, timeout))
- 406 with self.script_lock:
- 407 self.script_threads[script] = callback
- 408 logging.info("%d script threads (%d max)" % (
- 409 len(self.script_threads), self.max_script_threads))
- Variables:
- profile = <noc.sa.profiles.EdgeCore.ES.Profile object at 0x2c74d10>
- pv = u'EdgeCore'
- access_profile = <noc.sa.protocols.sae_pb2.AccessProfile object at 0x2c80390>
- script_class = <class 'noc.sa.profiles.EdgeCore.ES.get_mac_address_table.Script'>
- self = <noc.sa.activator.activator.Activator object at 0x216bfd0>
- pos = u'ES'
- script_name = u'EdgeCore.ES.get_mac_address_table'
- callback = <function script_callback at 0x2623500>
- object_name = u'\u0424\u0440\u0443\u043d\u0437\u0435 51 3\u043f'
- sn = u'get_mac_address_table'
- timeout = 120
- kwargs = {}
- ------------------------------------------------------------------------
- File: /opt/noc/sa/activator/service.py (Line: 91)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement