Guest User

Untitled

a guest
Feb 18th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. 2014-02-18 10:33:28,589 script(Juniper.JUNOS.get_vlans,jsw01-vil-ltc,**{}) failed: <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  2. DictParameter: {'name': 'default', 'vlan_id': '0'}. Invalid value for 'vlan_id': VLANIDParameter: '0'.
  3. START OF TRACEBACK
  4. ------------------------------------------------------------------------
  5. File: /opt/noc/sa/interfaces/base.py (Line: 48)
  6. Function: raise_error
  7. 41 :param value: Value where error detected
  8. 42 :type value: Arbitrary python type
  9. 43 :param msg: Optional message
  10. 44 :type msg: String
  11. 45 :raises InterfaceTypeError
  12. 46 """
  13. 47 raise InterfaceTypeError("%s: %s. %s" % (self.__class__.__name__,
  14. 48 ==> repr(value), msg))
  15. 49
  16. 50 def clean(self, value):
  17. 51 """
  18. 52 Input parameter normalization
  19. 53
  20. 54 :param value: Input parameter
  21. Variables:
  22. msg = "Invalid value for 'vlan_id': VLANIDParameter: '0'. "
  23. self = <noc.sa.interfaces.base.DictParameter object at 0x2c49150>
  24. value = {'name': 'default', 'vlan_id': '0'}
  25. ------------------------------------------------------------------------
  26. File: /opt/noc/sa/interfaces/base.py (Line: 700)
  27. Function: clean
  28. 693 if attr.default:
  29. 694 out_value[a_name] = attr.default
  30. 695 else:
  31. 696 pass
  32. 697 else:
  33. 698 self.raise_error(
  34. 699 value,
  35. 700 ==> "Invalid value for '%s': %s" % (a_name, why))
  36. 701 del in_value[a_name]
  37. 702 for k, v in in_value.items():
  38. 703 out_value[k] = v
  39. 704 return out_value
  40. 705
  41. 706 def script_clean_input(self, profile, value):
  42. Variables:
  43. a_name = 'vlan_id'
  44. attr = <noc.sa.interfaces.base.VLANIDParameter object at 0x2c490d0>
  45. self = <noc.sa.interfaces.base.DictParameter object at 0x2c49150>
  46. in_value = {'vlan_id': '0'}
  47. value = {'name': 'default', 'vlan_id': '0'}
  48. out_value = {'name': 'default'}
  49. why = InterfaceTypeError("VLANIDParameter: '0'. ",)
Advertisement
Add Comment
Please, Sign In to add comment