Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <class 'noc.sa.interfaces.base.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).
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/interfaces/base.py (Line: 1384)
- Function: clean
- 1377 try:
- 1378 if __profile:
- 1379 out_kwargs[n] = p.script_clean_input(__profile,
- 1380 in_kwargs[n])
- 1381 else:
- 1382 out_kwargs[n] = p.clean(in_kwargs[n])
- 1383 except InterfaceTypeError, why:
- 1384 ==> raise InterfaceTypeError("Invalid value for '%s': %s" % (n, why))
- 1385 del in_kwargs[n]
- 1386 # Copy other parameters
- 1387 for k, v in in_kwargs.items():
- 1388 if k != "__profile":
- 1389 out_kwargs[k] = v
- 1390 return out_kwargs
- Variables:
- out_kwargs = {}
- _Interface__profile = <noc.sa.profiles.Cisco.IOSXR.Profile object at 0x80ef8aa10>
- self =
- <noc.sa.interfaces.isyncprefixlists.ISyncPrefixLists object at 0x80d214490>
- n = 'changed_prefix_lists'
- p = <noc.sa.interfaces.base.ListOfParameter object at 0x806c4c910>
- kwargs =
- {'changed_prefix_lists': [{'name': 'AS15370',
- 'prefix_list': [('192.168.1.0/24', 24, 24)],
- 'strict': False}]}
- in_kwargs =
- {'changed_prefix_lists': [{'name': 'AS15370',
- 'prefix_list': [('192.168.1.0/24', 24, 24)],
- 'strict': False}]}
- why =
- 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). ",)
- ------------------------------------------------------------------------
- File: /opt/noc/sa/interfaces/base.py (Line: 1403)
- Function: script_clean_input
- 1396 try:
- 1397 rp = self.returns
- 1398 except AttributeError:
- 1399 return result # No return result restriction
- 1400 return rp.clean(result)
- 1401
- 1402 def script_clean_input(self, __profile, **kwargs):
- 1403 ==> return self.clean(__profile, **kwargs)
- 1404
- 1405 def script_clean_result(self, __profile, result):
- 1406 try:
- 1407 rp = self.returns
- 1408 except AttributeError:
- 1409 return result
- Variables:
- _Interface__profile = <noc.sa.profiles.Cisco.IOSXR.Profile object at 0x80ef8aa10>
- self =
- <noc.sa.interfaces.isyncprefixlists.ISyncPrefixLists object at 0x80d214490>
- kwargs =
- {'changed_prefix_lists': [{'name': 'AS15370',
- 'prefix_list': [('192.168.1.0/24', 24, 24)],
- 'strict': False}]}
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 408)
- Function: guarded_run
- 401 s.call_cache[key1] = {}
- 402 s.call_cache[key1][key2] = value
- 403
- 404 def guarded_run(self):
- 405 """Wrap around script call with all possible checkings"""
- 406 # Enforce interface type checking
- 407 for i in self.implements:
- 408 ==> self.kwargs = i.script_clean_input(self.profile, **self.kwargs)
- 409 self.debug("Running script: %s (%r)" % (self.name, self.kwargs))
- 410 # Use cached result when available
- 411 if self.cache and self.parent is not None:
- 412 try:
- 413 result = self.get_cache(self.name, self.kwargs)
- 414 self.debug("Script returns with cached result: %r" % result)
- Variables:
- i =
- <noc.sa.interfaces.isyncprefixlists.ISyncPrefixLists object at 0x80d214490>
- self = <Script(Thread-2, started 34611479552)>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 445)
- Function: run
- 438
- 439 def run(self):
- 440 """Script thread worker method"""
- 441 self.debug("Running")
- 442 result = None
- 443 try:
- 444 with self.cancelable():
- 445 ==> result = self.guarded_run()
- 446 except self.TimeOutError:
- 447 self.error("Timed out")
- 448 self.e_timeout = True
- 449 except CancelledError:
- 450 self.error("Cancelled")
- 451 self.e_cancel = True
- Variables:
- self = <Script(Thread-2, started 34611479552)>
- r =
- ["<class 'noc.sa.interfaces.base.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). "]
- result = None
- v =
- 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). ",)
- tb = <traceback object at 0x80ef88e18>
- t = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement