On Wed, Oct 21, 2020 at 10:12 AM <kim.kargaard(a)noroff.no> wrote:
Hi all,
We have Ovirt 4.3, with 11 hosts, and need a bunch of VLANs for our
student's to be isolated and do specific things. We have created the VLANs
on the switch, but need to create them on the admin portal, with vlan
tagging and then add them to the interface on the hosts. We are talking
about 400 VLANs. I have done this manually for 4 VLANs and all works fine,
but was wondering if there is a way of doing this in one go for all? So I
don't have to do it 400 times (at least creating the VLANs on the admin
portal).
Thanks.
Kim
_______________________________________________
Users mailing list -- users(a)ovirt.org
To unsubscribe send an email to users-leave(a)ovirt.org
Privacy Statement:
https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/3YDTCIKQ4GY...
Hello,
you can automate this using oVirt API. The documentation is available on
[0].
Another way is to use python-sdk [1]. Python SDK uses the oVirt API under
the hood so it corresponds one to another.
[1] contains some real python code that is used to manipulate networks
through the SDK.
Hopefully this helps.
Regards,
Ales
[0]
http://ovirt.github.io/ovirt-engine-api-model/4.3/
[1]
http://ovirt.github.io/ovirt-engine-sdk/4.3/4.3.2/
[2]
https://github.com/oVirt/ovirt-system-tests/blob/master/basic-suite-maste...
--
Ales Musil
Software Engineer - RHV Network
Red Hat EMEA <
https://www.redhat.com>
amusil(a)redhat.com IM: amusil
<
https://red.ht/sig>