2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

vswitchd: Initial conversion to database-based configuration.

This has seen very little testing, so some features are almost certainly
busted.  Port mirroring is not yet converted, so it will definitely not
work.
This commit is contained in:
Ben Pfaff
2009-12-03 11:28:40 -08:00
parent ba54bf4f65
commit 7634353824
24 changed files with 518 additions and 2543 deletions

View File

@@ -76,6 +76,17 @@ shash_add(struct shash *sh, const char *name, const void *data)
return node;
}
bool
shash_add_once(struct shash *sh, const char *name, const void *data)
{
if (!shash_find(sh, name)) {
shash_add(sh, name, data);
return true;
} else {
return false;
}
}
void
shash_delete(struct shash *sh, struct shash_node *node)
{