This project is no longer being developed and has limited support. In the near future this repository will be fully deprecated. Please consider using other OneView projects, such as Terraform and Ansible Collection
Creating two oneview_logical_interconnect_group resource with networkUris.
Actual Result
The oneview_logical_interconnect_group named LIG_TEST_NET_2 with network names in the networkUris parameter will create normally. See the following picture.
But the oneview_logical_interconnect_group named LIG_TEST_NET with network uris in the networkUris parameter will create without any network. See the following picture.
Hi @riconem , Thanks for pointing us to this issue by adding your analysis and also providing the solution helps us a lot. We will add these changes and raise a PR soon.
Scenario/Intent
Creating a
oneview_logical_interconnect_group
resource withnetworkUris
without their network names.Environment Details
Steps to Reproduce
Create a
oneview_logical_interconnect_group
resource with the following parameters. Its important to have real uris in thenetworkUris
parameter.Expected Result
Creating two
oneview_logical_interconnect_group
resource withnetworkUris
.Actual Result
The
oneview_logical_interconnect_group
named LIG_TEST_NET_2 with network names in thenetworkUris
parameter will create normally. See the following picture.But the
oneview_logical_interconnect_group
named LIG_TEST_NET with network uris in thenetworkUris
parameter will create without any network. See the following picture.Quickfix and Guess
When you look in the oneview_logical_interconnect_group provider you can see that everytime a real uri is used it will skip that element in the array of the
networkUris
parameter and all uris are deleted. https://github.com/HewlettPackard/oneview-puppet/blob/6eedd764f39ca8fdc4fbf27606e36167f4289d82/lib/puppet/provider/oneview_logical_interconnect_group/c7000.rb#L112 To get it also working with uris you can replace the above line with the following. Here it adds the uri element first and skips after that.