Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Code:
from netapp_ontap.resources import Node
resource = Node(uuid=uuid)
return resource.get().http_response.json()
returns:
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/resources/node.py", line 617, in get
return super()._get(**kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/utils.py", line 79, in wrapper
response = func(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/resource.py", line 823, in _get
self._clone_from_dict(response.json())
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/resource.py", line 1153, in _clone_from_dict
input_dict
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/resource.py", line 434, in from_dict
raise NetAppRestError(cause=exc) from None
netapp_ontap.error.NetAppRestError: Caused by ValidationError({'service_processor': {'ipv6_interface': {'netmask': ['Not a valid string.']}}},)
Solved! See The Solution
1 ACCEPTED SOLUTION
nicola_mendella has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would change your code this way:
from netapp_ontap.resources import Node
resource = Node(uuid=uuid)
return resource.get(fields="!service_processor.ipv6_interface.netmask").to_dict()
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is bug 1349122 which you can read about here: https://mysupport.netapp.com/NOW/cgi-bin/bol?Type=Detail&Display=1349122
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks you,
still i don´t understand how to apply the following solution to my function:
Exclude the "node.service_processor.ipv6_interface.netmask" field from your netapp_ontap package request.
nicola_mendella has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would change your code this way:
from netapp_ontap.resources import Node
resource = Node(uuid=uuid)
return resource.get(fields="!service_processor.ipv6_interface.netmask").to_dict()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
works perfectly. thank you
