]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests: Adds test for lxc.net.0.veth.vlan.id config key
authorThomas Parrott <thomas.parrott@canonical.com>
Wed, 3 Jun 2020 10:08:41 +0000 (11:08 +0100)
committerThomas Parrott <thomas.parrott@canonical.com>
Tue, 9 Jun 2020 08:40:06 +0000 (09:40 +0100)
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
src/tests/parse_config_file.c

index 9adbdd6a6761d0c0c9ae02f24d5cf9be4f2eaf41..5b69fb67494b4cd06a6a66a88b83b2a67de9685b 100644 (file)
@@ -776,6 +776,11 @@ int main(int argc, char *argv[])
                return -1;
        }
 
+       if (set_get_compare_clear_save_load_network(c, "lxc.net.0.veth.vlan.id", "2", tmpf, true, "veth")) {
+               lxc_error("%s\n", "lxc.net.0.veth.vlan.id");
+               return -1;
+       }
+
        if (set_get_compare_clear_save_load(c, "lxc.net.0.script.up", "/some/up/path", tmpf, true)) {
                lxc_error("%s\n", "lxc.net.0.script.up");
                goto non_test_error;