mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
lxc: support <interface type='ethernet'>
This is identical to type='bridge', but without the "connect to a bridge" part, so it can be handled by using the same functions (and often even the same cases in switch statements), after renaming virLXCProcessSetupInterfaceBridged() to virLXCProcessInterfaceTap() and enhancing it to skip bridge-related items when brname == NULL. To be truly useful, we need to support setting the ip address on the host side veth as well as guest side veth (already supported for type='bridge'), as well as setting the peer address for both. The <script> element (supported by type='ethernet' in qemu) isn't supported in this patch. An error is logged at domain start time if it is encountered. This may be changed in a later patch.
This commit is contained in:
@@ -94,6 +94,7 @@ mymain(void)
|
||||
DO_TEST("idmap");
|
||||
DO_TEST("capabilities");
|
||||
DO_TEST("sharenet");
|
||||
DO_TEST("ethernet");
|
||||
DO_TEST_FULL("filesystem-root", 0, false,
|
||||
VIR_DOMAIN_DEF_PARSE_SKIP_OSTYPE_CHECKS);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user