You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that a string length constraint is implemented as a range constraint which generates this error:
2016-12-21 13:49:47,702 - ydk.providers.netconf_provider - INFO - NetconfServiceProvider connected to Router:None using ssh
2016-12-21 13:49:47,728 - ydk.services.executor_service - INFO - Executor operation initiated
2016-12-21 13:49:47,728 - ydk.services.executor_service - INFO - Executor operation completed
Traceback (most recent call last):
File "./nc-execute-xr-snmp-test-trap-act-522-ydk.py", line 81, in <module>
executor.execute_rpc(provider, routing_mpls_ldp_session_down_rpc)
File "/usr/local/lib/python2.7/dist-packages/ydk/services/executor_service.py", line 57, in execute_rpc
provider.sp_instance.encode_rpc(rpc),
File "/usr/local/lib/python2.7/dist-packages/ydk/providers/_provider_plugin.py", line 122, in encode_rpc
self._encode_rpc_request(root, rpc)
File "/usr/local/lib/python2.7/dist-packages/ydk/providers/_provider_plugin.py", line 462, in _encode_rpc_request
XmlEncoder().encode_to_xml(rpc, root, '')
File "/usr/local/lib/python2.7/dist-packages/ydk/providers/_encoder.py", line 89, in encode_to_xml
self.encode_to_xml(value, elem, optype)
File "/usr/local/lib/python2.7/dist-packages/ydk/providers/_encoder.py", line 48, in encode_to_xml
validate_entity(entity, optype)
File "/usr/local/lib/python2.7/dist-packages/ydk/providers/_validator.py", line 39, in validate_entity
validate_entity_delegate(entity, optype, errors)
File "/usr/local/lib/python2.7/dist-packages/ydk/providers/_validator.py", line 69, in validate_entity_delegate
_dm_validate_value(member, value, entity, optype, errors)
File "/usr/local/lib/python2.7/dist-packages/ydk/providers/_validator.py", line 152, in _dm_validate_value
errmsg = "Invalid data or data range, value = %d" % value
TypeError: %d format: a number is required, not str
Regardless, the documentation confuses length with range:
The text was updated successfully, but these errors were encountered:
It seems that a string
length
constraint is implemented as arange
constraint which generates this error:Regardless, the documentation confuses
length
withrange
:The text was updated successfully, but these errors were encountered: