Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2014-02-18 10:33:28,589 script(Juniper.JUNOS.get_vlans,jsw01-vil-ltc,**{}) failed: <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- DictParameter: {'name': 'default', 'vlan_id': '0'}. Invalid value for 'vlan_id': VLANIDParameter: '0'.
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/interfaces/base.py (Line: 48)
- Function: raise_error
- 41 :param value: Value where error detected
- 42 :type value: Arbitrary python type
- 43 :param msg: Optional message
- 44 :type msg: String
- 45 :raises InterfaceTypeError
- 46 """
- 47 raise InterfaceTypeError("%s: %s. %s" % (self.__class__.__name__,
- 48 ==> repr(value), msg))
- 49
- 50 def clean(self, value):
- 51 """
- 52 Input parameter normalization
- 53
- 54 :param value: Input parameter
- Variables:
- msg = "Invalid value for 'vlan_id': VLANIDParameter: '0'. "
- self = <noc.sa.interfaces.base.DictParameter object at 0x2c49150>
- value = {'name': 'default', 'vlan_id': '0'}
- ------------------------------------------------------------------------
- File: /opt/noc/sa/interfaces/base.py (Line: 700)
- Function: clean
- 693 if attr.default:
- 694 out_value[a_name] = attr.default
- 695 else:
- 696 pass
- 697 else:
- 698 self.raise_error(
- 699 value,
- 700 ==> "Invalid value for '%s': %s" % (a_name, why))
- 701 del in_value[a_name]
- 702 for k, v in in_value.items():
- 703 out_value[k] = v
- 704 return out_value
- 705
- 706 def script_clean_input(self, profile, value):
- Variables:
- a_name = 'vlan_id'
- attr = <noc.sa.interfaces.base.VLANIDParameter object at 0x2c490d0>
- self = <noc.sa.interfaces.base.DictParameter object at 0x2c49150>
- in_value = {'vlan_id': '0'}
- value = {'name': 'default', 'vlan_id': '0'}
- out_value = {'name': 'default'}
- why = InterfaceTypeError("VLANIDParameter: '0'. ",)
Advertisement
Add Comment
Please, Sign In to add comment