]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests: Adds test for bridge vlan "none" value
authorThomas Parrott <thomas.parrott@canonical.com>
Thu, 4 Jun 2020 14:27:48 +0000 (15:27 +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 5b69fb67494b4cd06a6a66a88b83b2a67de9685b..51dc1c0a5951cd6b1f74fef0cf03f4e176dbf4c6 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", "none", tmpf, false, "veth")) {
+               lxc_error("%s\n", "lxc.net.0.veth.vlan.id");
+               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;