Advertisement
Guest User

Untitled

a guest
May 20th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.94 KB | None | 0 0
  1. <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  2. Invalid value for 'changed_prefix_lists': DictParameter: {'strict': False, 'prefix_list': [('192.168.1.0/24', 24, 24)], 'name': 'AS15370'}. Invalid value for 'prefix_list': IPv4PrefixParameter: ('192.168.1.0/24', 24, 24).
  3. START OF TRACEBACK
  4. ------------------------------------------------------------------------
  5. File: /opt/noc/sa/interfaces/base.py (Line: 1384)
  6. Function: clean
  7. 1377 try:
  8. 1378 if __profile:
  9. 1379 out_kwargs[n] = p.script_clean_input(__profile,
  10. 1380 in_kwargs[n])
  11. 1381 else:
  12. 1382 out_kwargs[n] = p.clean(in_kwargs[n])
  13. 1383 except InterfaceTypeError, why:
  14. 1384 ==> raise InterfaceTypeError("Invalid value for '%s': %s" % (n, why))
  15. 1385 del in_kwargs[n]
  16. 1386 # Copy other parameters
  17. 1387 for k, v in in_kwargs.items():
  18. 1388 if k != "__profile":
  19. 1389 out_kwargs[k] = v
  20. 1390 return out_kwargs
  21. Variables:
  22. out_kwargs = {}
  23. _Interface__profile = <noc.sa.profiles.Cisco.IOSXR.Profile object at 0x80ef8aa10>
  24. self =
  25. <noc.sa.interfaces.isyncprefixlists.ISyncPrefixLists object at 0x80d214490>
  26. n = 'changed_prefix_lists'
  27. p = <noc.sa.interfaces.base.ListOfParameter object at 0x806c4c910>
  28. kwargs =
  29. {'changed_prefix_lists': [{'name': 'AS15370',
  30. 'prefix_list': [('192.168.1.0/24', 24, 24)],
  31. 'strict': False}]}
  32. in_kwargs =
  33. {'changed_prefix_lists': [{'name': 'AS15370',
  34. 'prefix_list': [('192.168.1.0/24', 24, 24)],
  35. 'strict': False}]}
  36. why =
  37. InterfaceTypeError("DictParameter: {'strict': False, 'prefix_list': [('192.168.1.0/24', 24, 24)], 'name': 'AS15370'}. Invalid value for 'prefix_list': IPv4PrefixParameter: ('192.168.1.0/24', 24, 24). ",)
  38. ------------------------------------------------------------------------
  39. File: /opt/noc/sa/interfaces/base.py (Line: 1403)
  40. Function: script_clean_input
  41. 1396 try:
  42. 1397 rp = self.returns
  43. 1398 except AttributeError:
  44. 1399 return result # No return result restriction
  45. 1400 return rp.clean(result)
  46. 1401
  47. 1402 def script_clean_input(self, __profile, **kwargs):
  48. 1403 ==> return self.clean(__profile, **kwargs)
  49. 1404
  50. 1405 def script_clean_result(self, __profile, result):
  51. 1406 try:
  52. 1407 rp = self.returns
  53. 1408 except AttributeError:
  54. 1409 return result
  55. Variables:
  56. _Interface__profile = <noc.sa.profiles.Cisco.IOSXR.Profile object at 0x80ef8aa10>
  57. self =
  58. <noc.sa.interfaces.isyncprefixlists.ISyncPrefixLists object at 0x80d214490>
  59. kwargs =
  60. {'changed_prefix_lists': [{'name': 'AS15370',
  61. 'prefix_list': [('192.168.1.0/24', 24, 24)],
  62. 'strict': False}]}
  63. ------------------------------------------------------------------------
  64. File: /opt/noc/sa/script/script.py (Line: 408)
  65. Function: guarded_run
  66. 401 s.call_cache[key1] = {}
  67. 402 s.call_cache[key1][key2] = value
  68. 403
  69. 404 def guarded_run(self):
  70. 405 """Wrap around script call with all possible checkings"""
  71. 406 # Enforce interface type checking
  72. 407 for i in self.implements:
  73. 408 ==> self.kwargs = i.script_clean_input(self.profile, **self.kwargs)
  74. 409 self.debug("Running script: %s (%r)" % (self.name, self.kwargs))
  75. 410 # Use cached result when available
  76. 411 if self.cache and self.parent is not None:
  77. 412 try:
  78. 413 result = self.get_cache(self.name, self.kwargs)
  79. 414 self.debug("Script returns with cached result: %r" % result)
  80. Variables:
  81. i =
  82. <noc.sa.interfaces.isyncprefixlists.ISyncPrefixLists object at 0x80d214490>
  83. self = <Script(Thread-2, started 34611479552)>
  84. ------------------------------------------------------------------------
  85. File: /opt/noc/sa/script/script.py (Line: 445)
  86. Function: run
  87. 438
  88. 439 def run(self):
  89. 440 """Script thread worker method"""
  90. 441 self.debug("Running")
  91. 442 result = None
  92. 443 try:
  93. 444 with self.cancelable():
  94. 445 ==> result = self.guarded_run()
  95. 446 except self.TimeOutError:
  96. 447 self.error("Timed out")
  97. 448 self.e_timeout = True
  98. 449 except CancelledError:
  99. 450 self.error("Cancelled")
  100. 451 self.e_cancel = True
  101. Variables:
  102. self = <Script(Thread-2, started 34611479552)>
  103. r =
  104. ["<class 'noc.sa.interfaces.base.InterfaceTypeError'>",
  105. "Invalid value for 'changed_prefix_lists': DictParameter: {'strict': False, 'prefix_list': [('192.168.1.0/24', 24, 24)], 'name': 'AS15370'}. Invalid value for 'prefix_list': IPv4PrefixParameter: ('192.168.1.0/24', 24, 24). "]
  106. result = None
  107. v =
  108. InterfaceTypeError("Invalid value for 'changed_prefix_lists': DictParameter: {'strict': False, 'prefix_list': [('192.168.1.0/24', 24, 24)], 'name': 'AS15370'}. Invalid value for 'prefix_list': IPv4PrefixParameter: ('192.168.1.0/24', 24, 24). ",)
  109. tb = <traceback object at 0x80ef88e18>
  110. t = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  111. ------------------------------------------------------------------------
  112. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement