]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: update LXC config dataset to support V3 indexes
authorJulio Faracco <jcfaracco@gmail.com>
Mon, 3 Feb 2020 01:28:35 +0000 (22:28 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 3 Feb 2020 15:08:28 +0000 (16:08 +0100)
LXC version 3 config files are still using network old style definition.
So, as LXC supports it now, they can be converted to use this new
definition.

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/lxcconf2xmldata/lxcconf2xml-ethernet-v3.config
tests/lxcconf2xmldata/lxcconf2xml-fstab-v3.config
tests/lxcconf2xmldata/lxcconf2xml-macvlannetwork-v3.config
tests/lxcconf2xmldata/lxcconf2xml-miscnetwork-v3.config
tests/lxcconf2xmldata/lxcconf2xml-nonenetwork-v3.config
tests/lxcconf2xmldata/lxcconf2xml-physnetwork-v3.config
tests/lxcconf2xmldata/lxcconf2xml-simple-v3.config
tests/lxcconf2xmldata/lxcconf2xml-vlannetwork-v3.config

index 630cb2ebb64c759c759e2e9d46a11dff9458c503..0a641549f3b6440495eb768c783b163f694b257d 100644 (file)
@@ -1,14 +1,14 @@
 # Template used to create this container: opensuse
 # Template script checksum (SHA-1): 27307e0a95bd81b2c0bd82d6f87fdbe83be075ef
 
-lxc.network.type = veth
-lxc.network.flags = up
-lxc.network.hwaddr = 02:00:15:8f:05:c1
-lxc.network.name = eth0
-lxc.network.ipv4 = 192.168.122.2/24
-lxc.network.ipv4.gateway = 192.168.122.1
-lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596/64
-lxc.network.ipv6.gateway = 2003:db8:1:0:214:1234:fe0b:3595
+lxc.net.0.type = veth
+lxc.net.0.flags = up
+lxc.net.0.hwaddr = 02:00:15:8f:05:c1
+lxc.net.0.name = eth0
+lxc.net.0.ipv4 = 192.168.122.2/24
+lxc.net.0.ipv4.gateway = 192.168.122.1
+lxc.net.0.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596/64
+lxc.net.0.ipv6.gateway = 2003:db8:1:0:214:1234:fe0b:3595
 
 #remove next line if host DNS configuration should not be available to container
 lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
index 8b62818657da5cbe11dab3be7e76e44e03788eec..79bcfa1bd15f7d443f69d5e1f9270e09f2578ba5 100644 (file)
@@ -1,11 +1,11 @@
 # Template used to create this container: opensuse
 # Template script checksum (SHA-1): 27307e0a95bd81b2c0bd82d6f87fdbe83be075ef
 
-lxc.network.type = veth
-lxc.network.flags = up
-lxc.network.link = virbr0
-lxc.network.hwaddr = 02:00:15:8f:05:c1
-lxc.network.name = eth0
+lxc.net.0.type = veth
+lxc.net.0.flags = up
+lxc.net.0.link = virbr0
+lxc.net.0.hwaddr = 02:00:15:8f:05:c1
+lxc.net.0.name = eth0
 
 #remove next line if host DNS configuration should not be available to container
 lxc.mount.fstab = /var/lib/lxc/migrate_test/fstab
index 631f07ecca8f734f95535918f361e29782f5b910..ab8d85361fa5e83f34646dca323fcaecc09a3be0 100644 (file)
@@ -1,11 +1,11 @@
 # Template used to create this container: opensuse
 # Template script checksum (SHA-1): 27307e0a95bd81b2c0bd82d6f87fdbe83be075ef
 
-lxc.network.type = macvlan
-lxc.network.flags = up
-lxc.network.link = eth0
-lxc.network.hwaddr = 02:00:15:8f:05:c1
-lxc.network.macvlan.mode = vepa
+lxc.net.0.type = macvlan
+lxc.net.0.flags = up
+lxc.net.0.link = eth0
+lxc.net.0.hwaddr = 02:00:15:8f:05:c1
+lxc.net.0.macvlan.mode = vepa
 
 #remove next line if host DNS configuration should not be available to container
 lxc.rootfs.path = /var/lib/lxc/migrate_test/rootfs
index b46cb3ee7d0ca9a49ae2f33e50e4e06d8e517365..537da64592c84561664d5638c35ffbb33290e336 100644 (file)
@@ -1,22 +1,22 @@
-lxc.network.type = phys
-lxc.network.link = eth0
-lxc.network.name = eth1
-lxc.network.ipv4 = 192.168.122.2/24
-lxc.network.ipv4.gateway = 192.168.122.1
-lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596/64
-lxc.network.ipv6.gateway = 2003:db8:1:0:214:1234:fe0b:3595
+lxc.net.0.type = phys
+lxc.net.0.link = eth0
+lxc.net.0.name = eth1
+lxc.net.0.ipv4 = 192.168.122.2/24
+lxc.net.0.ipv4.gateway = 192.168.122.1
+lxc.net.0.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596/64
+lxc.net.0.ipv6.gateway = 2003:db8:1:0:214:1234:fe0b:3595
 
-lxc.network.type = vlan
-lxc.network.flags = up
-lxc.network.link = eth0
-lxc.network.hwaddr = 02:00:15:8f:05:c1
-lxc.network.vlan.id = 2
+lxc.net.1.type = vlan
+lxc.net.1.flags = up
+lxc.net.1.link = eth0
+lxc.net.1.hwaddr = 02:00:15:8f:05:c1
+lxc.net.1.vlan.id = 2
 
-lxc.network.type = macvlan
-lxc.network.flags = up
-lxc.network.link = eth0
-lxc.network.hwaddr = 02:00:15:8f:05:c1
-lxc.network.macvlan.mode = vepa
+lxc.net.2.type = macvlan
+lxc.net.2.flags = up
+lxc.net.2.link = eth0
+lxc.net.2.hwaddr = 02:00:15:8f:05:c1
+lxc.net.2.macvlan.mode = vepa
 
 lxc.rootfs = /var/lib/lxc/migrate_test/rootfs
 lxc.utsname = migrate_test
index f81a786f1e0be3349869d2eee7c6bd9664479c08..2402723d9e0aea97baa7be76281ec5933c698797 100644 (file)
@@ -1,4 +1,4 @@
 lxc.rootfs.path = /var/lib/lxc/migrate_test/rootfs
 lxc.uts.name = migrate_test
 lxc.autodev=1
-lxc.network.type = none
+lxc.net.0.type = none
index 92729841d7c12ad66b840e386deeb8f2e567edc8..9cf96163b32d0bb7446b8f0fc0c8c65c6194bfc8 100644 (file)
@@ -1,10 +1,10 @@
-lxc.network.type = phys
-lxc.network.link = eth0
-lxc.network.name = eth1
-lxc.network.ipv4 = 192.168.122.2/24
-lxc.network.ipv4.gateway = 192.168.122.1
-lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596/64
-lxc.network.ipv6.gateway = 2003:db8:1:0:214:1234:fe0b:3595
+lxc.net.0.type = phys
+lxc.net.0.link = eth0
+lxc.net.0.name = eth1
+lxc.net.0.ipv4 = 192.168.122.2/24
+lxc.net.0.ipv4.gateway = 192.168.122.1
+lxc.net.0.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596/64
+lxc.net.0.ipv6.gateway = 2003:db8:1:0:214:1234:fe0b:3595
 
 lxc.rootfs.path = /var/lib/lxc/migrate_test/rootfs
 lxc.uts.name = migrate_test
index a0036a482e04a7fb68a2f8d87e01d83736ca0b6f..b0656571b2ce7219940a129350db63e2788e1681 100644 (file)
@@ -1,15 +1,15 @@
 # Template used to create this container: opensuse
 # Template script checksum (SHA-1): 27307e0a95bd81b2c0bd82d6f87fdbe83be075ef
 
-lxc.network.type = veth
-lxc.network.flags = up
-lxc.network.link = virbr0
-lxc.network.hwaddr = 02:00:15:8f:05:c1
-lxc.network.name = eth0
-lxc.network.ipv4 = 192.168.122.2/24
-lxc.network.ipv4.gateway = 192.168.122.1
-lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596/64
-lxc.network.ipv6.gateway = 2003:db8:1:0:214:1234:fe0b:3595
+lxc.net.0.type = veth
+lxc.net.0.flags = up
+lxc.net.0.link = virbr0
+lxc.net.0.hwaddr = 02:00:15:8f:05:c1
+lxc.net.0.name = eth0
+lxc.net.0.ipv4 = 192.168.122.2/24
+lxc.net.0.ipv4.gateway = 192.168.122.1
+lxc.net.0.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596/64
+lxc.net.0.ipv6.gateway = 2003:db8:1:0:214:1234:fe0b:3595
 
 #remove next line if host DNS configuration should not be available to container
 lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
index 31e26997dd778d38fb815954ac81912bb9e8adb5..fb4539261f9ee3b1326b114513aa0d48b7df59b8 100644 (file)
@@ -1,11 +1,11 @@
 # Template used to create this container: opensuse
 # Template script checksum (SHA-1): 27307e0a95bd81b2c0bd82d6f87fdbe83be075ef
 
-lxc.network.type = vlan
-lxc.network.flags = up
-lxc.network.link = eth0
-lxc.network.hwaddr = 02:00:15:8f:05:c1
-lxc.network.vlan.id = 2
+lxc.net.1.type = vlan
+lxc.net.1.flags = up
+lxc.net.1.link = eth0
+lxc.net.1.hwaddr = 02:00:15:8f:05:c1
+lxc.net.1.vlan.id = 2
 
 lxc.rootfs.path = /var/lib/lxc/migrate_test/rootfs
 lxc.uts.name = migrate_test