xenserver: Remove ip_gre kernel module when other modules are removed
[openvswitch] / ovsdb / table.c
index d017a6ba0ec1c16c05fab8d9d1d14561fb6d1ef7..b520580c09439b68dd8f80bbf5617da576423442 100644 (file)
@@ -111,6 +111,8 @@ ovsdb_table_schema_from_json(const struct json *json, const char *name,
         if (node->name[0] == '_') {
             error = ovsdb_syntax_error(json, NULL, "names beginning with "
                                        "\"_\" are reserved");
+        } else if (!ovsdb_parser_is_id(node->name)) {
+            error = ovsdb_syntax_error(json, NULL, "name must be a valid id");
         } else {
             error = ovsdb_column_from_json(node->data, node->name, &column);
         }