[Users] RHEV/Ovirt api, assigning vlans to hosts.

Nathan Lager lagern at lafayette.edu
Tue Feb 7 21:19:32 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm running RHEV 3.0, not oVirt, so if i'm in the wrong place, please
say so.


I'm trying to use the REST API to setup my multitude of networks.  I
have a few dozen vlan's trunked to my rhev hosts.  I've got all of the
networks created and attached to the cluster (using REST to create
them).  I'm at the point where i just want to attach these networks to
the hosts in my cluster.

I set one up manually, and pulled its xml from the API, then i crafted
something like the following to add in new assignments.

<host_nic>
  <name>eth1.vlanid</name>
  <host id=\"HostUUID\"/>
  <network id=\"NetWorkUUID\"/>
  <ip gateway=\"0.0.0.0\" netmask=\"\" address=\"\"/>
</host_nic>

When i attempt to pass this into the API (post to
api/hosts/HostUUID/nics), i get the following error returned:

HostNIC [bonding.slaves.id|name] required for add

I dug a little on that, and in the api docs found a reference to
bonding.  I'm not bonding though, this is a single nic with a bunch of
trunks.

I notice in that block above, nothing seems to tie the addition to a
physical nic other than the name.  Given how the rest of the structure
has been, i assume there should be something linking to the UUID of
the parent NIC?

Thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8xlWQACgkQsZqG4IN3sukv4QCeJnNq7EbQrrO5O7w9IY1ay0WS
M04AoKGEjx1MQrEdL7IJ8MfvvF0vdSxf
=tunt
-----END PGP SIGNATURE-----



More information about the Users mailing list