Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2012-10-13 13:03:35,787 script(Huawei.VRP.get_ip_discovery,bras-1,**{}) failed: <type 'exceptions.TypeError'>
- execute_vrp5() got an unexpected keyword argument 'vrf'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 505)
- Function: execute
- 498 """
- 499 if self._execute_chain and not self.name.endswith(".get_version"):
- 500 # Get version information
- 501 v = self.scripts.get_version()
- 502 # Find and execute proper handler
- 503 for c, f in self._execute_chain:
- 504 if c(self, v):
- 505 ==> return f(self, **kwargs)
- 506 # Raise error
- 507 raise NotSupportedError()
- 508
- 509 def cli_queue_get(self):
- 510 """
- 511 Request CLI provider's queue
- Variables:
- kwargs = {'vrf': 'amulet'}
- c = <function <lambda> at 0x8fb52cc>
- v = {'platform': 'MultiserviceEngine', 'version': '5.50', 'vendor': 'Huawei'}
- self = <Script(script-10.0.10.4-Huawei.VRP.get_arp, initial)>
- f = <function execute_vrp5 at 0x8fb525c>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 417)
- Function: guarded_run
- 410 return result
- 411 except KeyError:
- 412 self.debug("Not in call cache: %r, %r" % (self.name,
- 413 self.kwargs))
- 414 pass
- 415 # Calling script body
- 416 self._thread_id = thread.get_ident()
- 417 ==> result = self.execute(**self.kwargs)
- 418 # Enforce interface result checking
- 419 for i in self.implements:
- 420 result = i.script_clean_result(self.profile, result)
- 421 # Cache result when required
- 422 if self.cache and self.parent is not None:
- 423 self.debug("Write to call cache: %s, %s, %r" % (self.name,
- Variables:
- i = <noc.sa.interfaces.igetarp.IGetARP object at 0x8d031cc>
- self = <Script(script-10.0.10.4-Huawei.VRP.get_arp, initial)>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 82)
- Function: __call__
- 75 self.script = script
- 76
- 77 def __call__(self, **kwargs):
- 78 """Call script"""
- 79 s = self.script(self.parent.profile, self.parent.activator,
- 80 self.parent.access_profile, parent=self.parent,
- 81 **kwargs)
- 82 ==> return s.guarded_run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement