HewlettPackard / oneview-ansible

This project is no longer being developed and has limited support. Please use the newer Ansible Collection project: https://github.com/HewlettPackard/oneview-ansible-collection
Apache License 2.0
104 stars 65 forks source link

oneview_network_set with nativeNetworkName #389

Closed DungKHoang closed 5 years ago

DungKHoang commented 5 years ago

Scenario/Intent

Create network set with nativeNetworkName

Environment Details

Module Version: current master - v5.1.1
Ansible Version: 2.64
OneView Appliance Version: 4.10.03-0364293
OneView Client API Version: 600
**Python Version:**2.7.10
**python-hpOneView SDK Version:**current master - v4.7.0
Platform: Ubutu 18

Steps to Reproduce

tasks:

Expected Result

Specify nativenetwork by name instead of uri. According to issue #364 it is supposed to be fixed

Actual Result

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: HPOneViewException: (u'Unrecognized JSON field.', {u'errorSource': None, u'recommendedActions': [u'Check the valid fields for this JSON object and remove or correct the unrecognized field.'], u'data': {}, u'errorCode': u'UNRECOGNIZED_JSON_FIELD', u'details': u'The field named nativeNetworkName near line 1, column 208 is not a valid field in this JSON object.', u'message': u'Unrecognized JSON field.', u'nestedErrors': []})

sijeesh commented 5 years ago

@DungKHoang , You cannot use "nativeNetworkName", as its not a valid field of network sets. According to #364 , nativeNetworkUri field supports uri/name of the network.

sijeesh commented 5 years ago

Closing this issue as we can use "nativeNetworkUri" field to pass network name/uri.