Describe the bug
The govc import.ova command is failing to upload the OVA file.
Manual Export vs govc Export:
When we manually upload a VM template to an OVA using govc export.ovf, the network configuration shows differences compared to a manual export.
Consider that i was using vCenter to export vm
Manual export values in network in .ovf as follows
The list of logical networks
The VLAN-2533 network
govc export values in network in .ovf file as follows
The list of logical networks
The dvportgroup-2325 network
due to this when i try uploading the ova file into the vCenter i was getting below error
ERROR
govc: Line 100: Invalid value 'dvportgroup-2325' for element 'Connection'.
Expected behavior
govc import should work as like how we do from GUI manually
Affected version
failed to upload a ova using govc import.ova
Screenshots/Debug Output
attached

Additional context

Describe the bug
The govc import.ova command is failing to upload the OVA file.
Manual Export vs govc Export:
When we manually upload a VM template to an OVA using govc export.ovf, the network configuration shows differences compared to a manual export.
Consider that i was using vCenter to export vm
Manual export values in network in .ovf as follows
The list of logical networks
The VLAN-2533 network
govc export values in network in .ovf file as follows
The list of logical networks
The dvportgroup-2325 network
due to this when i try uploading the ova file into the vCenter i was getting below error
ERROR
govc: Line 100: Invalid value 'dvportgroup-2325' for element 'Connection'.
Expected behavior
govc import should work as like how we do from GUI manually
Affected version
failed to upload a ova using govc import.ova
Screenshots/Debug Output

attached
Additional context