Advertisement
Guest User

Untitled

a guest
Oct 13th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. 2012-10-13 13:03:35,787 script(Huawei.VRP.get_ip_discovery,bras-1,**{}) failed: <type 'exceptions.TypeError'>
  2. execute_vrp5() got an unexpected keyword argument 'vrf'
  3. START OF TRACEBACK
  4. ------------------------------------------------------------------------
  5. File: /opt/noc/sa/script/script.py (Line: 505)
  6. Function: execute
  7. 498 """
  8. 499 if self._execute_chain and not self.name.endswith(".get_version"):
  9. 500 # Get version information
  10. 501 v = self.scripts.get_version()
  11. 502 # Find and execute proper handler
  12. 503 for c, f in self._execute_chain:
  13. 504 if c(self, v):
  14. 505 ==> return f(self, **kwargs)
  15. 506 # Raise error
  16. 507 raise NotSupportedError()
  17. 508
  18. 509 def cli_queue_get(self):
  19. 510 """
  20. 511 Request CLI provider's queue
  21. Variables:
  22. kwargs = {'vrf': 'amulet'}
  23. c = <function <lambda> at 0x8fb52cc>
  24. v = {'platform': 'MultiserviceEngine', 'version': '5.50', 'vendor': 'Huawei'}
  25. self = <Script(script-10.0.10.4-Huawei.VRP.get_arp, initial)>
  26. f = <function execute_vrp5 at 0x8fb525c>
  27. ------------------------------------------------------------------------
  28. File: /opt/noc/sa/script/script.py (Line: 417)
  29. Function: guarded_run
  30. 410 return result
  31. 411 except KeyError:
  32. 412 self.debug("Not in call cache: %r, %r" % (self.name,
  33. 413 self.kwargs))
  34. 414 pass
  35. 415 # Calling script body
  36. 416 self._thread_id = thread.get_ident()
  37. 417 ==> result = self.execute(**self.kwargs)
  38. 418 # Enforce interface result checking
  39. 419 for i in self.implements:
  40. 420 result = i.script_clean_result(self.profile, result)
  41. 421 # Cache result when required
  42. 422 if self.cache and self.parent is not None:
  43. 423 self.debug("Write to call cache: %s, %s, %r" % (self.name,
  44. Variables:
  45. i = <noc.sa.interfaces.igetarp.IGetARP object at 0x8d031cc>
  46. self = <Script(script-10.0.10.4-Huawei.VRP.get_arp, initial)>
  47. ------------------------------------------------------------------------
  48. File: /opt/noc/sa/script/script.py (Line: 82)
  49. Function: __call__
  50. 75 self.script = script
  51. 76
  52. 77 def __call__(self, **kwargs):
  53. 78 """Call script"""
  54. 79 s = self.script(self.parent.profile, self.parent.activator,
  55. 80 self.parent.access_profile, parent=self.parent,
  56. 81 **kwargs)
  57. 82 ==> return s.guarded_run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement