Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cot edit-hardware doesn't set nic-type when no pre-existing nics #48

Closed
glennmatthews opened this issue Jun 7, 2016 · 0 comments
Closed
Labels

Comments

@glennmatthews
Copy link
Owner

$ cot edit-hardware COT/tests/minimal.ovf -o temp.ovf --nics 1 --nic-type e1000
    INFO: Loading 'COT/tests/minimal.ovf' as OVF
    INFO: OVF version is 1.x
    INFO: OVF product class None --> platform GenericPlatform
 WARNING: No items of type ethernet found. Nothing to do.

Unexpected warning here!

    INFO: Updating NIC count in OVF under profile None to 1
 WARNING: No existing items of type ethernet found. Will create new ethernet from scratch.
    INFO: Added new ethernet under [None], instance is 1
    INFO: Writing out to file temp.ovf
$ cat temp.ovf
<?xml version='1.0' encoding='utf-8'?>
<ovf:Envelope xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">
  <ovf:References />
  <ovf:VirtualSystem ovf:id="x">
    <ovf:Info />
    <ovf:VirtualHardwareSection>
      <ovf:Info />
      <ovf:Item>
        <rasd:ElementName>Ethernet1</rasd:ElementName>
        <rasd:InstanceID>1</rasd:InstanceID>

No ResourceSubType here!

        <rasd:ResourceType>10</rasd:ResourceType>
      </ovf:Item>
    </ovf:VirtualHardwareSection>
  </ovf:VirtualSystem>
</ovf:Envelope>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant