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
{{ message }}
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
Trough the UI, you can add an OrgVDC network to specific vApp. The network you can select is either an existing one in the VDC or imported one from the NSX-T. Both of them are visible and quarriable using the REST API when performing a request againsts:
But the library returns an empty array for both methods for querying networks for OrgVDC: lits_orgvdc_network_resources(), list_orgvdc_network_records()
Here is the returned payload when I perform the REST request using the Swagger API of VCD:
If I try to perform the operation using client.get_resources(), it throws an error that a field ownerRef.id and _context are not available. I have gone even further and made the same request using client._do_request_prim(), which resolves into a INTERNAL_SERVER_ERROR (shown in the uploaded screenshot).
The text was updated successfully, but these errors were encountered:
@AlexanderB1290 I think your vCloud Director has enabled Data Center Group. At that time, "ownerRef" has "urn:vcloud:vdcGroup:xxx" id . It is not available. When vCD hasn't enable Data Center Group, everything will be fined. I'm facing with your issue. Do you any idea how to pass this issue?
@phongvu0403 After some troubles and debugging, I found out that there are 2 different objects relating to the two types of networks - imported from NSX-T and those that are VLANs from vSphere or NSX-V. The REST API is seeing them both, but there is no presentation object for the NSX-T ones. What I did as a workaround was to separate the code into couple of fragments and do the needed operations using different approaches, so I can complete the functionality.
Using PowerCLI to make a copy of template vApp, cause the Terraform provider don't have such functionality
Bind the correct network adapters to the machines from the selected vApp using Terraform. This way I am addressing an issue where when you provision a vApp from different VDC provider, the networks are copied. Those networks only work in the old provider.
Using pyvcloud and python perform operations for changing the owner and adding some metadata messages for tracking.
All of this wrapped in a docker container and executed as a single FaaS. Not the best solution, but it works with NSX-T networks. I would really be happy if I don't need to resolve using 3 different modules (and languages) to complete the whole task.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Trough the UI, you can add an OrgVDC network to specific vApp. The network you can select is either an existing one in the VDC or imported one from the NSX-T. Both of them are visible and quarriable using the REST API when performing a request againsts:
https://{hostname}/cloudapi/1.0.0/orgVdcNetworks?filter=(ownerRef.id==urn:vcloud:vdc:{vdc.id};_context==includeAccessible)
But the library returns an empty array for both methods for querying networks for OrgVDC: lits_orgvdc_network_resources(), list_orgvdc_network_records()
Here is the returned payload when I perform the REST request using the Swagger API of VCD:
If I try to perform the operation using client.get_resources(), it throws an error that a field ownerRef.id and _context are not available. I have gone even further and made the same request using client._do_request_prim(), which resolves into a INTERNAL_SERVER_ERROR (shown in the uploaded screenshot).
The text was updated successfully, but these errors were encountered: